diff --git a/git-tricks.txt b/git-tricks.txt index ee97535..b752369 100644 --- a/git-tricks.txt +++ b/git-tricks.txt @@ -34,3 +34,17 @@ git branch -d git push origin : ~Upload deleted branch action~ + +git remote add +~Adds a remote to git~ + +git remote +~List the remote list~ + +git remote show +~show informations about remote, like url~ + +git remove -v +~list the remotes links~ + +git remote set-url diff --git a/heroku-deploy.txt b/heroku-deploy.txt new file mode 100644 index 0000000..2344520 --- /dev/null +++ b/heroku-deploy.txt @@ -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~ diff --git a/linux-tricks b/linux-tricks index 4c2efa6..11772ca 100644 --- a/linux-tricks +++ b/linux-tricks @@ -12,3 +12,9 @@ $ uname -a crtl+l in directory ~Show the path for that directory + +lsof -i : +~Show pid of the process that are running on these port~ + +ps ax +~Show process that are running in some conditions~ diff --git a/sql.txt b/sql.txt new file mode 100644 index 0000000..5093bc3 --- /dev/null +++ b/sql.txt @@ -0,0 +1,2 @@ +$ pv | mysql -u -p +~Import dump file into a database and show the progress pipeline~