Check These Out
For easy portability you can include you service account blobs directly to your rclone config. So it generate a rclone config like the following:
[dst977]
type = drive
scope = drive
service_account_credentials = {"type":"service_account","project_id":"saf-ju66hcgi8qf8zidhvfww4oxwe7","private[.................] }
% acts on every line in the file.
\s matches spaces.
\+ matches one or more occurrences of what's right behind it.
Character '$' matches end-of-line.
Getting shellcode from ARM binaries - @OsandaMalith
Use GNU/screen as a terminal emulator for anything serial console related.
screen /dev/tty
eg.
screen /dev/ttyS0 9600
MacOSX: http://www.macosxhints.com/article.php?story=20061109133825654
Cheat Sheet: http://www.catonmat.net/blog/screen-terminal-emulator-cheat-sheet/
you could save the code between if and fi to a shell script named smiley.sh with the first argument as and then do a smiley.sh to see if the command succeeded. a bit needless but who cares ;)
GNU grep's perl-compatible regular expression(PCRE).
The coolest way I've found to backup a wordpress mysql database using encryption, and using local variables created directly from the wp-config.php file so that you don't have to type them- which would allow someone sniffing your terminal or viewing your shell history to see your info.
I use a variation of this for my servers that have hundreds of wordpress installs and databases by using a find command for the wp-config.php file and passing that through xargs to my function.
If you want to pull all of the files from a tree that has mixed files and directories containing files, this will link them all into a single directory. Beware of filesystem files-per-directory limits.
It willl popup a message for each new entry in /var/log/messages
found on the notify-send howto page on ubuntuforums.org.
Posted here only because it is one of the favourites of mine.
-R, -r, --recursive
Read all files under each directory, recursively; this is equivalent to the -d recurse option.