Skip to content

Instantly share code, notes, and snippets.

@seifsallam
seifsallam / 0_reuse_code.js
Created June 3, 2014 13:18
Here are some things you can do with Gists in GistBox.
// Use Gists to store code you would like to remember later on
console.log(window); // log the "window" object to the console
@seifsallam
seifsallam / .bashrc
Last active December 19, 2015 10:29 — forked from joequery/gist:1607063
Enable disable a Nginx configuration from `/sites-available`
##
## NGINX helpers
##
# Kill and restart nginx
function restart_nginx(){
pids=$(pidof nginx)
if [[ -n $pids ]];
then
sudo kill -9 $pids