Skip to main content
Advanced Search
Search Terms
Content Type

Exact Matches
Tag Searches
Date Options
Updated after
Updated before
Created after
Created before

Search Results

40 total results found

X-Road

Command line tips and tricks

Apt / apt-get

Command line tips and tricks

Install error Unpacking xroad-signer (7.6.2-1.ubuntu22.04) over (7.5.1-1.ubuntu22.04) ... dpkg: error processing archive /var/cache/apt/archives/xroad-signer_7.6.2-1.ubuntu22.04_amd64.deb (--unpack): unable to open '/etc/xroad/conf.d/signer-console-logback....

Bash tools

Command line tips and tricks

Awk First and third column from file, seperated by spacesawk -F " " '{print $1,$3'} result.txt Print from line 156 to line 170awk 'NR >= 156 && NR <= 170' log.txt Cat Copy Data to Other Filecat file1 > file2 Combine Files And Sort Alphabeticallycat file1 ...

Docker

Command line tips and tricks

Read compose logs docker-compose logs -f --tail=100 Volume in dir - ./name:/name # For macOS - ${PWD}/name:/name Force restart service with compose docker-compose up -d --force-recreate <service> Port forwarding <host_port>:<container_port> Build ima...

Git

Command line tips and tricks

Push commits to another branch git push origin <branch with new changes>:<branch you are pushing to> List git config settings git config --listChange git user for single repository git config user.name "John Smith" Change git user email globally git con...

IPtables

Command line tips and tricks

# src(me) -> dest iptables -A OUTPUT -p tcp --match multiport --dports 80,443 -d 10.11.12.55 -j ACCEPT -m comment --comment 'X-tee turvaserver' # dst -> src(me) iptables -A INPUT -p tcp --match multiport --dports 80,443 -s 10.11.12.55 -j ACCEPT -m comme...

macOS / OS X

Command line tips and tricks

Mac install sshpass brew tap esolitos/ipa brew install sshpass Vagrant bash completion brew install vagrant-completion add to .bash_profile: if [ -f `brew --prefix`/etc/bash_completion.d/vagrant ]; then source `brew --prefix`/etc/bash_completion.d/v...

macOS software setup

Command line tips and tricks

Install first docker - https://docs.docker.com/docker-for-mac/install/ iterm2 - https://iterm2.com/ fork - https://git-fork.com/ homebrew - https://brew.sh/ postman - https://www.postman.com/ skype - https://www.skype.com/en/get-skype/ skype for bus...

Mounting

Command line tips and tricks

Get info of the disk(s) fdisk -l ls -l /dev/disk/by-uuid/ Manual USB mount mount /dev/sdb1 /mnt/usb-ssd -o uid=qrl,gid=qrl,iocharset=utf8,nofail Auto USB mount ( /etc/fstab ) UUID=6403-240D /mnt/usb-ssd exfat uid=qrl,gid=qrl,iocharset=utf8,nofail 0 0 Au...

Network

Command line tips and tricks

Newer Debian resolvectl status service systemd-resolved restart Older Debian systemd-resolve --status systemctl restart systemd-resolved.service

OpenSSL

Command line tips and tricks

Get sha256 fingerprint of cert openssl x509 -noout -sha256 -fingerprint -in <file> Utf8 output -nameopt utf8 Convert RSA DER public key to PEM openssl rsa -pubin -inform DER -in slot3_pub.key -outform PEM -out slot3_pub.pem Convert DER certificate to PEM...

Pkcs11-tool

Command line tips and tricks

Install pkcs11-tool apt install opensc Get hsm info pkcs11-tool --module /opt/nfast/toolkits/pkcs11/libcknfast.so --show-info List available slots pkcs11-tool --module /opt/nfast/toolkits/pkcs11/libcknfast.so --list-slots List...

PKI

Command line tips and tricks

PKI - public key infrastructure Signer- Kasutades x hash algoritmi, nt SHA luuakse andmete/data põhjal hash- Kasutades privaatset võtit ja x krüptograafia algoritmi, nt RSA, loodud hash krüpteeritakse- Kirja pannakse ka täpne aeg, millal hash loodi/krüpteerit...

Resolve / DNS

Command line tips and tricks

Ubuntu 22 resolvectl status Ubuntu 18 systemd-resolve --status

Skype

Command line tips and tricks

List all members & roles in a chat /showmembers Make chat history visible to everyone /set options +HISTORY_DISCLOSED Change user roles in a chat /setrole johnsmith MASTER

SQL

Command line tips and tricks

PSQL get version psql -h <IP/DNS> -U <user> -d <database> -c 'SELECT VERSION()' PSQL test connection Install packages postgresql-client-common and postgresql-client-10 psql -h <host> -p <port> -U <username> -d <database> -c '\c' Database size SELECT pg_s...

ssh, bash, vim configs

Command line tips and tricks

SSH # disable host key check Host * StrictHostKeyChecking no ServerAliveInterval 30 Host test123 User usr Hostname qrl.ee Port 2222 IdentityFile ~/.ssh/my-priv-key.pem LocalForward 4000 localhost:4000 BASH alias ll='ls -lart...