Skip to content

Instantly share code, notes, and snippets.

View michaelgoitein's full-sized avatar

Michael Goitein michaelgoitein

View GitHub Profile
@selahssea-zz
selahssea-zz / open-chrome.sh
Last active November 20, 2018 13:17
Google Chrome disable web security (CORS) on Mac OS X
#!/bin/bash
open /Applications/Google\ Chrome\ Canary.app/ --args --disable-web-security
@bitsandbooks
bitsandbooks / add-nginx-vhost.sh
Last active June 22, 2017 01:45
My custom script for adding a vhost to Nginx.
#!/usr/bin/env bash
#
# Nginx - new server block
# http://rosehosting.com
# Functions
ok() { echo -e '\e[32m'$1'\e[m'; } # Green
working() { echo -ne '\e[1;33m'$1'\e[m'; } # Yellow
die() { echo -e '\e[1;31m'$1'\e[m'; exit 1; }