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
# 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
#!/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
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
#!/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
#!/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
# My helpers | |
# | |
def fwd_ports(config, ports=[]) | |
Array[*ports].each do |port| | |
config.vm.network :forwarded_port, guest: port, host: port | |
end | |
end | |
def share_folder(config, source, destiny) | |
if File.directory? File.expand_path(source) |
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 openblas; | |
brew info qrupdate --with-openblas; | |
brew install suite-sparse --with-openblas; | |
brew install fltk; | |
brew install octave --with-openblas --with-fltk |
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
# IE10 - Win8 | |
curl -O "https://az412801.vo.msecnd.net/vhd/IEKitV1_Final/VirtualBox/OSX/IE10_Win8/IE10.Win8.For.MacVirtualBox.part{1.sfx,2.rar,3.rar}" |
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
# Shamelessly stolen from fnando: | |
# https://github.com/fnando/dotfiles/blob/master/files/.bash/macosx.sh | |
# | |
# Disable menu bar transparency | |
#defaults write NSGlobalDomain AppleEnableMenuBarTransparency -bool false | |
# Show remaining battery time; hide percentage | |
#defaults write com.apple.menuextra.battery ShowPercent -string "NO" | |
#defaults write com.apple.menuextra.battery ShowTime -string "YES" |