I hereby claim:
- I am jimbocoder on github.
- I am jimbocoder (https://keybase.io/jimbocoder) on keybase.
- I have a public key ASCyJFEtzqrlgtzH-m89rV5HJNUnfXtBEW6_H-xMrJdbEgo
To claim this, I am signing this object:
I hereby claim:
To claim this, I am signing this object:
apiVersion: v1 | |
entries: | |
acs-engine-autoscaler: | |
- apiVersion: v1 | |
appVersion: 2.1.1 | |
created: 2020-01-28T00:28:56.73043857Z | |
deprecated: true | |
description: DEPRECATED Scales worker nodes within agent pools | |
digest: 93f924d4498d588bcdda88c7401e27c6fa0f50ff0601e78885eca13eb683c1e2 | |
home: https://github.com/wbuchwalter/Kubernetes-acs-engine-autoscaler |
# Count total EBS based storage in AWS | |
aws ec2 describe-volumes | jq "[.Volumes[].Size] | add" | |
# Count total EBS storage with a tag filter | |
aws ec2 describe-volumes --filters "Name=tag:Name,Values=CloudEndure Volume qjenc" | jq "[.Volumes[].Size] | add" | |
# Describe instances concisely | |
aws ec2 describe-instances | jq '[.Reservations | .[] | .Instances | .[] | {InstanceId: .InstanceId, State: .State, SubnetId: .SubnetId, VpcId: .VpcId, Name: (.Tags[]|select(.Key=="Name")|.Value)}]' | |
# Wait until $instance_id is running and then immediately stop it again | |
aws ec2 wait instance-running --instance-id $instance_id && aws ec2 stop-instances --instance-id $instance_id | |
# Get 10th instance in the account |
# encoding: utf-8 | |
require "logstash/filters/base" | |
require "logstash/namespace" | |
# Filter plugin for logstash to parse the PHP severity field from a php error log | |
# message embdeeded in a syslog (RFC3164) message, and adjust the standard syslog | |
# PRI field accordingly. | |
# | |
# This is necessary because PHP by default logs all syslog messages at priority | |
# "notice", even things like fatal errors! This makes it impossible to do any alerting |
#!/bin/bash | |
if [[ ! -x /usr/local/bin/ngrok ]]; then | |
TMPFILE=`tempfile` | |
curl -s 'https://bin.equinox.io/c/4VmDzA7iaHb/ngrok-stable-linux-amd64.zip' -o "$TMPFILE.zip" | |
sudo unzip -f "$TMPFILE.zip" ngrok -d /usr/local/bin/ | |
rm -f "$TMPFILE.zip" | |
fi |
{ | |
"REPORT_TITLE": "Report for the month of xyz", | |
"QUOTE": { | |
"TYPE": "zipcode", | |
"DRIVERS": [ | |
{ | |
"Age": "30", | |
"Sex": "Female", | |
"Good_Student": "Yes", |
#!/usr/bin/env php | |
<?php | |
$safeHome = preg_quote(getenv('HOME'), '/'); | |
$path = preg_replace("/^$safeHome(.*)$/", '~$1', getcwd()); | |
$delim = "\xe2\x8b\xaf"; // ⋯ | |
$maxlen=5; | |
$abbreviator = function($component) use ($delim, $maxlen) { |
function compose() { | |
$fxns = func_get_args(); | |
$outer = function($identity) { return $identity; }; | |
while($f = array_pop($fxns)) { | |
if ( !is_callable($f) ) { | |
throw new \Exception('This should be a better exception.'); | |
} | |
$outer = function() use($f, $outer) { | |
return $f(call_user_func_array($outer, func_get_args())); | |
}; |
# Modified version of what `composer _completion -g -p composer` generates | |
# Composer will only load plugins when a valid composer.json is in its working directory, | |
# so for this hack to work, we are always running the completion command in ~/.composer | |
function _composercomplete { | |
export COMP_LINE COMP_POINT COMP_WORDBREAKS; | |
local -x COMPOSER_CWD=`pwd` | |
local RESULT STATUS | |
# Honour the COMPOSER_HOME variable if set | |
local composer_dir=$COMPOSER_HOME |
# Purge the following packages | |
account-plugin-aim | |
account-plugin-facebook | |
account-plugin-flickr | |
account-plugin-jabber | |
account-plugin-salut | |
account-plugin-twitter | |
account-plugin-windows-live | |
account-plugin-yahoo |