Skip to content

Instantly share code, notes, and snippets.

@pcpsant
pcpsant / instructions.txt
Created July 10, 2012 15:02
Command Line Git QuickStart
With normal user:
If repository is empty.
$ mkdir REPO
$ cd REPO
$ touch README.md
$ git init
$ git add README.md
$ git commit -m "Message to be public displayed"
@pcpsant
pcpsant / trap.bash
Created July 2, 2012 14:13
Exemplo com trap
#!/bin/bash
function naosaionao {
echo "Vou não, saio não, posso não ..."
}
trap naosaionao SIGHUP
while [ true ]; do
sleep 5