Navigation Menu

Skip to content

Instantly share code, notes, and snippets.

View eschipul's full-sized avatar

Ed Schipul eschipul

View GitHub Profile
@eschipul
eschipul / ngxdis
Last active November 15, 2017 22:38 — forked from fideloper/ngxdis
Nginx scripts for enable and disabling a site. This will create or destroy a symlink between a real config file in /etc/nginx/sites-available and a symlink in /etc/nginx/sites-enabled.
#!/usr/bin/env bash
if [ $EUID -ne 0 ]; then
echo "You must be root: \"sudo ngxdis\""
exit 1
fi
# -z str: Returns True if the length of str is equal to zero.
if [ -z "$1" ]; then
echo "Please choose a site."
@eschipul
eschipul / keybase.md
Created June 6, 2017 22:22
keybase.md

Keybase proof

I hereby claim:

  • I am eschipul on github.
  • I am eschipul (https://keybase.io/eschipul) on keybase.
  • I have a public key whose fingerprint is EEBD 3759 FBA5 159B CC72 43AD 0A4D 154D E796 A8AB

To claim this, I am signing this object:

@eschipul
eschipul / gist:10311008
Created April 9, 2014 20:27
unix tree app to show directory trees
# CREDITS: from http://www.centerkey.com/tree/tree.sh
#!/bin/sh
#######################################################
# UNIX TREE #
# Version: 2.3 #
# File: ~/apps/tree/tree.sh #
# #
# Displays Structure of Directory Hierarchy #
# ------------------------------------------------- #