-
Copy and Paste in Screen
by Kyle Rankin Put the mouse down, and copy and paste inside a terminal with your keyboard using Screen. Screen is a command-line tool that lets you set up multiple terminal windows within it, detach them and reattach them later, all without any graphical interface. This program has existed since...
-
Check if your desired password is already available in haveibeenpwnd database.
$ function hibp() { sha1=$(echo -n "$1"|sha1sum|awk '{print toupper($0)}'|tr -d 'n'); curl -s -H $'Referer: https://haveibeenpwned.com/' https://api.pwnedpasswords.com/range/$(echo -n $sha1|cut -c1-5)|grep -i $(echo -n $sha1|cut -c6-40); }</p> View this command to comment, vote or add to favourites View all commands by zmonkey Diff your entire server config at ScriptRock.com </div> Read...
-
Process command output line by line in a while loop
$ while read -r line; do echo $line; done < <(YOUR COMMAND HERE);</p> This snippet allows to process the output of any bash command line by line. View this command to comment, vote or add to favourites View all commands by paulera Diff your entire server config at ScriptRock.com </div>...