Skip to content

Instantly share code, notes, and snippets.

View jonatassalgado's full-sized avatar
🌴
On vacation

Jonatas Eduardo (Jon) jonatassalgado

🌴
On vacation
  • Brazil - Porto Alegre
View GitHub Profile
#!/bin/bash
sudo apt-get install git
sudo cp john /usr/bin/
sudo chmod 777 /usr/bin/john

Configurando o padrão de commit

  • Acesse pelo terminal: aluno6@aluno6-OptiPlex-990:~/Workspace/RegistroLivre/.git/hooks

  • Abra o arquivo commit-msg.sample pelo gedit: gedit commit-msg

  • Substitua o conteúdo pelo texto abaixo:

#!/usr/bin/env ruby
# utf:8
/**
* @file
* Simulating user actions with CasperJS. This script explores the ability to
* use Casper for navigation just like a user would: clicking the page and
* entering text to submit a form. This script accompanies a blog post from
* Four Kitchens:
*
* @see http://fourword.fourkitchens.com/article/simulate-user-actions-casperjs
*/
@jonatassalgado
jonatassalgado / villeme
Created January 24, 2015 04:10
Automate access to services of Villeme from bash
#!/bin/bash
service=$1
case "$service" in
site) firefox http://www.villeme.com;;
github) firefox http://www.github.com/jonatassalgado/villeme;;
snap) firefox https://snap-ci.com/jonatassalgado/villeme/branch/master;;
codeclimate) firefox https://codeclimate.com/github/jonatassalgado/villeme;;
esac

How to install PhantomJS on Ubuntu

Version: 1.9.7

Platform: x86_64

First, install or update to the latest system software.

sudo apt-get update
$(".participant-box").click(function(){
$(".participant-box").removeClass("borda-laranja");
$(this).addClass("borda-laranja");
});
@jonatassalgado
jonatassalgado / facebook-clean.js
Created August 23, 2016 19:02
Facebook Ads Clean - Google Dev Tools Snippet
document.getElementById("sideNav").style.display = "none";
document.getElementById("contentArea").setAttribute("style","width: 500px; margin-left: 50%; left: -250px; position: relative");
document.getElementById("feedx_container").style.display = "none";
document.getElementById("rightCol").style.display = "none";
export PS1="\${debian_chroot:+(\$debian_chroot)}\[\033[01;32m\]\u@\h\[\033[00m\]:\[\033[01;34m\]\w\[\033[00m\] \[$txtcyn\]\$git_branch\[$txtred\]\$git_dirty\[$txtrst\]\$ "