Skip to content

Instantly share code, notes, and snippets.

View dwin's full-sized avatar
🎯
Focusing

Darwin Smith dwin

🎯
Focusing
View GitHub Profile
@dwin
dwin / Caddyfile_TLS
Created August 16, 2017 15:31
Caddyfile TLS Ciphers
Cipher Suites
The following cipher suites are currently supported: (as of 2017-08-16)
ECDHE-ECDSA-AES256-GCM-SHA384 ECDHE-ECDSA-AES128-GCM-SHA256 ECDHE-ECDSA-WITH-CHACHA20-POLY1305 ECDHE-RSA-AES256-GCM-SHA384 ECDHE-RSA-AES128-GCM-SHA256 ECDHE-RSA-WITH-CHACHA20-POLY1305 ECDHE-RSA-AES256-CBC-SHA ECDHE-RSA-AES128-CBC-SHA ECDHE-ECDSA-AES256-CBC-SHA ECDHE-ECDSA-AES128-CBC-SHA RSA-AES256-CBC-SHA RSA-AES128-CBC-SHA ECDHE-RSA-3DES-EDE-CBC-SHA RSA-3DES-EDE-CBC-SHA
@dwin
dwin / Caddyfile
Created March 15, 2017 19:11
Caddy Server configuration file
# Standard HTML site using Git plugin with Github.com
website.com {
tls email@website.com
gzip
root /srv/website.com/public
ext .html .htm
git {
repo git@github.com:dddd/Amber.git
key /srv/website.com/.ssh/id_rsa
hook /webhook github_idkey # set github request type to json
@dwin
dwin / coin_toss.py
Created December 24, 2016 01:47
Basic Coin Toss in Python
import random
heads = 0
tails = 0
def flipResult():
random_num = random.random()
rounded = round(random_num)
if rounded == 0:
return 0
@dwin
dwin / .bash_profile
Last active December 2, 2016 03:17 — forked from josephspurrier/.bash_profile
OS X Bash Profile
#################################################################################
#
# Bash Configurations and Aliases for OS X
#
# Latest: https://gist.github.com/00000
#
################################################################################
################################################################################
# Terminal