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
# Found most ofthis at http://ryrobes.com/python/python-snippet-sending-html-email-with-an-attachment-via-google-apps-smtp-or-gmail/ | |
# Adapted to accept a list of files for multiple file attachments | |
# From other stuff I googled, a little more elegant way of converting html to plain text | |
# This works in 2.7 and my brain gets it. | |
######### Setup your stuff here ####################################### | |
attachments = ['test_pdf.pdf', 'test_waiver.pdf'] | |
username = '[email protected]' |
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
# Source: | |
- https://github.com/Hyzual/docker-koel | |
# init: | |
- docker exec -it <container_name_for_koel> bash | |
- php artisan koel:init | |
# fail over https reverse proxy | |
# error code on clients browser console: | |
# Mixed Content: The page at 'https://listenalihan.duckdns.org/' was loaded over HTTPS, but requested an insecure favicon 'http://listenalihan.duckdns.org/public/img/icon.png'. This request has been blocked; the content must be served over HTTPS |
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/python | |
# | |
# Connects to a Wifi network | |
# | |
import os | |
def commandExists(command): | |
def canExecute(file): | |
return os.path.isfile(file) and os.access(file, os.X_OK) |
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 | |
### | |
# SOME COMMANDS WILL NOT WORK ON macOS (Sierra or newer) | |
# For Sierra or newer, see https://github.com/mathiasbynens/dotfiles/blob/master/.macos | |
### | |
# Alot of these configs have been taken from the various places | |
# on the web, most from here | |
# https://github.com/mathiasbynens/dotfiles/blob/5b3c8418ed42d93af2e647dc9d122f25cc034871/.osx |