Skip to content

Instantly share code, notes, and snippets.

View pedronsouza's full-sized avatar

Pedro Souza pedronsouza

View GitHub Profile
<!-- Add the following lines to theme's html code right before </head> -->
<script src="http://ajax.googleapis.com/ajax/libs/jquery/1.7.0/jquery.min.js"></script>
<script src="http://static.tumblr.com/fpifyru/VCxlv9xwi/writecapture.js"></script>
<script src="http://static.tumblr.com/fpifyru/AKFlv9zdu/embedgist.js"></script>
<!--
Usage: just add <div class="gist">[gist URL]</div>
Example: <div class="gist">https://gist.github.com/1395926</div>
-->
export http_proxy="http://username:password@ip:porta"
@pedronsouza
pedronsouza / gist:5008900
Last active December 14, 2015 01:49
Installing gem with http-proxy option
gem install --http-proxy http://usuario:login@ip:porta rails
@pedronsouza
pedronsouza / gist:4722937
Created February 6, 2013 14:41
A little rake task for automate my routine of Commit all
namespace :git do
task :sent, :message, :repo do |t, args|
if args[:message].nil?
puts "You must define a message for the commit, example => rake git:commit['MyMessage']".colored.red
else
puts "Adding files, Commiting and pushing..".colored.yellow
exec("git add . && git add -u && git commit -m '#{args[:message]}' && git push #{args[:repo]}")
puts "All files sent to remote repository: #{:repo}".colored.green