Skip to content

Instantly share code, notes, and snippets.

#include <inttypes.h>
#include <stdarg.h>
#include <stdint.h>
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <unistd.h>
static void outb(char c, char *target, const size_t length, const size_t index) {
if (target && index < length)
@fffe
fffe / xmonad.hs
Created December 31, 2018 13:16
xmonad.hs for xinerama with per-screen status bars
import XMonad
import qualified XMonad.StackSet as S
import XMonad.Config.Desktop
import XMonad.Layout.WindowNavigation
import XMonad.Layout.Minimize
import XMonad.Layout.Reflect
import XMonad.Actions.GroupNavigation
import XMonad.Actions.CycleWS
@fffe
fffe / !IPSec.md
Created December 31, 2018 13:12
IPsec 'roadwarrior' IKEv2 setup for iOS/macOS with VTI

Install requirements

apt-get install strongswan strongswan-pki iptables-persistent

Generate some keys

Set an appropriate umask