Skip to content

Instantly share code, notes, and snippets.

View dealloc's full-sized avatar

Wannes Gennar dealloc

View GitHub Profile
@dealloc
dealloc / sudo_once.sh
Created March 25, 2016 20:02
prompt sudo once and forget about it
startsudo()
{
sudo -v
( while true; do sudo -v; sleep 50; done; ) &
SUDO_PID="$!"
trap stopsudo SIGINT SIGTERM
}
stopsudo()
{
kill "$SUDO_PID"
@dealloc
dealloc / app.css
Created September 3, 2015 16:33
fancy CSS3 underline
/* ripped from semantic-ui.com */
a
{
display: inline-block;
position: relative;
overflow: hidden;
vertical-align: top;
z-index: 0;
-webkit-transition: color 0.2s;
@dealloc
dealloc / cmder.reg
Last active August 29, 2015 14:24
handy cmder context menu
Windows Registry Editor Version 5.00
[HKEY_CLASSES_ROOT\directory\background\shell\open with Cmder]
"Icon"="C:\\Program Files (x86)\\cmder\\Cmder.exe"
[HKEY_CLASSES_ROOT\directory\background\shell\open with Cmder\command]
@="\"C:\\Program Files (x86)\\cmder\\Cmder.exe\" /START \"%V\""
[HKEY_CLASSES_ROOT\directory\shell\open with Cmder]