Skip to content

Instantly share code, notes, and snippets.

View skriebel's full-sized avatar

Scott skriebel

  • Greater Pittsburgh Area
View GitHub Profile
@wastrachan
wastrachan / openvpn-in-lxd.txt
Last active March 21, 2023 13:07
OpenVPN in LXD Container
# On the host
=============
lxc config set openvpn raw.lxc 'lxc.cgroup.devices.allow = c 10:200 rwm'
lxc config device add openvpn tun unix-char path=/dev/net/tun
# In the container
==================
1. mknod /dev/net/tun c 10 200
@gdamjan
gdamjan / Makefile
Last active October 13, 2015 05:47
compile uwsgi for Debian and similar
VER = 2.0.2
PKG = uwsgi
URL = http://projects.unbit.it/downloads/$(PKG)-$(VER).tar.gz
CFLAGS = # "-ggdb -O0"
UWSGICONFIG_RUBYPATH=ruby1.9.1
PREFIX= /opt/nginx
LIBS = $(PREFIX)/lib
@bcks
bcks / svg2raphael.js
Last active April 4, 2023 10:02
Convert SVG to Raphael.js
#!/usr/bin/perl
#
# Useful for making maps like the one at http://backspace.com/mapapp/javascript_world
#
use XML::TreeBuilder;