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 | |
set -e | |
trap 'handleError' ERR | |
handleError() { | |
echo "" | |
echo "If you encountered an error, please consider fixing" | |
echo "the script for your environment and creating a pull" |
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
user_pref("app.normandy.api_url", ""); | |
user_pref("app.normandy.enabled", false); | |
user_pref("app.shield.optoutstudies.enabled", false); | |
user_pref("app.update.auto", false); | |
user_pref("beacon.enabled", false); | |
user_pref("breakpad.reportURL", ""); | |
user_pref("browser.aboutConfig.showWarning", false); | |
user_pref("browser.crashReports.unsubmittedCheck.autoSubmit", false); | |
user_pref("browser.crashReports.unsubmittedCheck.autoSubmit2", false); | |
user_pref("browser.crashReports.unsubmittedCheck.enabled", false); |
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
# vim: filetype=sh | |
#!/bin/bash | |
file="/etc/nginx/sites-enabled/${1}" | |
if [ -e $file ]; then | |
rm -fv $file | |
read -p "Restart Nginx? Press CTRL-C to Abort." | |
/usr/bin/sudo /usr/sbin/nginx -s reload | |
echo "Restarted Nginx" |
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
set nocompatible "required for vundle | |
filetype off "required for vundle | |
" set the runtime path to include Vundle and initialize | |
set rtp+=/usr/share/vim/bundle/Vundle.vim | |
call vundle#begin('/usr/share/vim/plugins') | |
Plugin 'VundleVim/Vundle.vim' "Allow Vundle to manage itself | |
Plugin 'tpope/vim-fugitive' | |
Plugin 'morhetz/gruvbox' |
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
import smtplib | |
from email.message import EmailMessage | |
from flask import g, current_app | |
class Mailer(object): | |
def __init__(self, smtp_host=None, smtp_port=None, username=None, | |
password=None): | |
self._smtp_host = smtp_host | |
self._smtp_port = smtp_port |