Skip to content

Instantly share code, notes, and snippets.

Ryan Phillips rphillips

View GitHub Profile
View term-cluster.sh
#!/usr/bin/env bash
## Script to mark nodes for termination on AWS
## usage: term-cluster.sh [filter on name] [region (default: us-east-1)]
##
## Dependencies: jq and awless
##
set -eou pipefail
@rphillips
rphillips / kube-apiserver.yaml
Last active May 8, 2018
Upstream Checkpoint Testing
View kube-apiserver.yaml
apiVersion: apps/v1
kind: DaemonSet
metadata:
name: kube-apiserver
namespace: kube-system
labels:
tier: control-plane
k8s-app: kube-apiserver
spec:
selector:
@rphillips
rphillips / gcrgc.sh
Created Jun 22, 2017 — forked from ahmetb/gcrgc.sh
Script to clean up Google Container Registry images pushed before a particular date
View gcrgc.sh
#!/bin/bash
# Copyright © 2017 Google Inc.
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
View main.go
package main
import(
"io/ioutil"
"fmt"
"net"
"net/http"
"log"
)
@rphillips
rphillips / record.lua
Last active Aug 29, 2015
Record Terminal
View record.lua
local bit = require('bit')
local ffi = require('ffi')
local S = require('syscall')
ffi.cdef[[
int execl(const char *path, const char *arg0, ...);
int login_tty(int fd);
]]
local STDIN_FILENO = 0
View packages.el
(defvar workgroups2-packages
'(
workgroups2
)
"List of all packages to install and/or initialize. Built-in packages
which require an initialization must be listed explicitly in the list.")
(defun workgroups2/init-workgroups2 ()
(use-package workgroups2
:init
View gosec.go
package main
import (
"errors"
"io"
"os"
"os/user"
"path"
"strings"
View agent.js
var async = require('async');
var _ = require('underscore');
var ld = require('ld');
var dbopsEntity = require('../db/ops/entity');
var dbopsAgentConnection = require('../db/ops/agent_connection');
var dbopsAgent = require('../db/ops/agent');
var errors = require('../util/errors');
var flowCtrl = require('rackspace-shared-utils/lib/flow_control');
var log = require('logmagic').local('ele.lib.util.agent');
var instruments = require('rackspace-shared-utils/lib/instruments');
View keybase.md

Keybase proof

I hereby claim:

  • I am rphillips on github.
  • I am rphillips (https://keybase.io/rphillips) on keybase.
  • I have a public key whose fingerprint is 73FF 5DAB 1D53 AF0F D905 16DF BD93 B48C 83E9 2964

To claim this, I am signing this object:

View gist:d3c569840d3991e50eef
INFO global: Vagrant version: 1.6.0
INFO global: Ruby version: 2.0.0
INFO global: RubyGems version: 2.0.14
INFO global: VAGRANT_DEFAULT_PROVIDER="vmware_fusion"
INFO global: VAGRANT_EXECUTABLE="/Applications/Vagrant/bin/../embedded/gems/gems/vagrant-1.6.0/bin/vagrant"
INFO global: VAGRANT_INSTALLER_EMBEDDED_DIR="/Applications/Vagrant/bin/../embedded"
INFO global: VAGRANT_INSTALLER_VERSION="2"
INFO global: VAGRANT_DETECTED_OS="Darwin"
INFO global: VAGRANT_INSTALLER_ENV="1"
INFO global: VAGRANT_INTERNAL_BUNDLERIZED="1"
You can’t perform that action at this time.