Published May-13-2020
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
| 1. Install rst2pdf | |
| - use your package manager (or) | |
| - pip install rst2pdf (or) | |
| - easy_install rst2pdf | |
| 2. Add rst2pdf to the list of extensions in conf.py | |
| extensions = ['rst2pdf.pdfbuilder'] |
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
| console.log('Loading event'); | |
| // Twilio Credentials | |
| var accountSid = ''; | |
| var authToken = ''; | |
| var fromNumber = ''; | |
| var https = require('https'); | |
| var queryString = require('querystring'); |
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
| def changePassword(user_dn, old_password, new_password): | |
| ldap.set_option(ldap.OPT_X_TLS_REQUIRE_CERT, ldap.OPT_X_TLS_NEVER) | |
| l = ldap.initialize("LDAPS://DOMAIN.COM") | |
| l.set_option(ldap.OPT_REFERRALS,0) | |
| l.set_option(ldap.OPT_PROTOCOL_VERSION,3) | |
| l.set_option(ldap.OPT_X_TLS,ldap.OPT_X_TLS_DEMAND) | |
| l.set_option(ldap.OPT_X_TLS_DEMAND,True) | |
| l.set_option(ldap.OPT_DEBUG_LEVEL,255) | |
| l.simple_bind_s("[email protected]", "PASSWORD") |
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
| """A basic database set-up for Travis CI. | |
| The set-up uses the 'TRAVIS' (== True) environment variable on Travis | |
| to detect the session, and changes the default database accordingly. | |
| Be mindful of where you place this code, as you may accidentally | |
| assign the default database to another configuration later in your code. | |
| """ | |
| import os |