This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
# Generates compressed NCDU reports | |
DATE=$(date +”%d-%m-%Y”) | |
nice -n15 ncdu -qxo- / | gzip > /tmp/disk_report-${DATE}.gz |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
javascript:(function(){video=document.getElementsByClassName("video-stream")[0];video.pause();vsecs=video.currentTime;window.location=window.location.toString().replace("watch?v=","embed/")+"?autoplay=1&start="+Math.floor(vsecs);})(); | |
/*_put_this_into_a_bookmark's_'URL'_field_*/ |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/sh -ex | |
dl() { | |
[ "$FAB_HTTP_PROXY" ] && PROXY="--proxy $FAB_HTTP_PROXY" | |
cd $2; curl -L -f -O $PROXY $1; cd - | |
} | |
SRC=/usr/local/src | |
W2PPASS=turnkey | |
W2PROOT=/var/www/web2py |