Check These Out
Trace python statement execution and syscalls invoked during that simultaneously
alt + number + dot will insert last command argument at $number place, alt + 0 + . will print last command name. For example
$ ls /tmp /var
$ ls /usr /home
alt + 1 + . will result in '/usr' , if you press alt + . again, it will result in '/tmp'
alt + 0 + . -> 'ls'
This one-liner was useful in helping someone I know to get off of MS Exchange. `mailutil` proved to be a much better alternative than `fetchmail` or `getmail` in this case.
It quickly moved all mails to the destination server (a simple Dovecot/Maildir setup), with no need to convert back and forth between mbox/maildir on the user's own system.
swap out "80" for your port of interest. Can use port number or named ports e.g. "http"
swap out "80" for your port of interest. Can use port number or named ports e.g. "http"
Useful when you have multiple files or binary files that you need to transfer to a different host and scp or the like is unavailable.
To unpack on the destination host copy paste output using the opposite order:
openssl enc -d -base64 | gunzip | tar -x
Terminate openssl input using ^d
Note: gzip is outside of tar because using -z in tar produces lots of extra padding.
This command attempts to attach to existing irssi session, if one exists, otherwise creates one.
I use "irc" because I use different irc clients depending on what system I am working on. Consistency is queen.
tar's directory and sends to netcat listening on port 10000
On the client end:
netcat [server ip] 10000 | tar xfvz -
This will send it over the network and extract it on the clients machine.
Although the need to type a password to make certain changes to the system may make perfect sense in a business or educational environment, it makes absolutely zero sense to the home user. So, if you’re at home and would rather get work done than be annoyed by what is essentially Linux’s UAC, then this command is for you.