pywkt

Shell

ExifTool

A command-line interface to Image::ExifTool, used for reading and writing meta information in a variety of file types. FILE is one or more source file names, directory names, or "-" for the standard input. Metadata is read from source files and printed in readable form to the console (or written to output text files with -w).

Remove all non-essential data from all photos in a directory

exiftool -all:all= ~/Desktop/temp

Write property to a file

exiftool -<property>="info" <filename>


SCP

scp copies files between hosts on a network. It uses ssh(1) for data transfer, and uses the same authentication and provides the same security as ssh(1). scp will ask for passwords or passphrases if they are needed for authentication.

Download a file from a remote server

scp user@192.168.X.XXX:/path/to/remote/file /path/to/local/file

Download all folders in a directory (recursive)

scp -r user@192.168.X.XXX:/

Upload a file to a remote server

scp /path/to/local/file user@192.168.X.XXX:/path/to/save/on/remote

Common flags

-p <port>    Port          // Specify the ssh port
-r           Recursive     // When uploading/downloading an entire directory
-v           Verbose       // Log all the things

Snap

List installed packages

sudo snap list

Install a package

sudo snap install <package-name>

Remove a package

sudo snap remove <package-name>


tmux

tmux is a terminal multiplexer: it enables a number of terminals to be created, accessed, and controlled from a single screen. tmux may be detached from a screen and continue running in the background, then later reattached.

Start a new session called 001

tmux new -s 001

List all sessions

tmux ls

Re-attach a detached session (001)

tmux attach -t 001

Common commands

ctrl+b + %     // split window vertically
ctrl+b + \"     // split window horizontally
ctrl+b + o     // close active pannel

IP Tools

General

Get local IP

ip a | grep 192.168

Dig

Install Dig

Ubuntu

sudo apt-get install dnstools

Arch/Manjaro

sudo pacman -S dnsutils

Get public IP address

dig +short myip.opendns.com @resolver1.opendns.com