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 |
#!/bin/sh | |
# | |
# Usage: ./build.sh staging|production | |
# | |
stage=$1 | |
git_branch=`git rev-parse --abbrev-ref HEAD` | |
#!/usr/bin/env ruby | |
require 'rubygems' | |
require 'aws-sdk' | |
class S3FolderUpload | |
attr_reader :folder_path, :total_files, :s3_bucket | |
attr_accessor :files |
I hereby claim:
To claim this, I am signing this object:
recently our team had an exchange about lazy evaluation of ORM queries in ruby ( https://gist.github.com/ahoward/8285529 ) - this prompted me to think about how deep rails has really become and just how hard good MVC organization for the web really is. back in the day it took a special kind of developer to understand how to not kill a db when it was used in a web app - now it's pretty easy and, while this seems good on the outside, in the inside i think today's developers understand less and less about why web programming is really the hardest kind there is.
that's the motivation for today's quiz. to take it fork and keep your answer under 142 LOC total
given a model, Post, write code which will
# it's not critical for understanding | |
# but here is the associated server-side action | |
# | |
def version | |
@program = load_program! | |
@version = @program.versions.find(params[:version_id]) | |
if stale?(:last_modified => @version.updated_at, :etag => @version.cache_key) | |
render |
http://www.meteor.com/screencast | |
1. Download Meteor | |
2. Create new project | |
3. Create HTML file | |
4. Run Meteor / go to localhost in browser | |
5. Live Update Demo (changed HTML file) | |
6. Pasted in simple app (made it clear that this app uses handlebars and mongodb, but meteor lets you use whatever you want. | |
The app uses Templates and Collections) |
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' |