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
| # CONFIGURATION FOR USING SMS KANNEL WITH RAPIDSMS | |
| # | |
| # For any modifications to this file, see Kannel User Guide | |
| # If that does not help, see Kannel web page (http://www.kannel.org) and | |
| # various online help and mailing list archives | |
| # | |
| # Notes on those who base their configuration on this: | |
| # 1) check security issues! (allowed IPs, passwords and ports) | |
| # 2) groups cannot have empty rows inside them! | |
| # 3) read the user guide |
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
| If you have more than one modem, I guess you can do thi in `RapidSMS` : | |
| INSTALLED_BACKENDS = { | |
| "message_tester": { | |
| "ENGINE": "rapidsms.backends.database.DatabaseBackend", | |
| }, | |
| "kannel-usb0-smsc" : { | |
| "ENGINE": "rapidsms.backends.kannel.KannelBackend", | |
| "sendsms_url": "http://127.0.0.1:13013/cgi-bin/sendsms", | |
| "sendsms_params": {"smsc": "usb0-modem", |
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
| heroku config:set SECRET_KEY=`openssl rand -base64 32` |
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
| // get the json object in the django template : | |
| var data = "{{object|safe}}"; | |
| // Parse the JSON data | |
| try | |
| { | |
| // Use jquery's default parser | |
| data = $.parseJSON(data); | |
| } | |
| catch(e) | |
| { |
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
| Premièrement si vous n’êtes pas sur du nom du fichier supprimé, vous pouvez le retrouver dans les logs de git ... | |
| git log --diff-filter=D --summary | |
| Puis retrouvez le dernier commit qui a affecté le fichier | |
| git rev-list -n 1 HEAD -- ./path/to/file/ | |
| .. on va appeler cela par [NUMERO_DE _REVISION] |
NewerOlder