Skip to content

Instantly share code, notes, and snippets.

View luginbash's full-sized avatar
😀

Luginbash luginbash

😀
View GitHub Profile
@luginbash
luginbash / .zshrc
Created July 21, 2014 01:53
~/.zshrc
# GNU/Octave 3.8.0
alias octave='/usr/local/octave/3.8.0/bin/octave-3.8.0'
# change editor to use sublime
export EDITOR=lime
export VISUAL=lime
# Source Prezto.
@luginbash
luginbash / libDebian.sh
Created July 21, 2014 02:03
Functions I used to deploy a Debian server.
#!/bin/bash
#
# debian deployment script base, this script does nothing itself.
#
###########################################################
# System
###########################################################
function updateSystem {
apt-get update
@luginbash
luginbash / .zshrc
Created October 17, 2014 08:15
shell profile
# Global
setopt no_nomatch # if there are no matches for globs, leave them alone and execute the command
setopt no_cdable_vars # don't use named directories in cd autocompletion
setopt rmstarsilent # no more prompts in rm
# Intel ICC
PATH="/opt/intel/composerxe/bin:$PATH"
export PATH
@luginbash
luginbash / ocserv.conf
Last active August 29, 2015 14:07
OpenConnect Server Configuration
auth = "certificate"
ca-cert = /etc/ocserv/ca.pem
server-cert = /etc/ocserv/sfo3.pem
server-key = /etc/ocserv/sfo3.key
dh-params = /etc/ocserv/dh.pem
tls-priorities = "NORMAL:%SERVER_PRECEDENCE:%NORMAL:-VERS-SSL3.0:-EXPORT"
predictable-ips = true
compression = true
max-clients = 16
max-same-clients = 5
@luginbash
luginbash / ocprofile.xml
Last active August 29, 2015 14:07
Client profile for OpenConnect Server
<?xml version="1.0" encoding="UTF-8"?>
<AnyConnectProfile xmlns="http://schemas.xmlsoap.org/encoding/" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://schemas.xmlsoap.org/encoding/ AnyConnectProfile.xsd">
<ClientInitialization>
<AutoUpdate>true</AutoUpdate>
<BypassDownloader>true</BypassDownloader>
<UseStartBeforeLogon>false</UseStartBeforeLogon>
<StrictCertificateTrust>false</StrictCertificateTrust>
<RestrictPreferenceCaching>false</RestrictPreferenceCaching>
<RestrictTunnelProtocols>IPSec</RestrictTunnelProtocols>
printf "%s\n" "Setting up vanilla enviroment"
# BSD
PATH="/usr/local/bin:/usr/bin:/bin:/usr/sbin:/sbin"
# OSX Server Specific
PATH="$PATH:/Applications/Server.app/Contents/ServerRoot/usr/bin:/Applications/Server.app/Contents/ServerRoot/usr/sbin"
# sanity locale
export LC_ALL=en_US.UTF-8
export LANG=en_US.UTF-8
daemon
pidfile /var/run/3proxy.pid
nscache 65536
nserver 208.67.222.222
nserver 208.67.220.220
config /etc/3proxy/3proxy.conf
monitor /etc/3proxy/3proxy.conf
monitor /etc/3proxy/counters
monitor /etc/3proxy/passwd
@luginbash
luginbash / default.yaml
Created March 24, 2015 08:12
Weasel Pinyin Config
ascii_composer:
good_old_caps_lock: true
switch_key:
Caps_Lock: clear
Control_L: noop
Control_R: noop
Eisu_toggle: clear
Shift_L: inline_ascii
Shift_R: commit_text
config_version: 0.36.custom.3025064750
@luginbash
luginbash / proxy.js
Last active September 16, 2015 07:33
my auto proxy configuration script, address stripped.
function FindProxyForURL(url, host) {
// Apple Device compatibility, they will skip SOCKS5 for SOCKS.
var local_address = "192.168.88.0";
var local_subnet = "255.255.255.0";
var PROXY = "SOCKS5 __ADDRESS__:__PORT__; SOCKS __ADDRESS__:__PORT__";
var OLDMILL = "SOCKS5 __ADDRESS__:__PORT__; SOCKS __ADDRESS__:__PORT__";
var domain_list = [ ".ytimg.com"
,".youtube.com"
,".greatfire.org"
,"gist.github.com"
@luginbash
luginbash / surge.conf
Created October 4, 2015 07:24 — forked from janlay/README.md
Yet another config for Surge.app
[General]
# warning, notify, info, verbose
loglevel = notify
[Proxy]
# http, https, socks5
Proxy = custom, 1.2.3.4, 443, rc4-md5, password, http://server/custom.module
[Rule]
# Block privacy trackers