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:
| #!/usr/bin/env ruby | |
| # HOWTO: | |
| # 1. Copy your filters from the SD log UI | |
| # 2. Run `pbpaste | ruby sd_to_gcloud.rb` | |
| query=[] | |
| ARGF.each_line do |line| | |
| query.push line.gsub("\n", "").gsub("\"", "") |
| 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 |
I hereby claim:
To claim this, I am signing this object:
| #!/bin/sh | |
| # | |
| # Usage: ./build.sh staging|production | |
| # | |
| stage=$1 | |
| git_branch=`git rev-parse --abbrev-ref HEAD` | |
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.
| #!/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' |
| #!/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' |
| %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 |
| #!/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' |
| #!/usr/bin/env ruby | |
| require 'pry' | |
| require 'fileutils' | |
| EPISODES = [ | |
| nil, | |
| nil, | |
| nil, | |
| "My Happy Place.mov", |