Skip to content

Instantly share code, notes, and snippets.

Ken Collins metaskills

Block or report user

Report or block metaskills

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
metaskills / log.txt
Created May 15, 2019
customink/ruby-vips-lambda Latest Runtime Build Errors
View log.txt
$ ./bin/build
Sending build context to Docker daemon 130.6kB
Step 1/12 : FROM lambci/lambda:build-ruby2.5
---> b71c0ed10ee3
Step 2/12 : WORKDIR /build
---> Running in 661fe3c895e3
Removing intermediate container 661fe3c895e3
---> 60ba7e7f1d27
Step 3/12 : ARG VIPS_VERSION=8.7.4
---> Running in e29f20323847
metaskills /
Created Apr 30, 2019
Cross-Region Replication S3 Buckets - Bash Glue
set -e
if [ -z ${STAGE_ENV+x} ]; then
echo "Missing STAGE_ENV env variable!"
exit 126
metaskills /
Created Apr 30, 2019
Cross-Region Replication S3 Buckets - Single CloudFormation Template.
aws cloudformation deploy \
--region ${AWS_DEFAULT_REGION} \
--template-file "template.yaml" \
--stack-name "my-buckets-${RAILS_ENV}" \
--s3-prefix "my-buckets-${RAILS_ENV}" \
--capabilities "CAPABILITY_IAM" \
--tags \
"env=${STAGE_ENV}" \
"group=ecommerce" \
metaskills / demo.rb
Last active Nov 28, 2018
Using IMGIX to Personalize Knolled Images
View demo.rb
require 'open-uri'
require 'bundler/inline'
gemfile true do
source ''
gem 'imgix'
gem 'launchy'
metaskills /
Created Jan 10, 2018
Turbolinks & jQuery ReConstructor Pattern
class Toolbar
constructor: ->
document.addEventListener 'turbolinks:before-cache', @turboBeforeCache
reConstructor: ->
registerWaypoint: ->
metaskills /
Created Jan 10, 2018
Turbolinks With Enquire JS
metaskills /
Created Jan 10, 2018
Turbolinks Trustpilot Integration
metaskills / ready.js
Created Jan 10, 2018
When Are Things Ready?
View ready.js
document.addEventListener('DOMContentLoaded', function(){
document.addEventListener('turbolinks:load', function(){
console.log('jQuery Document Ready');
metaskills / foo.rb
Created Jan 10, 2018
Basic HTML Page
View foo.rb
<!DOCTYPE html>
<title>My Page</title>
<script src="..."></script>
<h1>Hello World!</h1>
<script src="..."></script>
metaskills / sam-validate.rb
Created Dec 28, 2017
Parse AWS SAM YAML Templates & Validate JSON Schema
View sam-validate.rb
#!/usr/bin/env ruby
require 'pp'
require 'json'
require 'yaml'
require 'open-uri'
require 'json-schema'
SCHEMA = begin
file = open('')
You can’t perform that action at this time.