Skip to content

Instantly share code, notes, and snippets.

@totolicious
totolicious / gist:859e6fdcb852a60dcebd
Created October 1, 2015 14:33
atom bracket matcher less code for 'one dark' theme
//This has been stolen from here
//https://github.com/evpok/fancy-bracket-matcher
//and adapted to use animate the background from blue to pink - because why not?
@-webkit-keyframes bracketanimation {
from {
color: #fffc25;
top: 0px;
background-color: #292c37;
}
@totolicious
totolicious / gist:ee828e36bb04d692fbdb
Last active August 29, 2015 14:13
simple nmap local network scanner
$pattern="*"; #can also be 1-255 or other intervals
nmap `ifconfig | grep 'inet ' | cut -d' ' -f2 | cut -d'.' -f1,2,3 | tail -1`".$pattern"
@totolicious
totolicious / gist:42c14bfd60ef2d7c570b
Last active August 29, 2015 14:12
Terminal prompt - relative path and exit status
#PS1 shows relative path from $HOME
#also shows exit status as a green ✓ or the error exit status of last command
export PS1="\$(
exit_status=\$?;
echo -ne \"\${PWD/#\$HOME/~}\"\" \";
if [[ \$exit_status == 0 ]]; then
echo -ne \"$txtgrn\"\"✓\"\"$txtrst \";