Skip to content

Instantly share code, notes, and snippets.

View jake-minted's full-sized avatar

Jake Champlin jake-minted

View GitHub Profile
@jake-minted
jake-minted / vpn_toggle
Last active August 29, 2015 14:13
Apple VPN Toggle w/ Password
tell application "System Events"
-- get current clipboard contents as a string
-- set the clipboad to your password
set the clipboard to "PASSWORD"
-- start playing with the VPN
tell current location of network preferences
-- set the name of the VPN service from your Network Settings
@jake-minted
jake-minted / linux_sound_fix.sh
Created December 2, 2014 04:33
HipChat Linux Sound Fix
# Had to install libcanberra, sound files, and then symlink to old directory structure
# Install libcanberra (Assuming Arch). Google for debian/ubuntu/RHEL flavors
yaourt -S libcanberra ubuntu-sounds
# Make the old school lib directory
sudo mkdir -p /usr/lib/x86_64-linux-gnu/libcanberra-0.28
# Yes, it is hardcoded to that path. Yes, they want version 0.28. This is current as of 12.1.14
@jake-minted
jake-minted / gist:a51722e3724f8bcb1009
Last active August 29, 2015 14:08
Yosemite Git Svn Fix
# Git-SVN is brokeds on OSXY.
# Here is step by step things to fix it.
sudo cpan SVN::Core
# Now find the executable for git-svn
locate git-svn
# This should be something like:
"/Applications/Xcode.app/Contents/Developer/usr/libexec/git-core/git-svn"
@jake-minted
jake-minted / slate.js
Created September 12, 2014 19:17
My Slate.js Configuration
# Configuration is split into the following directives:
# config (for global configurations)
config defaultToCurrentScreen true
config resizePercentOf screenSize
config nudgePercentOf screenSize
config secondsBetweenRepeat 0.1
config checkDefaultsOnLoad true
config focusCheckWidthMax 3000