Skip to content

Instantly share code, notes, and snippets.

View chrisjm's full-sized avatar

Chris Mears chrisjm

View GitHub Profile
@chrisjm
chrisjm / README.md
Last active December 8, 2023 04:00 — forked from tache/README-SSL-Certificates.md
LetsEncrypt, AWS Certificate Manager, and CloudFront

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:

@chrisjm
chrisjm / notes.md
Created January 29, 2022 00:56
Book Notes > Clean Architecture by Robert Martin

Chapter 1

  • The Goal: The goal of software architecture is to minimize the human resources required to build and maintain the required system. (p. 5)
  • Dev Responsibility: The only way to reverse the decline in productivity and the increase in cost is to get the developers to stop thinking like the overconfident Hare and start taking responsibility for the mess that they’ve made. (p. 12)

Chapter 2

  • Values
    • Behavior
      • Programmers are hired to make machines behave in a way that makes or saves money for the stakeholders. (p. 14)
  • Urgent but not always particularly important

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 April 26, 2017 23:30
"Mistakes Were Made" by Razvan Spatariu (Funding Tree) Presentation Notes

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 December 16, 2011 19:59 — forked from bdunagan/s3-delete-bucket.rb
s3-delete-files.rb -- Quickly delete a large amount of Amazon AWS S3 files given a prefix
#!/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'
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 );