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
| *) pg_dump <database> -U <ususario> -h localhost --no-owner -W > backup.sql | |
| *) scp condor:/var/www/journeyou/myapp_db_backup.sql /Users/jonathan/projects/backups | |
| *) scp usuario@dominio.com:/home/usuario/archivo.txt Documentos | |
| *) Restaure: psql dbname < infile | |
| *) pg_restore -h localhost -p 5432 -U postgres -d gotham -v -Fc backup-prod-2017-01-30-6pm.dump | |
| *) sudo -i -u postgres |
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
| Supervisor | |
| ___________ | |
| ps -aux|grep supervisor | |
| kill -9 the_pid | |
| supervisord | |
| supervisorctl | |
| rabbitmq | |
| _______________ |
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
| *) Configuracion en IDE | |
| https://github.com/edx/edx-platform/wiki/Setting-up-PyCharm-for-edX-development | |
| *) Entrar al server | |
| vagrant ssh | |
| *) Compilar |
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
| [ | |
| { | |
| "model": "common.region", | |
| "pk": 1, | |
| "fields": { | |
| "distributor_id": 1, | |
| "brand_id": 1, | |
| "geom": "POLYGON((-77.09406852722168 -11.94906691098889, -77.09861755371094 -11.955196718183183, -77.10110664367676 -11.95612037572392, -77.09415435791016 -11.962417956724, -77.08737373352051 -11.956456250411534, -77.0855712890625 -11.950830294404742, -77.09406852722168 -11.94906691098889))" | |
| } | |
| }, |
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
| $ mkdir $HOME/go | |
| $ export GOPATH=$HOME/go | |
| For convenience, add the workspace's bin subdirectory to your PATH: | |
| $ export PATH=$PATH:$GOPATH/bin |
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
| git rm -r --cached . | |
| git add . | |
| git commit -m ".gitignore is now working" |
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
| pip install git+git://github.com/python-imaging/Pillow.git |
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
| sudo add-apt-repository ppa:webupd8team/java | |
| sudo apt-get update | |
| sudo apt-get install oracle-java7-installer | |
| sudo apt-get install oracle-java7-set-default |
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
| Lista de python con elementos numericos repetidos | |
| *) products_ids = [x for x, y in collections.Counter(products_ids).items() if y >= 1] |
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
| sudo rm /var/lib/mongodb/mongod.lock | |
| sudo service mongodb restart |