This file contains 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
init |
This file contains 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
<script> | |
// Include the UserVoice JavaScript SDK (only needed once on a page) | |
UserVoice=window.UserVoice||[];(function(){var uv=document.createElement('script');uv.type='text/javascript';uv.async=true;uv.src='//widget.uservoice.com/T1twXffk8kRFxQHuFsXBqA.js';var s=document.getElementsByTagName('script')[0];s.parentNode.insertBefore(uv,s)})(); | |
// | |
// UserVoice Javascript SDK developer documentation: | |
// https://www.uservoice.com/o/javascript-sdk | |
// | |
// Set colors |
This file contains 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
""" | |
This Python code snippet will show you how to work with SendGrid Multiple | |
Credentials | |
install the amazing requests library | |
$ pip install requests==2.4.3 | |
export your SendGrid credential from command line | |
$ export SG_USERNAME=your_sg_username | |
$ export SG_PASSWORD=your_sg_password |
This file contains 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
""" | |
This Python code snippet will show you how to get all SendGrid invalid | |
emails records. | |
install the amazing requests library | |
$ pip install requests==2.4.3 | |
export your SendGrid credential from command line | |
$ export SG_USERNAME=your_sg_username | |
$ export SG_PASSWORD=your_sg_password |
This file contains 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
""" | |
This Python code snippet will show you how to get work with SendGrid filter | |
settings | |
install the amazing requests library | |
$ pip install requests==2.4.3 | |
export your SendGrid credential from command line | |
$ export SG_USERNAME=your_sg_username | |
$ export SG_PASSWORD=your_sg_password |
This file contains 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
""" | |
This Python code snippet will show you how to get work with SendGrid filter | |
commands | |
install the amazing requests library | |
$ pip install requests==2.4.3 | |
export your SendGrid credential from command line | |
$ export SG_USERNAME=your_sg_username | |
$ export SG_PASSWORD=your_sg_password |
This file contains 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
""" | |
This Python code snippet will show you how to get all SendGrid bounces | |
records. | |
install the amazing requests library | |
$ pip install requests==2.4.3 | |
export your SendGrid credential from command line | |
$ export SG_USERNAME=your_sg_username | |
$ export SG_PASSWORD=your_sg_password |
This file contains 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
""" | |
This Python code snippet will show you how to get all SendGrid block records | |
Please change SG_USERNAME and SG_PASSWORD to match your credentials | |
install the amazing requests library | |
$ pip install requests==2.4.3 | |
save this file as python block.py and run it | |
$ python block.py | |
""" |
This file contains 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
import base64 | |
import hashlib | |
import random | |
# generate random string length of 43 | |
base64.b64encode(hashlib.sha256( str(random.getrandbits(256)) ).digest(), random.choice(['rA','aZ','gQ','hH','hG','aR','DD'])).rstrip('==') |
This file contains 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/sh | |
### BEGIN INIT INFO | |
# Provides: gunicorn | |
# Required-Start: $all | |
# Required-Stop: $all | |
# Default-Start: 2 3 4 5 | |
# Default-Stop: 0 1 6 | |
# Short-Description: starts the gunicorn server | |
# Description: starts gunicorn using start-stop-daemon |
NewerOlder