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/sh | |
# CFLAGS="-arch x86_64 -g -O2" CONFIGURE_OPTS="--with-readline-dir=`brew --prefix readline` --with-openssl-dir=`brew --prefix openssl`" rbenv install 2.0.0-p247 | |
__install_ruby () { | |
local CFLAGS='-arch x86_64 -g -O2' | |
local READLINE=`brew --prefix readline` | |
local OPENSSL=`brew --prefix openssl` | |
if [ -d "$READLINE" ]; then |
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/sh | |
# assumptions: | |
# * virtualenv is avaliable and working | |
# * virtualenvs go to ~/.pvm | |
export PIP_REQUIRE_VIRTUALENV=true | |
export PIP_RESPECT_VIRTUALENV=true | |
export VIRTUALENV_DISTRIBUTE=true | |
cd ~; mkdir -p ~/.pvm/core | |
virtualenv --python=/usr/bin/python --clear --no-site-packages --distribute ~/.pvm/core |
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
cd ~ | |
sudo yum update | |
sudo yum install java-1.7.0-openjdk -y | |
curl -XGET -L https://download.elasticsearch.org/elasticsearch/elasticsearch/elasticsearch-0.20.5.tar.gz -o elasticsearch-0.20.5.tar.gz | |
tar -xf elasticsearch-0.20.5.tar.gz | |
mv elasticsearch-0.20.5 elasticsearch | |
sudo mv elasticsearch /usr/local/share |
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
#!/usr/bin/env python | |
# -*- encoding: utf-8 -*- | |
""" | |
simplegeo/python-oauth2 basic 3-legged example adapted to Y! Sports OAuth API | |
references: | |
https://github.com/simplegeo/python-oauth2#twitter-three-legged-oauth-example | |
https://github.com/simplegeo/python-oauth2/issues/10 | |
http://stackoverflow.com/questions/4026759/problems-with-python-oauth2-and-yahoos-fantasy-sports-api | |
""" |
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
# references | |
# https://www.thegeekstuff.com/2012/08/lsof-command-examples/ | |
# list open network files | |
sudo lsof -PiTCP -sTCP:LISTEN | |
# list files opened by a process | |
lsof -c ssh |
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
St. Louis São Paulo | |
======================================================================== | |
where? Missouri, EUA São Paulo, Brasil | |
http://goo.gl/maps/g15x7 http://goo.gl/maps/Hf6Jj | |
population (2011) 318.069 11.316.149 | |
area (km2) 171.3 1.522.986 | |
founded 1764 1544 | |
elevation (m) 142 760 | |
time zone UTC-6 UTC-3 |
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 | |
# Install Python 2.7.3 alternatively | |
# original script: | |
# https://github.com/bngsudheer/bangadmin/blob/master/linux/centos/6/x86_64/build-python-27.sh | |
# | |
yum groupinstall "development tools" -y | |
yum install -y readline-devel openssl-devel gmp-devel \ | |
ncurses-devel gdbm-devel zlib-devel expat-devel libGL-devel \ | |
tk tix gcc-c++ libX11-devel glibc-devel bzip2 tar tcl-devel \ | |
tk-devel pkgconfig tix-devel bzip2-devel sqlite-devel autoconf \ |
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/sh | |
# http://osxdaily.com/2010/05/06/speed-up-a-slow-terminal-by-clearing-log-files/ | |
rm -rf /private/var/log/asl/*.asl |
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
... era incapaz de explicar por que tais pensamentos vinham a seu encontro, no | |
meio da noite, e por que faziam com que se sentisse tão culpado. Agachou-se | |
dentro de seu manto. A realidade não era nem um pouco como o sonho. O Deserto | |
Amistoso, que um dia se estendera de um pólo a outro, estava reduzido à metade | |
de seu tamanho. O paraíso mítico das extensões verdes que se ampliavam o enchia | |
de angústia. | |
Não era como o sonho. Enquanto seu planeta mudava, ele também mudava. | |
Tornara-se uma pessoa mais sutil do que o chefe de sietch que um dia fora. Agora |
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 | |
# Font: http://scott.sherrillmix.com/blog/programmer/syntax-highlighting-in-terminal/ | |
if [ ! -t 0 ]; then | |
file=/dev/stdin | |
elif [ -f $1 ]; then | |
file=$1 | |
else | |
echo "Usage: $0 code.c" | |
echo "or e.g. head code.c|$0" | |
exit 1 |