Skip to content

Instantly share code, notes, and snippets.

Ismael Nobre ianobre

Block or report user

Report or block ianobre

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
sawyyz / custom_ubuntu_bash_aliases
Created Jan 18, 2016
Custom Aliases for Ubuntu Server
View custom_ubuntu_bash_aliases
status () { sudo service "$@" status; }
# usuage "status <servicename>
# Service Shortcuts
alias t-start='sudo service transmission-daemon start'
alias t-stop='sudo service transmission-daemon stop'
alias t-reload='sudo service transmission-daemon reload'
alias t-list='transmission-remote -n 'transmission:transmission' -l'
View gist:4388108
header("Cache-Control: no-cache, must-revalidate");
header("Expires: Sat, 26 Jul 1997 05:00:00 GMT");
header("Pragma: no-cache");
function human_filesize($bytes, $decimals = 2) {
$sz = 'BKMGTP';
$factor = floor((strlen($bytes) - 1) / 3);
return sprintf("%.{$decimals}f", $bytes / pow(1024, $factor)) . @$sz[$factor];
You can’t perform that action at this time.