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
#shortcut | |
alias ..="cd .." | |
alias ...="cd ../.." | |
alias cd..="cd .." | |
alias l="ls -lhG" | |
alias ll="ls -lahG" | |
alias eb="vim ~/.bashrc" | |
alias sb="source ~/.bashrc" | |
alias cb="cat ~/.bashrc | grep \"alias \"" | |
alias eg="vim ~/.gitconfig" |
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
<!DOCTYPE html> | |
<html> | |
<head> | |
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8"> | |
<link rel="stylesheet" href="style.css" type="text/css" media="screen" charset="utf-8"/> | |
<title>js test</title> | |
</head> | |
<body> | |
<script type="text/javascript" src="jquery.min.js"></script> |
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
alias eg="vim ~/.gitconfig" | |
alias em="vim ~/.m2/settings.xml" | |
alias eb="vim ~/.bash_profile" | |
alias sb="source ~/.bash_profile" |
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
/*** | |
currying | |
***/ | |
function add(x, y) { | |
var oldx = x, oldy = y; | |
if (typeof oldy === "undefined") { // partial | |
return function (newy) { | |
return oldx + newy; | |
} | |
} |
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
Sete Atitudes para Hackear a Indústria de Software | |
By Klaus Wuestefeld | |
1) Torne-se excelente. | |
Seja realmente bom em alguma coisa. Não fique só choramingando ou | |
querendo progredir às custas dos outros. Não pense q pq vc sentou 4 | |
anos numa faculdade ouvindo um professor falar sobre software q vc | |
sabe alguma coisa. Jogador de futebol não aprende a jogar bola tendo |
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
<?xml version="1.0" encoding="UTF-8"?> | |
<projectDescription> | |
<name>Gists</name> | |
<comment></comment> | |
<projects> | |
</projects> | |
<buildSpec> | |
</buildSpec> | |
<natures> | |
</natures> |
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
great commands. | |
remove all gems from a gemset: | |
gem list | cut -d" " -f1 | xargs gem uninstall -aIx | |
find a pattern inner files: | |
find / -type f -print0 | xargs -0 grep -i pattern | |
change encoding of files: | |
iconv -f ISO-8859-1 -t UTF-8 EncodeFrom.java > EncodeTo.java |
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
<target name="proxy"> | |
<property name="proxy.host" value="proxy.server"/> | |
<property name="proxy.port" value="80"/> | |
<input message="Please enter proxy username" addproperty="proxy.user" /> | |
<input message="Please enter proxy password - NOTE: CLEAR TEXT" addproperty="proxy.pass"/> | |
<setproxy proxyhost="${proxy.host}" proxyport="${proxy.port}" proxyuser="${proxy.user}" proxypassword="${proxy.pass}"/> | |
</target> | |
<target name="proxy"> | |
<property name="proxy.host" value="proxy.server"/> |
NewerOlder