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
| virtualenv venv --python=python2.7 |
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
| sqlite> .open "test.db" | |
| sqlite> SELECT * FROM table_name ... ; |
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
| To construct a date from UTC time, call “new Date(Date.UTC(year, month, day, hours, minutes, seconds)) |
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
| """ | |
| Created by @SaurabhPrakash and @zealfire | |
| Running the file process | |
| In the brandsite virtual env run following command for bpm zips | |
| python manage.py update_bonita_dir <dir>/<subdir> | |
| python manage.py update_bonita_dir ops/cancer-care-proposal-form | |
| By default this command concatenates and minifies js and css file, use a command in this format to disallow this | |
| python manage.py update_bonita_dir <dir>/<subdir> --nooptimize | |
| """ |
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
| { | |
| "id": "string (identifier)", | |
| "name": "string", | |
| "eTag": "string (etag)", | |
| "cTag": "string (etag)", | |
| "createdBy": { "@odata.type": "oneDrive.identitySet" }, | |
| "createdDateTime": "string (timestamp)", | |
| "lastModifiedBy": { "@odata.type": "oneDrive.identitySet" }, | |
| "lastModifiedDateTime": "string (timestamp)", | |
| "size": 1024, |
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
| from celery.contrib import rdb | |
| rdb.set_trace() |
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
| https://stackoverflow.com/a/25087194/2750995 |
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 apt-get install expect | |
| wget http://kb.cloud.it/files/tar-gz/forticlientsslvpn_linux_4-0-2281-tar.gz | |
| tar xzf forticlientsslvpn_linux_4-0-2281-tar.gz | |
| sudo mv forticlientsslvpn /opt/ | |
| cat > sslvpn << EOF | |
| #!/usr/bin/expect -f | |
| set timeout -1 | |
| cd /opt/forticlientsslvpn | |
| spawn ./forticlientsslvpn_cli --server HOST:PORT --vpnuser USER | |
| expect "Password for VPN:" {send -- "PASS\r"} |