Skip to content

Instantly share code, notes, and snippets.

View lepinsk's full-sized avatar
😶‍🌫️

Julian Lepinski lepinsk

😶‍🌫️
View GitHub Profile
@lepinsk
lepinsk / purge.sh
Created November 6, 2015 07:34 — forked from vmassuchetto/purge.sh
Script to clean a Vagrant box before packaging it. Updated to work with Debian and some additional directories. It's also less general and does not remove any system packages at all.
#!/bin/sh
# Credits to:
# - http://vstone.eu/reducing-vagrant-box-size/
# - https://github.com/mitchellh/vagrant/issues/343
# - https://gist.github.com/adrienbrault/3775253
# Unmount project
umount /vagrant
@lepinsk
lepinsk / proxydns.py
Created October 20, 2015 20:14 — forked from guerrerocarlos/proxydns.py
Local DNS Mirror Server with custom UDP port connection to master ProxyDNS server. This script should help users who's ISP do not allow them to use of external DNS services. By running this script in a local computer, and defining that computer's IP to the rest of the devices, all devices will be able to use ProxyDNS.
from twisted.names import dns, server, client, cache
from twisted.application import service, internet
from twisted.internet import defer
from twisted.python import log
import socket
PROXYDNS_MASTER = '50.116.28.138'
PROXYDNS_PORT = 5353
def show_instructions():