Skip to content

Instantly share code, notes, and snippets.

Miles Matthias milesmatthias

Block or report user

Report or block milesmatthias

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
View Dockerfile
FROM ubuntu:latest
RUN apt-get update && apt-get -y upgrade && apt-get install sudo
RUN useradd -ms /bin/bash mmatthias && mkdir -p /home/mmatthias/.ssh && \
echo "mmatthias ALL=(ALL) NOPASSWD:ALL" | tee -a /etc/sudoers
RUN apt-get install -y git curl netcat redis-server \
openjdk-8-jdk python python3.7 vim
View keybase.md

Keybase proof

I hereby claim:

  • I am milesmatthias on github.
  • I am milesm (https://keybase.io/milesm) on keybase.
  • I have a public key ASBiXn_EfAqCVbq5MbTQAS-NE0allEqJs9xlVTjAK-itggo

To claim this, I am signing this object:

@milesmatthias
milesmatthias / build_and_deploy.sh
Created Oct 6, 2015
Gulp Build & Netlify deploy script
View build_and_deploy.sh
#!/bin/sh
#
# Usage: ./build.sh staging|production
#
stage=$1
git_branch=`git rev-parse --abbrev-ref HEAD`
@milesmatthias
milesmatthias / events.md
Last active Aug 29, 2015
Boulder Startup Week Development Track
View events.md

Infrastructure & Architecture Design

Monday, 3:30pm - 4:30pm @ Boomtown;

http://sched.co/334A

With all of the powerful cloud services out there nowadays, it's more important than ever to give good thought about architecture when building your applications. This event has 3 awesome speakers who have experience in architecture design and will share their expertise and answer your questions about how to decide what infrastructure tools to use on your next project.

Dev Happy Hour

Tuesday, 4pm - 5pm @ Lyfe Kitchen

http://sched.co/32li

@milesmatthias
milesmatthias / remove_s3_object.rb
Created Nov 13, 2014
simple ruby script to remove an object from s3. requires having the aws gem installed.
View remove_s3_object.rb
#!/usr/bin/env ruby
##
# usage: AWS_SECRET_KEY=xxx AWS_ACCESS_KEY=xxx S3_BUCKET_NAME=xxx ./remove_s3_object.rb file1.html file2.html
#
#
require 'aws'
require 'pry'
@milesmatthias
milesmatthias / invalidate_cf.rb
Created Nov 13, 2014
simple ruby script to invalidate cloudfront objects. requires having the aws gem installed.
View invalidate_cf.rb
#!/usr/bin/env ruby
##
# usage: AWS_SECRET_KEY=xxx AWS_ACCESS_KEY=xxx CF_DIST_ID=xxx ./invalidate_cf.rb file1.html file2.html
#
#
require 'aws'
require 'date'
require 'pry'
@milesmatthias
milesmatthias / slides.md.txt
Last active Aug 29, 2015
slides for intro_to_command_line gdi boulder (using mdp) (http://bit.ly/clgdi)
View slides.md.txt
%title: intro_to_command_line
%author: milesmatthias.com
%date: 2014-09-21
# GDI upcoming events
#### Code & Coffee
October 18th. 10a - 1p
Amante Coffee Baseline - Boulder
@milesmatthias
milesmatthias / mv_contents_up.rb
Created Oct 6, 2014
short ruby script used to move movies in a file structure created by itunes into a flat structure
View mv_contents_up.rb
#!/usr/bin/env ruby
# for each directory in the current directory:
#
# 1. move its contents up one directory (out of its current directory)
# 2. remove the (now empty) directory
#
# ( note: skips hidden files and . and .. )
require 'pry'
@milesmatthias
milesmatthias / number_episodes.rb
Created Oct 5, 2014
A short ruby script I wrote to quicken the process of prefixing episodes with numbers on an external hard drive.
View number_episodes.rb
#!/usr/bin/env ruby
require 'pry'
require 'fileutils'
EPISODES = [
nil,
nil,
nil,
"My Happy Place.mov",
@milesmatthias
milesmatthias / directory_upload.rb
Created Sep 1, 2014
S3 directory upload in ruby. Switched http://avi.io/blog/2013/12/03/upload-folder-to-s3-recursively to use the official aws ruby sdk.
View directory_upload.rb
#!/usr/bin/env ruby
require 'rubygems'
require 'aws-sdk'
class S3FolderUpload
attr_reader :folder_path, :total_files, :s3_bucket
attr_accessor :files
You can’t perform that action at this time.