Skip to content

Instantly share code, notes, and snippets.

View vilmarbfilho's full-sized avatar
🤖
Trying make a world a better place

V1lm4r vilmarbfilho

🤖
Trying make a world a better place
View GitHub Profile
first step: git merge <branch>
second step: solve conflicts
third step: git commit
@vilmarbfilho
vilmarbfilho / gist:3807d919682c0a491d3a
Created June 10, 2015 01:30
How Can I Download an Entire Web Site?
wget -r --no-parent http://site.com/songs/
URL: http://www.howtogeek.com/171948/how-can-i-download-an-entire-web-site/
@vilmarbfilho
vilmarbfilho / gist:0049dabc170daa4b521f
Created June 6, 2015 19:26
Run command with sudo
sudo env "PATH=$PATH" cmd
URL: http://superuser.com/questions/709515/command-not-found-when-using-sudo
@vilmarbfilho
vilmarbfilho / gist:801676577795adc5adfd
Created June 1, 2015 12:12
Push a new local branch to a remote Git repo
git push -u origin <branch-name>
URL: http://stackoverflow.com/questions/2765421/push-a-new-local-branch-to-a-remote-git-repo-and-track-it-too
@vilmarbfilho
vilmarbfilho / gist:32502b5c9459c370d5f4
Created May 23, 2015 19:35
Get context application Robolectric
Just use for version 1.x and 2.x:
Robolectric.application;
And for version 3.x:
RuntimeEnvironment.application;
Link: http://stackoverflow.com/questions/13684094/how-can-we-access-context-of-an-application-in-robolectric