This file contains hidden or 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
import sys | |
reload(sys) # Reload does the trick! | |
sys.setdefaultencoding('UTF8') |
This file contains hidden or 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
#!/bin/bash | |
apt-get update -y | |
apt-get install -y build-essential | |
wget -O ruby-install-0.5.0.tar.gz https://github.com/postmodern/ruby-install/archive/v0.5.0.tar.gz | |
tar -xzvf ruby-install-0.5.0.tar.gz | |
cd ruby-install-0.5.0/ | |
make install |
This file contains hidden or 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
#!/bin/bash | |
# | |
# eye Startup script for Eye monitoring tool. | |
# | |
# chkconfig: - 85 15 | |
# description: eye monitors your system | |
# | |
CONF_DIR=/etc/eye/eye.conf | |
PID=/var/run/eye.pid |
This file contains hidden or 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
sudo /Applications/Install\ OS\ X\ Mavericks.app/Contents/Resources/createinstallmedia --volume /Volumes/Untitled --applicationpath /Applications/Install\ OS\ X\ Mavericks.app --nointeraction |
This file contains hidden or 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
find . -type f -exec sed -i "" "s#/usr/share/#/usr/local/share/#g" '{}' \; |
This file contains hidden or 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
brew install python | |
pip install PyYAML jinja2 | |
sudo pip install ansible | |
# paramiko isn't needed, MacOS has new enough ssh | |
# sudo is needed for the ansible install because it wants to put resources in /usr/share | |
# an alternative to using sudo is to checkout ansible from | |
https://github.com/ansible/ansible | |
# then run in the root of the git checkout |
This file contains hidden or 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
# get both ouput and result from a shellout | |
output=`ls no_existing_file` ; result=$?.success? |
This file contains hidden or 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
sudo apt-get update | |
sudo apt-get -y upgrade | |
sudo apt-get -y install build-essential git-core libssl1.0.0 libssl-dev libreadline-dev zlib1g-dev | |
git clone git://github.com/sstephenson/rbenv.git ~/.rbenv | |
git clone git://github.com/sstephenson/ruby-build.git ~/.rbenv/plugins/ruby-build | |
echo ' | |
==================================== | |
You should add this stuff to your zshrc now, | |
then reload shell and run p2! |
This file contains hidden or 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
#!/bin/bash | |
sudo apt-get update | |
sudo apt-get -y upgrade | |
sudo apt-get -y install build-essential | |
sudo apt-get -y install git-core | |
sudo apt-get -y install libssl1.0.0 libssl-dev | |
git clone git://github.com/sstephenson/rbenv.git ~/.rbenv | |
echo 'export PATH="$HOME/.rbenv/bin:$PATH"' >> .bash_profile | |
echo 'eval "$(rbenv init -)"' >> .bash_profile | |
source ~/.bash_profile |
This file contains hidden or 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
remote: error: refusing to update checked out branch: refs/heads/master | |
remote: error: By default, updating the current branch in a non-bare repository | |
remote: error: is denied, because it will make the index and work tree inconsistent | |
remote: error: with what you pushed, and will require 'git reset --hard' to match | |
remote: error: the work tree to HEAD. | |
remote: error: | |
remote: error: You can set 'receive.denyCurrentBranch' configuration variable to | |
remote: error: 'ignore' or 'warn' in the remote repository to allow pushing into | |
remote: error: its current branch; however, this is not recommended unless you | |
remote: error: arranged to update its work tree to match what you pushed in some |
NewerOlder