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
| function parse_git_dirty { | |
| [[ $(git status 2> /dev/null | tail -n1) != "nothing to commit (working directory clean)" ]] && echo "*" | |
| } | |
| function parse_git_branch { | |
| git branch --no-color 2> /dev/null | sed -e '/^[^*]/d' -e "s/* \(.*\)/[\1$(parse_git_dirty)]/" | |
| } | |
| export PS1='`rvm-prompt i v g` \[\033[1;33m\]\w\[\033[0m\]$(parse_git_branch)$ ' |
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
| require 'rubygems' | |
| require 'twitter' | |
| auth = Twitter::HTTPAuth.new 'planeta_spfc', 'xxxxxxxxxxx' | |
| base = Twitter::Base.new auth | |
| base.followers.select { |f| !f.following }.each do |f| | |
| begin | |
| base.friendship_create f.id | |
| rescue |
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
| # After Jared Tarbell | |
| # Description: | |
| # Sand Traveler was a special commision, produced in Processing | |
| # by Jared Tarbell for Sonar 2004, Barcelona. | |
| # This Ruby port has been tweaked, half of the (non-running) | |
| # code exorcised, color palette broadened, and done in negative. | |
| # -- omygawshkenas |
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
| [user] | |
| email = dc.rec1@gmail.com | |
| name = Diego Carrion | |
| [github] | |
| user = dcrec1 | |
| [alias] | |
| st = status | |
| ci = commit | |
| br = branch |
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
| set daemon 30 | |
| set mailserver localhost | |
| set logfile /var/log/monit.log | |
| set alert labs@gonow.com.br | |
| set httpd port 2812 address localhost | |
| allow localhost | |
| allow <your ip address> | |
| allow <your user-name>:<your password> |
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 /tmp | |
| wget http://packages.sw.be/rpmforge-release/rpmforge-release-0.5.2-2.el5.rf.i386.rpm | |
| rpm -Uhv rpmforge-release*.rf.i386.rpm | |
| yum install readline-dev htop |
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
| states = <<STATES | |
| 28,AC,Acre | |
| 28,AL,Alagoas | |
| 28,AP,Amapá | |
| 28,AM,Amazonas | |
| 28,BA,Bahia | |
| 28,CE,Ceará | |
| 28,ES,Espírito Santo | |
| 28,GO,Goiás | |
| 28,MA,Maranhão |
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
| <VirtualHost *:443> | |
| ServerName server.name.com.br | |
| DocumentRoot /var/local/apps/app_nme/public | |
| SSLEngine on | |
| SSLOptions +FakeBasicAuth +ExportCertData +StrictRequire | |
| SSLCertificateFile /opt/ssl/ssl.crt | |
| SSLCertificateKeyFile /opt/ssl/ssl.key | |
| </VirtualHost> |
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
| require 'spec/rake/spectask' | |
| desc "Run all specs" | |
| Spec::Rake::SpecTask.new do |t| | |
| t.spec_opts = %w(--format specdoc --color) | |
| end |
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
| [user] | |
| email = dc.rec1@gmail.com | |
| name = Diego Carrion | |
| [alias] | |
| st = status | |
| ci = commit | |
| br = branch | |
| co = checkout | |
| df = diff | |
| lg = log -p |
OlderNewer