Skip to content

Instantly share code, notes, and snippets.

#fsck on every reboot
touch /forcefsck
#output processes and threads of a user
ps -LF -u user_name
#run last command with sudo
sudo !!
#command generates a simple web page over HTTP for the directory structure tree
while sleep 1;do tput sc;tput cup 0 $(($(tput cols)-29));date;tput rc;done &
#executable flag
svn propset svn:executable ON ./script.sh
find . -name '*' -exec rm {} \;
@usbmonkey
usbmonkey / tarssh.sh
Last active December 21, 2015 20:49
Create & transfer tarball over ssh
ssh -c 'tar cvzf - -C /path/to/src/*' | tar xzf -
find . -type d | sed -e "s/[^-][^\/]*\// |/g" -e "s/|\([^ ]\)/|-\1/"