##What to do when RVM fucks with your sudo PATH
echo 'echo $PATH' > path.sh
bash path.sh
sudo bash path.shIf you see a difference, look in /etc/sudoers or /etc/sudoers.d/
| #!/usr/bin/env sh | |
| ## | |
| # This is script with usefull tips taken from: | |
| # https://github.com/mathiasbynens/dotfiles/blob/master/.osx | |
| # | |
| # install it: | |
| # curl -sL https://raw.github.com/gist/2108403/hack.sh | sh | |
| # |
| " Requirements: | |
| " - you'll need VIM compiled with Ruby scripting support | |
| " - example: for Debian/Ubuntu: sudo apt-get install vim-ruby | |
| " - please, copy this file to one of your VIM dir | |
| " - example: to your .vim home folder: $HOME/.vim/vimlog.vim | |
| " - please, add this code to your .vimrc file: | |
| " | |
| " if !exists('*Wordpress_vim') | |
| " runtime vimlog.vim | |
| " endif |
| tell application "System Events" | |
| # create an iTerm session if we dont have one | |
| if not (exists (processes where name is "iTerm")) then | |
| tell application "iTerm" to (make new terminal) | |
| end if | |
| tell application "iTerm" | |
| activate | |
| tell the current terminal | |
| set SublimeSessionName to "sublime" |
| /* | |
| As of version 1.1.2, Propane will load and execute the contents of | |
| ~Library/Application Support/Propane/unsupported/caveatPatchor.js | |
| immediately following the execution of its own enhancer.js file. | |
| You can use this mechanism to add your own customizations to Campfire | |
| in Propane. | |
| Below you'll find two customization examples. |
| /* | |
| As of version 1.1.2, Propane will load and execute the contents of | |
| ~Library/Application Support/Propane/unsupported/caveatPatchor.js | |
| immediately following the execution of its own enhancer.js file. | |
| You can use this mechanism to add your own customizations to Campfire | |
| in Propane. | |
| Below you'll find two customization examples. |
| # place this with other bash functions in either ~/.bash_profile or a similar location | |
| vpn () { | |
| /usr/bin/env osascript <<EOF | |
| tell application "System Events" | |
| tell current location of network preferences | |
| set VPN to service "My VPN Name" | |
| if exists VPN then connect VPN | |
| end tell | |
| end tell |
##What to do when RVM fucks with your sudo PATH
echo 'echo $PATH' > path.sh
bash path.sh
sudo bash path.shIf you see a difference, look in /etc/sudoers or /etc/sudoers.d/
| #!/bin/bash | |
| sudo mkdir -p /Library/Internet\ Plug-Ins/disabled | |
| sudo mv /Library/Internet\ Plug-Ins/JavaAppletPlugin.plugin /Library/Internet\ Plug-Ins/disabled | |
| sudo ln -sf /System/Library/Java/Support/Deploy.bundle/Contents/Resources/JavaPlugin2_NPAPI.plugin /Library/Internet\ Plug-Ins/JavaAppletPlugin.plugin | |
| sudo ln -sf /System/Library/Frameworks/JavaVM.framework/Commands/javaws /usr/bin/javaws |
| { | |
| "Statement": [ | |
| { | |
| "Effect": "Allow", | |
| "Action": ["s3:ListBucket", "s3:ListAllMyBuckets" ], | |
| "Resource": "arn:aws:s3:::*" | |
| }, | |
| { | |
| "Effect": "Deny", | |
| "Action": ["s3:ListBucket"], |
| #!/usr/bin/env ruby | |
| # | |
| # stevie_chambers@viewyonder.com July 2012 | |
| # | |
| # I'm playing around with APIs, and sharing my learnings | |
| # You can follow my trials and tribulations at http://viewyonder.com/apis | |
| # | |
| # This is a simple Ruby script to show how a simple API might work. | |
| # The resource model is just a simple array of a single class - no back-end store (yet) | |
| # |