Instantly share code, notes, and snippets.

View mailgun_setup.sh
#!/bin/bash
#Must make the sasl_passwd and relayhost_map files beforehand. Scroll down a bit for how they are to be formatted
if [[ $EUID -ne 0 ]]; then
echo "This script must be run as root"
exit 1
fi
#Remove the line that has "relayhost =" we will add it back later properly
sed -i.bak '/relayhost =/d' /etc/postfix/main.cf
#Look for and add the appropriate lines for mailgun
grep -q -F 'smtp_sasl_password_maps = hash:/etc/postfix/sasl_passwd' /etc/postfix/main.cf || echo 'smtp_sasl_password_maps = hash:/etc/postfix/sasl_passwd' >> /etc/postfix/main.cf
View reclaimWindows10.ps1
##########
# Tweaked Win10 Initial Setup Script
# Primary Author: Disassembler <disassembler@dasm.cz>
# Modified by: alirobe <alirobe@alirobe.com> based on my personal preferences.
# Version: 2.12.1, 2018-03-15
# Primary Author Source: https://github.com/Disassembler0/Win10-Initial-Setup-Script
# Tweaked Source: https://gist.github.com/alirobe/7f3b34ad89a159e6daa1/
# Tweak difference:
#
# @alirobe's version is a subset focused on safely disabling telemetry, some 'smart' features and 3rd party bloat ...
View HTML5-Markup-Template---Basic.markdown

HTML5 Markup Template - Basic

A very basic starter template with fundamental HTML5 markup -- only the basics.

Based on HTML5 Bones | http://html5bones.com