This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
local user_host='%{$terminfo[bold]$fg[green]%}%n@%m%{$reset_color%}' | |
local original='%{$fg_bold[red]%} %{$fg_bold[green]%}%p %{$fg[cyan]%}%c' | |
local git_branch='%{$fg_bold[blue]%}$(git_prompt_info)%{$reset_color%}' | |
local svn_branch='%{$fg_bold[blue]%}$(svn_prompt_info)%{$reset_color%}' | |
local ruby_version='' | |
if which rvm-prompt &> /dev/null; then | |
ruby_version='%{$fg[red]%}‹$(~/.rvm/bin/rvm-prompt i v)› %{$reset_color%}' |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
rsync --version | |
# should answer something like | |
# rsync version 2.6.9 protocol version 29 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
module InventoryClient | |
class FileWave | |
def self.install_pkg(pkg) | |
`sudo /usr/sbin/installer -pkg #{pkg} -target /` | |
end | |
def self.install_fw | |
fw_pkg = 'fw_5.8.1_osx.pkg' | |
install_pkg(fw_pkg) if File.exists?(fw_pkg) | |
end |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#source http://manski.net/2013/02/how-to-fix-multiple-items-in-the-open-with-menu-in-os-x/ | |
/System/Library/Frameworks/CoreServices.framework/Versions/A/Frameworks/LaunchServices.framework/Versions/A/Support/lsregister -kill -r -domain local -domain system -domain user && pkill Finder |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# install the command line tools | |
# http://connect.apple.com | |
# if this doesn't work, install them from inside Xcode | |
# install homebrew | |
ruby -e "$(curl -fsSL https://raw.github.com/mxcl/homebrew/go)" | |
brew doctor | |
# install git | |
brew install git |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# clean up old kernels | |
# WARNING: ONLY RUN AFTER UPDATING, UPGRADING AND REBOOTING SUCCESSFULLY | |
sudo apt-get purge $(dpkg -l linux-{image,headers}-"[0-9]*" | awk '/ii/{print $2}' | grep -ve "$(uname -r | sed -r 's/-[a-z]+//')") |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# space being used by folder | |
sudo du -sch * | |
# display files older than 30 days | |
sudo find . -ctime +30 -print0 | xargs -0 -n1 | |
# remove them | |
sudo find . -ctime +30 -print0 | xargs -0 rm | |
# remember to clear .SyncArchive files |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
set-option -g default-shell /bin/zsh | |
set -g mode-mouse on |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
bundle install |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
wget http://apt.puppetlabs.com/puppetlabs-release-precise.deb | |
sudo dpkg -i puppetlabs-release-precise.deb | |
sudo apt-get update |
OlderNewer