Skip to content

Instantly share code, notes, and snippets.

Avatar

Chris Mears chrisjm

View GitHub Profile
@chrisjm
chrisjm / README.md
Last active Apr 29, 2021 — forked from tache/README-SSL-Certificates.md
LetsEncrypt, AWS Certificate Manager, and CloudFront
View README.md

Using LetsEncrypt SSL certificates with AWS Certificate Manager and CloudFront

This is a document for managing LetsEncrypt certificates on AWS using AWS Certificate Manager and configuring on CloudFront using the AWS CLI.

Setup

Follow the instructions to set up the certbot and aws commands on your local machine:

View keybase.md

Keybase proof

I hereby claim:

  • I am chrisjm on github.
  • I am chrisjm (https://keybase.io/chrisjm) on keybase.
  • I have a public key ASBjjLraX9agKQ1mmJxwQCPR7SS0TxXfndl20YvjD6S4ego

To claim this, I am signing this object:

@chrisjm
chrisjm / mistakes-were-made-presentation-notes.md
Created Apr 26, 2017
"Mistakes Were Made" by Razvan Spatariu (Funding Tree) Presentation Notes
View mistakes-were-made-presentation-notes.md

Presentation link

https://pusher.com/sessions/meetup/london-css/mistakes-were-made

Main Lessons Learned

  • Breakout components/patterns that will provide most value first
  • Documentation is necessary; "the code describes itself" is not good enough
  • Explain & Educate! Make sure all business groups know what you are working toward (ie. consistent branding)
  • You won't get time to work on it from the business; build little bit at a time while you are working on features; it's just part of your process, like tests
  • Design team NEEDS to be involved
@chrisjm
chrisjm / s3-delete-bucket.rb
Created Dec 16, 2011 — forked from bdunagan/s3-delete-bucket.rb
s3-delete-files.rb -- Quickly delete a large amount of Amazon AWS S3 files given a prefix
View s3-delete-bucket.rb
#!/usr/bin/env ruby
# s3-delete-files.rb
# Fog-based script for deleting a large amount of Amazon AWS S3 files given a prefix (~100 files/second)
# Forked from: https://gist.github.com/1383301
require 'rubygems'
require 'thread'
require 'fog'
View gist:852096
function handleOnchange(item) {
if( descriptions[$(item).val()] ) {
$(item).parent().parent().find('.navTitle input').val(descriptions[$(item).val()].title);
$(item).parent().parent().find('.navTarget input').val(descriptions[$(item).val()].uri);
$(item).parent().parent().find('.navTarget input').attr( 'onFocus', 'blur();' );
$(item).parent().parent().find('.navTarget input').attr( 'class', 'disabled' );
} else {
$(item).parent().parent().find('.navTitle input').val('');
$(item).parent().parent().find('.navTarget input').val('');
$(item).parent().parent().find('.navTarget input').attr( 'onFocus', null );