Skip to content

Instantly share code, notes, and snippets.

@stackedsax
stackedsax / admin-api.json
Created January 10, 2019 07:47 — forked from coopr/admin-api.json
Swagger (OpenAPI) specification file for part of Kong's Admin API
{
"swagger": "2.0",
"info": {
"version": "13.1.0",
"description": "A Swagger definition for the Kong Admin API",
"title": "Kong-Admin"
},
"host": "127.0.0.1:8001",
"basePath": "/",
"tags": [
@stackedsax
stackedsax / core_team_notes_9-17-17.md
Created September 18, 2017 05:07
Core Team Notes 9/17/17

Todos/Commitments

  • Jordan to email Ben about researching new places
  • Men to review their Core Team roles and take appropriate actions

Team Checkins

Umoto:

  • Core team met 4 times this year
@stackedsax
stackedsax / kubernetes_on_macOS.md
Last active February 12, 2017 01:21 — forked from kevin-smets/1_kubernetes_on_macOS.md
Local Kubernetes setup on macOS with minikube on VirtualBox

Requirements

Minikube requires that VT-x/AMD-v virtualization is enabled in BIOS. To check that this is enabled on OSX / macOS run:

sysctl -a | grep machdep.cpu.features | grep VMX

If there's output, you're good!

Prerequisites

@stackedsax
stackedsax / 0_reuse_code.js
Created July 21, 2016 18:18
Here are some things you can do with Gists in GistBox.
// Use Gists to store code you would like to remember later on
console.log(window); // log the "window" object to the console
@stackedsax
stackedsax / OKR.md
Created April 26, 2016 00:09
OKR Notes
  • OKRs:
    1. Publicly available to the entire company
    2. Not directly related to performance evaluation
    3. Set, reviewed, and revised quarterly and annually. (some even do a rolling monthly review)
  • Objectives:
    1. Guideline: limited to 5 objectives
    2. Usually qualitative and inspirational, designed to push.
    3. Examples: a. "accelerate revenue growth" b. "Pwn the direct to business coffee retail market in the south bay"
@stackedsax
stackedsax / add_metrics_endpoints.sh
Last active August 29, 2015 13:57
cloud metrics staging endpoints info
## which tenant?
export TENANT_ID=....
## find the endpoints' id from the list of available endpoints
curl -H "X-Auth-Token:$TOKEN" https://staging.identity.api.rackspacecloud.com/v2.0/OS-KSCATALOG/endpointTemplates |python -m json.tool
## get a token
curl -X POST https://staging.identity.api.rackspacecloud.com/v2.0/tokens -d '{"auth":{"passwordCredentials":{"username":"autoscale","password":"....."}}}' -H "Content-type: application/json" |python -m json.tool
export TOKEN=...
@stackedsax
stackedsax / 1_reach_setup.md
Last active August 29, 2015 13:56
Steps to get a reach dev environment up as of 2/8/2014
  1. Pray to the gods.
  2. You probably have everything in here: https://gist.github.com/bltavares/9be6cb19dc4ab9ec895e + rvm/rbenv. If not, run/curl the script and get all the tools + rvm/rbenv:
  3. curl -s https://gist.github.com/bltavares/9be6cb19dc4ab9ec895e/raw/bootstrap.sh | bash * note: I didn't actually need to run this so I haven't tested it.
  4. \curl -sSL https://get.rvm.io | bash -s stable --ruby
  5. git clone https://github.com/racker/reach
  • Reach team members can give you access if you don't have it
  1. cd reach/reach-vm/
  2. make update
  3. vagrant up
@stackedsax
stackedsax / gist:6026095
Created July 18, 2013 01:44
logstash snippet to remove ConsoleNote stuff in Jenkins logs
filter {
mutate {
gsub => ["@message", "\[8mha.*==\[0m", ""]
}
}
@stackedsax
stackedsax / android_emu_start.sh
Created May 8, 2012 21:42
Script for starting up multiple android emulators per box
#!/bin/bash
#####
#
# This script creates android emulators on the fly.
#
# Please refer to the README for usage instructions.
#
####
@stackedsax
stackedsax / registerAndroid.sh
Created May 3, 2012 01:55
poor man's flynnid.py for registering android emulators in bash
#!/bin/bash
HUB_HOST="hostname"
HUB_PORT="4444"
LOCAL_IP="ip"
SOCAT_PORT="8081"
JSON="{'configuration': {'registerCycle': 5000, 'hub': 'http://<HUB_HOST>:<HUB_PORT>/grid/register', 'host': '<LOCAL_IP>', 'proxy': 'org.openqa.grid.selenium.proxy.DefaultRemoteProxy', 'maxSession': 1, 'port': <SOCAT_PORT>, 'hubPort': <HUB_PORT>, 'hubHost': '<HUB_HOST>', 'url': 'http://<LOCAL_IP>:<SOCAT_PORT>', 'remoteHost': 'http://<LOCAL_IP>:<SOCAT_PORT>', 'register': true, 'role': 'node'}, 'class': 'org.openqa.grid.common.RegistrationRequest', 'capabilities': [{'seleniumProtocol': 'WebDriver', 'platform': 'ANDROID', 'browserName': 'android', 'version': null, 'maxInstances': 1}]}"
JSON=${JSON//<HUB_HOST>/$HUB_HOST}
JSON=${JSON//<HUB_PORT>/$HUB_PORT}