Skip to content

Instantly share code, notes, and snippets.


Chris Frohoff frohoff

View GitHub Profile
frohoff /
Last active April 30, 2018 21:36 — forked from ofabry/
UserScript: Github Links to Star Badges
frohoff / docker-compose-commands.txt
Created September 8, 2017 17:10
docker-compose command usage/options
View docker-compose-commands.txt
$ docker-compose 2>&1 | grep -E ' [a-z]+ ' | awk '{print $1}' | xargs -n1 -I{} docker-compose {} -h 2>&1 | grep -E '^\s*(Usage:|-+[a-z])'
Usage: build [options] [--build-arg key=val...] [SERVICE...]
--force-rm Always remove intermediate containers.
--no-cache Do not use cache when building the image.
--pull Always attempt to pull a newer version of the image.
--build-arg key=val Set build-time variables for one service.
Usage: bundle [options]
--push-images Automatically push images for any services
-o, --output PATH Path to write the bundle file to.
Usage: config [options]
frohoff / versions.yml
Last active September 8, 2017 05:05
travis-ci osx image jdk versions
View versions.yml
osx_image: xcode9 # oraclejdk8 1.8.0_112-b16
osx_image: xcode8.3 # oraclejdk8 1.8.0_112-b16
osx_image: xcode8.2 # oraclejdk8 1.8.0_112-b16
osx_image: xcode8.1 # oraclejdk8 1.8.0_112-b16
osx_image: xcode8 # oraclejdk8 1.8.0_92-b14
osx_image: xcode7.3 # oraclejdk8 1.8.0_74-b02
osx_image: xcode7.2 # oraclejdk8 1.8.0_66-b17
frohoff /
Created June 17, 2017 20:11
google sheets directions/distance functions
function qs( obj ) {
return '?'+Object.keys(obj).reduce(function(a,k){a.push(k+'='+encodeURIComponent(obj[k]));return a},[]).join('&')
function fetch_directions(o,d) {
Logger.log("fetching: " + JSON.stringify([o,d]));
var userProps = UserProperties.getProperties();
#!/bin/bash -xe
yum update -y
yum install -y git
curl -s | sh
service docker start
chkconfig docker on
pip install -U docker-compose
frohoff /
Last active May 10, 2016 20:54
  • Thou shalt place time/space/resource constraints on all otherwise open-ended operations
    • eg: timeouts, result counts, input sizes
  • Thou shalt strive to measure any quantitive values that can vary over time or across samples
    • eg: response times/counts, error counts,
  • Thou shalt not accept, store, transmit, or display a numerical value without its respective units or context
  • eg: timezones, metric/binary prefixes
frohoff /
Created November 19, 2015 14:15
commons beanutils gadget chain
package ysoserial.payloads;
import java.math.BigInteger;
import java.util.Arrays;
import java.util.PriorityQueue;
import java.util.Queue;
import org.apache.commons.beanutils.BeanComparator;
import ysoserial.payloads.annotation.Dependencies;
View hide-shell.rb
proxy do |data|
{ :remote =>
"localhost:81" :
View rails_cookie_rce.rb
frohoff /
Last active December 15, 2015 10:39
print contents of rails cookie