I hereby claim:
- I am tatethurston on github.
- I am tatethurston (https://keybase.io/tatethurston) on keybase.
- I have a public key whose fingerprint is 74A0 F797 E418 036C 6686 08AD A015 F117 B2FC 5848
To claim this, I am signing this object:
/* | |
Add jQuery to current page so it is available in console | |
*/ | |
var script = document.createElement('script'); | |
script.src = "https://ajax.googleapis.com/ajax/libs/jquery/1.6.3/jquery.min.js"; | |
document.getElementsByTagName('head')[0].appendChild(script); |
git filter-branch --force --index-filter \ | |
'git rm --cached --ignore-unmatch FILE_TO_REMOVE' \ | |
--prune-empty --tag-name-filter cat -- --all |
var http = require('http'); | |
var fs = require('fs'); | |
http.createServer(function(request, response){ | |
var newFile = fs.createWriteStream('file-upload.jpg'); | |
var fileSize = request.headers['content-length']; | |
var uploadedBytes = 0; | |
request.on('readable', function(){ | |
var chunk = request.read(); |
I hereby claim:
To claim this, I am signing this object:
.dockerignore | |
Dockerfile | |
docker-compose.yml | |
# Common tasks `docker-compose run foo` (often there is already a Makefile) | |
scripts.sh |
const _ = require('lodash'); | |
const isDev = process.env.NODE_ENV !== 'production' | |
const APP_PATH = ''; | |
const BUILD_PATH = ''; | |
const config = { | |
// Fail early | |
bail: true, |
// fn: () => Promise<Boolean> | |
const poll = (fn, interval = 100, maxWait = 60000) => { | |
const start = Date.now(); | |
let last = 0; | |
return new Promise((resolve, reject) => { | |
const _poll = () => { | |
const now = Date.now(); | |
console.log(start, last, now, interval); | |
if (now > start + maxWait) { |
NAME='' | |
rails new $NAME \ | |
--api \ | |
--database=postgresql \ | |
--skip-action-cable | |
cd $NAME | |
rm -rf \ |
version: '3' | |
services: | |
db: | |
image: postgres | |
# ports: | |
# - "5432:5432" | |
web: | |
image: ruby:2.3-onbuild | |
command: bundle exec rails s -p 5000 -b '0.0.0.0' |
/* | |
* NOTE: You'll need to follow the steps outlined in aws-config.js.example | |
* before running this deploy script for the first time | |
*/ | |
// https://github.com/andrewrk/node-s3-client | |
const s3 = require('s3'); | |
const DIRECTORY = 'dist'; |