Skip to content

Instantly share code, notes, and snippets.

@ryanemmm
ryanemmm / bouncewifi
Last active December 28, 2015 19:29
turns wifi off, then on.
#AppleScript
#- bounce wifi: turn it off, then turn it on
#- open AppleScript Editor, paste lines 4,5,6, save as application
#- ** oh be sure to set the network_device -- en0 in my case to the correct interface
set network_device to "en0"
do shell script "networksetup -setairportpower " & network_device & " off"
do shell script "networksetup -setairportpower " & network_device & " on"
@ryanemmm
ryanemmm / per_app_bundler_local_path
Created September 6, 2013 01:31
Was pointed to http://ryanbigg.com/2013/08/bundler-local-paths/ but I wanted "per app" local paths: i.e. App1 uses local.gem but App2 uses the default
# Original from http://ryanbigg.com/2013/08/bundler-local-paths/
> bundle config local.spree ~/Projects/gems/spree
- creates ~/.bundle/config
- which is used by all projects/apps
# Per app
> bundle config --local local.gem "path/to/local/gem"
- note: I had to manually cd into project/app directory to get this to create the file at 'app/.bundle/config'