This file contains 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
# add these lines to your ~/.bashrc file | |
fortune | cowsay | |
PS1="\[\033[01;32m\][\w]\[\033[01;34m\]:\$\[\033[00m\] " |
This file contains 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
for i in `find .`; do rsvg-convert $i -o `echo $i | sed -e 's/svg$/png/'`; done |
This file contains 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
# In a Linux System, it will print your local IP address: | |
/sbin/ifconfig|grep inet|head -1|sed 's/\:/ /'|awk '{print $3}' |
This file contains 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(numberOfElements, digits) { return new Array(numberOfElements).fill(0).map(function f(v) { return Math.floor( Math.random() * (digits == 1 ? 10 : Math.pow(10, digits)) + (digits == 1 ? 0 : Math.pow(10, digits)) ); } ); })(10,1); |
This file contains 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
{ | |
"explorer.openEditors.visible": 0, | |
"editor.fontSize": 13, | |
"workbench.colorTheme": "Zeus-Sublime-Text", | |
"editor.renderLineHighlight": "none" | |
} |
This file contains 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 removerAcentos( string ) { | |
var mapaAcentosHex = { | |
a : /[\xE0-\xE6]/g, | |
A : /[\xC0-\xC6]/g, | |
e : /[\xE8-\xEB]/g, | |
E : /[\xC8-\xCB]/g, | |
i : /[\xEC-\xEF]/g, | |
I : /[\xCC-\xCF]/g, | |
o : /[\xF2-\xF6]/g, | |
O : /[\xD2-\xD6]/g, |
This file contains 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
git log --all --decorate --oneline --graph |
This file contains 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
# trocar hash pelo começo ou todo o hash do commit | |
git show --pretty="" --name-only hash | |
# Exemplo: | |
git show --pretty="" --name-only 8f9831a35767 | |
# Pra exibir a quantidade de arquivos que foram alterados basta adicionar o wc com a opção -l | |
git show --pretty="" --name-only 8f9831a35767 | wc -l |
OlderNewer