Skip to content

Instantly share code, notes, and snippets.

View ianobre's full-sized avatar

Ismael Nobre ianobre

View GitHub Profile
@organicaudio
organicaudio / custom_ubuntu_bash_aliases
Created January 18, 2016 07:31
Custom Aliases for Ubuntu Server
# # 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'
@patidardhaval
patidardhaval / README.md
Last active August 29, 2022 07:57
Node Rest api using hapi and mysql

NodeRestful

Create Node Restful APIs with MySQL Database

Install Node JS and MySQL Software, create a database and import SQL file.

Go to terminal or command line.

Execute following commands to run this application.

Start Project

<?php
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];
}