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
| EMAIL_HOST = 'smtp.yandex.ru' | |
| EMAIL_HOST_USER = '[email protected]' | |
| EMAIL_HOST_PASSWORD = 'password' | |
| EMAIL_PORT = 465 | |
| EMAIL_USE_TLS = True |
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
| curl -H "Content-Type: application/json" -H "X-AN-APP-NAME: taxi_comfort_develop" -H "X-AN-APP-KEY: f2249fa774fed539e59d73b7e9c41e53" -X POST -d '{"device": "android","token":"APA91bEXSYuG6K_ilSzDIz-u2R1Si4oeM5oUrmNWgExefcEPNd58Fq72TvmQW1IJuaZsYtgaiBoYBppmkCnTlJb_NmJEtZ9JBxogvFE6y8s3PVEdSbtLsIv-4ptpxkvLqjJDFFEcz0Ir","alert":"еще одно сообщение!"}' http://176.112.194.181:8801/api/v2/push |
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
| curl -H "Content-Type: application/json" -H "X-AN-APP-NAME: taxi_comfort_develop" -H "X-AN-APP-KEY: f2249fa774fed539e59d73b7e9c41e53" -X POST -d '{"device": "ios","token":"2f2c003c134fa79bc36e361f5e389afd0184ea14699cd8ba1760bc912af48308","alert":"Автомобиль подъехал!","sound":"Submarine.aiff","badge":1}' http://176.112.194.181:8801/api/v2/push |
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 -u postgres psql | |
| CREATE DATABASE test_database; | |
| CREATE USER test_user WITH password 'qwerty'; | |
| ALTER USER myuser WITH SUPERUSER; |
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
| angular.module('itemServices', ['ngResource']) | |
| .factory('Item', ['$resource', | |
| function ($resource) { | |
| return $resource('items/:id', | |
| {id: '@id'}, | |
| { | |
| query: { | |
| isArray: true, | |
| method: 'GET', | |
| params: {}, |
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
| #!/bin/bash | |
| rdesktop -g 1920x1080 37.235.172.233 | |
| xfreerdp -g 1920x980 -u DL 37.235.172.233 |
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
| superuser ALL=(ALL) NOPASSWD:ALL |
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
| #!/bin/bash | |
| cat /path/to/public_key | ssh root@yourdokkuinstance "sudo sshcommand acl-add dokku [description]" |
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
| #!/bin/bash | |
| mkdir .vim && git clone https://github.com/scrooloose/nerdtree.git .vim && touch .vimrc | |
| echo -e ":nmap <F1> :rew <Enter>\n:nmap <F12> :n <Enter>\nset nowrap\nset tabstop=4\nautocmd VimEnter * NERDTree\nautocmd VimEnter * wincmd p\nautocmd bufenter * if (winnr(\"$\") == 1 && exists(\"b:NERDTreeType\") && b:NERDTreeType == \"primary\") | q | endif\nhi Directory ctermfg=3 ctermbg=4\nhi comment ctermfg=3 ctermbg=4" | sudo tee .vimrc | |
| git clone https://github.com/cakebaker/scss-syntax.vim.git && rm -rf scss-syntax.vim/.git/ && cp -pri scss-syntax.vim/* .vim/ && rm -rf scss-syntax.vim |
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
| #!/bin/bash | |
| postgres -D /usr/local/var/postgres |