Skip to content

Instantly share code, notes, and snippets.

View jmjpro's full-sized avatar

Joshua Jacobson jmjpro

View GitHub Profile
@kellyrmilligan
kellyrmilligan / s3Sync.sh
Created June 8, 2017 13:38
Sync files to s3 and set cache control headers
#!/bin/bash
if [[ "$1" != "" ]]; then
S3BUCKETNAME="$1"
else
echo ERROR: Failed to supply S3 bucket name
exit 1
fi
aws s3 sync build s3://$S3BUCKETNAME --delete --cache-control max-age=31536000,public
@jaredatron
jaredatron / Apology.txt
Last active July 30, 2016 20:08
My public apology to @keystonejs
Yesterday I said this on Twitter:
"@KeystoneJS fuck your POS Framework. You don't get it and your docks are filled with lies. You've hurt the community and you should stop."
What I said was cruel. I was frustrated and I lashed out. I hurt others because of my frustration and I'm very sorry.
There is no excuse for what I did.
I regret my actions and I sincerely apologize to @mxstbr and anyone else in the @KeystoneJS community who I might have offended.
@ericclemmons
ericclemmons / example.md
Last active April 24, 2024 18:09
HTML5 <details> in GitHub

Using <details> in GitHub

Suppose you're opening an issue and there's a lot noisey logs that may be useful.

Rather than wrecking readability, wrap it in a <details> tag!

<details>
 Summary Goes Here
@renaud
renaud / tornado_continuous_reload.py
Created April 10, 2014 08:35
Example of Tornado that autoreloads/watches all files in folder 'static'
'''
Example of Tornado that autoreloads/watches all files in folder 'static'
'''
import tornado.ioloop
import tornado.web
import tornado.autoreload
import os
''' serves index.html'''
@issackelly
issackelly / gist:928783
Created April 19, 2011 16:48
Django Template {{ block.super }} example
# Template: A.html
<html>
<head></head>
<body>
{% block hello %}
HELLO
{% endblock %}
</body>
</html>