Skip to content

Instantly share code, notes, and snippets.

View furikake's full-sized avatar

Winston Lee furikake

  • Melbourne, Australia
View GitHub Profile
@furikake
furikake / .anyconnect_global
Last active October 2, 2016 22:12
Multiple VPN Servers and Profiles in Cisco AnyConnect VPN
<!-- /opt/cisco/anyconnect/.anyconnect_global -->
<?xml version="1.0" encoding="UTF-8"?>
<AnyConnectPreferences>
<DefaultUser>user</DefaultUser>
<DefaultSecondUser>USERNAME</DefaultSecondUser>
<ClientCertificateThumbprint></ClientCertificateThumbprint>
<ServerCertificateThumbprint></ServerCertificateThumbprint>
<DefaultHostName>vpn.example.org</DefaultHostName>
<DefaultHostAddress>93.184.216.34:443</DefaultHostAddress>
<DefaultGroup></DefaultGroup>
@furikake
furikake / resolv.conf
Last active October 3, 2016 08:44
Telstra's consumer Internet nameservers are truly woeful and timeout constantly. Here's an alternative config to get your Internet working again.
nameserver 139.130.4.4
nameserver 203.50.2.71
nameserver 208.67.222.222
nameserver 8.8.8.8
@furikake
furikake / disable-gamed-osx.md
Created September 26, 2015 01:03
Disable gamed process in OS X

Execute the following command

launchctl unload -w /System/Library/LaunchAgents/com.apple.gamed.plist

Verify

grep com.apple.gamed -A 4 /var/db/launchd.db/com.apple.launchd.peruser.$UID/overrides.plist
@furikake
furikake / 0_reuse_code.js
Created May 28, 2014 22:51
Here are some things you can do with Gists in GistBox.
// Use Gists to store code you would like to remember later on
console.log(window); // log the "window" object to the console

Port Fowarding with Vagrant and Docker Provider with a Vagrant Proxy for MAC OS X

Exposing services (ports) running in a Docker container to OSX with Vagrant

Hopefully this helps the next poor soul trying to do work this out.

File structure

- Dockerfile
- Vagrantfile
@furikake
furikake / haproxy.cfg
Created May 27, 2014 11:48
Default haproxy.cfg in Ubuntu Precise
# this config needs haproxy-1.1.28 or haproxy-1.2.1
global
log 127.0.0.1 local0
log 127.0.0.1 local1 notice
#log loghost local0 info
maxconn 4096
#chroot /usr/share/haproxy
user haproxy
group haproxy