Skip to content

Instantly share code, notes, and snippets.

@ctrngk
ctrngk / timeout.py
Created July 27, 2016 18:05 — forked from devietti/timeout.py
Python script+module to run a command with a timeout. A signal (SIGKILL by default) is sent to the command if the timeout expires.
#!/usr/bin/env python
## This program is free software: you can redistribute it and/or modify
## it under the terms of the GNU General Public License as published by
## the Free Software Foundation, either version 3 of the License, or
## (at your option) any later version.
## This program is distributed in the hope that it will be useful,
## but WITHOUT ANY WARRANTY; without even the implied warranty of
## MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
@ctrngk
ctrngk / openswan-l2tp-vpn-ubuntu.sh
Created July 27, 2016 17:31 — forked from jpillora/openswan-l2tp-vpn-ubuntu.sh
openswan-l2tp-vpn-ubuntu.sh
#!/bin/sh
# Setup Simple IPSec/L2TP VPN server for Ubuntu and Debian
#
# Copyright (C) 2014 Phil Plückthun <phil@plckthn.me>
# Based on the work of Lin Song (Copyright 2014)
# Based on the work of Viljo Viitanen (Setup Simple PPTP VPN server for Ubuntu and Debian)
# Based on the work of Thomas Sarlandie (Copyright 2012)
#
# This work is licensed under the Creative Commons Attribution-ShareAlike 3.0
# Unported License: http://creativecommons.org/licenses/by-sa/3.0/
@ctrngk
ctrngk / set-up-l2tp-ipsec-vpn-on-debian.md
Created January 28, 2016 05:03 — forked from mietek/set-up-l2tp-ipsec-vpn-on-debian.md
Set up L2TP/IPsec VPN on Debian

Set up L2TP/IPsec VPN on Debian

Set up IPsec

Set up networking