Code Snippet

Just another Code Snippet site

How-To

[Bash] How-To

Create a tar.gz file for each file : Add datetime in bash history : To replace the first occurrence of a pattern with a given string, use ${parameter/pattern/string}: To replace all occurrences, use ${parameter//pattern/string}: Show path in bash prompt Add following line in .bashrc Check keyboard input and call associated function: Script used to ask […]

, , ,

Alpine Linux

Install cURL : Notice: This command it’s only available from Alpine version 3.3 How to install telnet into a alpine docker container :

[How-To] Certificate

#extract the certificate to a pem file #extract the key to another pem file #Import the the certificate into JDKs cacerts keystore cURL HTTPS with client certificate :

,

[How-To] SSH

SSH to a machine using an SSH bastion (proxy) for example : and with additional SSH options : —- SSHPass Execure command as ssh (using SSH PASS)

, , ,

[How-To] CentOS & RHEL

Create a new PV / VG / LV from an empty disk Create partition with fdisk Create PV / VG / LV Edit /etc/fstab & mount drive: ———- Extend an existing partition by adding a new disk Create a new PV / VG / LV from an empty disk Create partition with fdisk Create PV […]

, , ,

[How-To] Zabbix

Run Zabbix from Docker containers : https://www.zabbix.com/documentation/4.0/manual/installation/containers  

[Nexus] How-to

Start a container with Nexus volume, without starting Nexus OSS : Start OrientDB console : or Connect to DB : Try to repair database : Restore database from backup : Stop Nexus Repository Manager Remove the following directories from $data-dir/db accesslog analytics audit component config security Go to the location where you stored the exported […]

, ,

Previous Posts Next posts