Skip to content

Instantly share code, notes, and snippets.

@abrambailey
abrambailey / better-envs.md
Created June 9, 2026 02:22
Open Credential Lifecycle Standard

A Proposal for an Open Credential Lifecycle Standard

Why this matters

API keys and service credentials remain one of the messiest parts of modern software development.

The problem is not simply that secrets need to be stored securely. We already have good tools for that. The larger unsolved problem is that credentials are created, copied, scoped, stored, injected, rotated, revoked, and audited differently across every API provider, cloud platform, hosting service, CI system, database, analytics tool, and developer environment.

This becomes painful during normal development. It becomes critical after a compromise.

@abrambailey
abrambailey / proposal.md
Last active June 9, 2026 02:20
A Proposal for an Open Credential Lifecycle Standard

A Proposal for an Open Credential Lifecycle Standard

Why this matters

API keys and service credentials remain one of the messiest parts of modern software development.

The problem is not simply that secrets need to be stored securely. We already have good tools for that. The larger unsolved problem is that credentials are created, copied, scoped, stored, injected, rotated, revoked, and audited differently across every API provider, cloud platform, hosting service, CI system, database, analytics tool, and developer environment.

This becomes painful during normal development. It becomes critical after a compromise.

@abrambailey
abrambailey / keybase.md
Last active April 17, 2018 20:14
keybase.md

Keybase proof

I hereby claim:

  • I am abrambailey on github.
  • I am funkdified (https://keybase.io/funkdified) on keybase.
  • I have a public key ASBJeh8WilJSq3aIkNH0WaUPwM-mNwwc9AoEzcjlmdJIkgo

To claim this, I am signing this object:

@abrambailey
abrambailey / invite-all-users-to-slack-channel.js
Last active October 29, 2020 06:10
Invite all users to slack channel
var i = 1;
function inviteAllUsers() {
setTimeout(function () {
setTimeout(function() {
$('#channel_actions_toggle').click();
},100)
setTimeout(function() {
$('#channel_invite_item').click();
},200)
@abrambailey
abrambailey / rebase.sh
Last active June 30, 2016 18:54 — forked from DennisOSRM/rebase.sh
Rebase current branch against origin/qa and squash all commits into a single one
#!/bin/sh
set -e
# Get the current branch name.
branch=`git rev-parse --abbrev-ref HEAD`
# Determine the commit at which the current branch diverged.
ancestor=`git merge-base qa HEAD`
# Stash any uncommited, changed files.
git stash --all
# Revert the branch back to the ancestor SHA.
@abrambailey
abrambailey / gist:32e5c1b5ec4f0e817a67
Created June 14, 2015 03:42
packer rails environment
sudo apt-get -y update
sudo apt-get install -y git-core curl zlib1g-dev build-essential libssl-dev libreadline-dev libyaml-dev libsqlite3-dev sqlite3 libxml2-dev libxslt1-dev libcurl4-openssl-dev python-software-properties libffi-dev git rbenv
git clone https://github.com/sstephenson/rbenv.git ~/.rbenv
echo 'export PATH="$HOME/.rbenv/bin:$PATH"' >> ~/.bashrc
echo 'eval "$(rbenv init -)"' >> ~/.bashrc
type rbenv
git clone https://github.com/sstephenson/ruby-build.git ~/.rbenv/plugins/ruby-build
rbenv install 2.2.0
sudo apt-get -y install nodejs
gem update --system
subreddit Last Visited View all »
ambientmusic
Never +shortcut
Android
2014-09-14 +shortcut
androidapps
Never +shortcut
androiddev
2014-09-14 +shortcut
AndroidGaming
@abrambailey
abrambailey / EnglishHonorifics
Created February 9, 2015 23:12
English honorifics array
[
'Mr',
'Ms',
'Miss',
'Mrs',
'Mx',
'Master',
'Sir',
'Madam',
'Dame',
#config/boot.rb is loaded
require File.expand_path('../boot', __FILE__)
#reuquires all the railties (active model, active record, etc)
require 'rails/all'
if defined?(Bundler)
# If you precompile assets before deploying to production, use this line
#Bundler.require(*Rails.groups(:assets => %w(development test)))
Bundler.require(*Rails.groups(:assets => %w(development test))) if defined?(Bundler)
@abrambailey
abrambailey / geo_helper.rb
Created October 25, 2014 02:59
MaxMind GeoIP2 Ruby Helper file
module GeoHelper
def maxmind_locate
uri = URI("https://geoip.maxmind.com/geoip/v2.1/city/#{request.remote_ip}?pretty")
Net::HTTP.start(uri.host, uri.port,
:use_ssl => uri.scheme == 'https',
:verify_mode => OpenSSL::SSL::VERIFY_NONE) do |http|