Skip to content

Commit

Permalink
subindo ultimos docs
Browse files Browse the repository at this point in the history
  • Loading branch information
fllsouto committed Nov 27, 2014
1 parent b468796 commit a789460
Show file tree
Hide file tree
Showing 4 changed files with 36 additions and 0 deletions.
14 changes: 14 additions & 0 deletions git-tricks.txt
Original file line number Diff line number Diff line change
Expand Up @@ -34,3 +34,17 @@ git branch -d <branch-name>

git push origin :<branch-name>
~Upload deleted branch action~

git remote add <nomedoremote> <pathdoremote>
~Adds a remote to git~

git remote
~List the remote list~

git remote show <remotename>
~show informations about remote, like url~

git remove -v
~list the remotes links~

git remote set-url <remote_name> <remote_url>
14 changes: 14 additions & 0 deletions heroku-deploy.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
$heroku login
~faz login na conta da Heroku~

$git init && git add . && git commit -m "initial commit"
~Comeca um novo repo no git. A heroku usa o git para fazer deploy ~

$heroku create
~Cria uma nova aplicacao na heroku~

$git push heroku master
~faz deploy da aplicacao~

$heroku open
~Mostra a nova aplicacao~
6 changes: 6 additions & 0 deletions linux-tricks
Original file line number Diff line number Diff line change
Expand Up @@ -12,3 +12,9 @@ $ uname -a

crtl+l in directory
~Show the path for that directory

lsof -i :<port>
~Show pid of the process that are running on these port~

ps ax
~Show process that are running in some conditions~
2 changes: 2 additions & 0 deletions sql.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
$ pv <temp.file> | mysql -u<user> -p<pass> <db-name>
~Import dump file into a database and show the progress pipeline~

0 comments on commit a789460

Please sign in to comment.