Skip to content

Instantly share code, notes, and snippets.

View jagipson's full-sized avatar

Jeffrey Gipson jagipson

View GitHub Profile
@jagipson
jagipson / IKEv2.mobileconfig
Created April 8, 2016 21:50 — forked from zqqf16/IKEv2.mobileconfig
strongSwan IKEv2 for iOS without certificate
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
<plist version="1.0">
<dict>
<key>PayloadContent</key>
<array>
<dict>
<key>IKEv2</key>
<dict>
<key>AuthName</key>
%pre --interpreter /usr/bin/python
# -*- coding: utf-8 -*-
import os, sys
from snack import *
def set_tty(n):
f = open('/dev/tty%d' % n, 'a')
os.dup2(f.fileno(), sys.stdin.fileno())
os.dup2(f.fileno(), sys.stdout.fileno())
os.dup2(f.fileno(), sys.stderr.fileno())
#!/bin/bash
# Usage: rotate-screen [absolute] [action]
#
# ACTIONS:
# flip|invert - invert the screen from the current rotation
# left - rotate to the left
# right - rotate to the right
#
# OPTION: