Skip to content

Instantly share code, notes, and snippets.

View erlhermit's full-sized avatar

ErlHermit erlhermit

View GitHub Profile
/*
* Copyright (c) 2013 by Wil Tan <[email protected]>
*
* Based on dump_dns.c from the dnscap <https://www.dns-oarc.net/tools/dnscap>
* originally written by Paul Vixie.
*
* Copyright (c) 2007 by Internet Systems Consortium, Inc. ("ISC")
*
* Permission to use, copy, modify, and/or distribute this software for any
* purpose with or without fee is hereby granted, provided that the above
@erlhermit
erlhermit / gogs
Last active December 12, 2018 14:28 — forked from infostreams/gogs
#! /bin/sh
### BEGIN INIT INFO
# Provides: gogs
# Required-Start: $remote_fs $syslog
# Required-Stop: $remote_fs $syslog
# Default-Start: 2 3 4 5
# Default-Stop: 0 1 6
# Short-Description: Git repository manager Gogs
# Description: Starts and stops the self-hosted git repository manager Gogs
### END INIT INFO
#!/bin/sh
# dependencies
echo "Installing dependencies via Homebrew (http://brew.sh)"
ruby -e "$(curl -fsSL https://raw.github.com/Homebrew/homebrew/go/install)"
brew update
brew install gcc48
@erlhermit
erlhermit / vpn_pptp_debian.sh
Created July 14, 2015 19:08
vpn_pptp_debian.sh
#!/bin/bash
function installVPN(){
apt-get update
#remove ppp pptpd
rm -rf /etc/pptpd.conf
rm -rf /etc/ppp
apt-get -y remove ppp pptpd
apt-get -y install ppp pptpd iptables
echo ms-dns 8.8.8.8 >> /etc/ppp/pptpd-options