This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
locations: | |
vancouver | |
west chester | |
santa monica | |
new babies and reaching #3 | |
hashicorp IPO | |
consulting with nyc companies |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Given /^I expect to pay \$(\d+) via amazon$/ do |arg1| | |
price = arg1.to_f | |
mock_pipeline_request = mock('pipeline_request', | |
:url => sekret_payment_path(:transaction_amount => price)) | |
Remit::API.any_instance. | |
expects(:get_recurring_use_pipeline). | |
with{ |opts| opts[:transaction_amount] == price }. | |
returns(mock_pipeline_request) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
env-hyphens=ok | |
env.dots=ok |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env bash | |
URL="http://a0.awsstatic.com/pricing/1/ec2/ri-v2/linux-unix-shared.min.js" | |
(echo 'function callback(data) { console.log(JSON.stringify(data)); }'; curl -s "$URL") |\ | |
node |\ | |
jq -r '.config.regions[] | | |
select(.region == "us-east-1") | | |
.instanceTypes[] | | |
[ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
for R in $(aws iam list-roles --query 'Roles[].RoleName[]' --output text); do | |
echo "$R" | |
aws iam list-attached-role-policies --role-name "$R" | |
done | |
for U in $(aws iam list-users --query 'Users[].UserName[]' --output text); do | |
echo "$U" | |
aws iam list-attached-user-policies --user-name "$U" | |
done |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
function ESPlayer(server, indexPattern, playCallback, initialLoad = 40, delay = 10, blockDuration = 10, size = 10) { | |
this.server = server; | |
this.indexPattern = indexPattern; | |
this.playCallback = playCallback; | |
this.initialLoad = initialLoad; | |
this.delay = delay; | |
this.blockDuration = blockDuration; | |
this.size = size; | |
this.blocks = []; | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
module MaRuKu::Out::Prawn | |
def to_prawn(pdf) | |
@pdf = pdf | |
@pdf.font_size = 11 | |
array_to_prawn(@children) | |
end | |
def array_to_prawn(children) | |
children.each do |c| | |
send("to_prawn_#{c.node_type}", c) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
require 'rubygems' | |
require 'jekyll' | |
require 'maruku' | |
require 'pathname' | |
# Need pre for inline format support | |
gem 'prawn', '=0.11.1.pre' | |
require 'prawn' | |
require 'to_prawn' | |
class Converter |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
require 'gsl' | |
require 'time' | |
module Diskalerter | |
class ThresholdEstimator | |
attr_reader :timestamps, :signal, :threshold, :now | |
# timestamps - a list of timestamps in epoch milliseconds | |
# signal - a list of values for the provided timestamps | |
# threshold - the "exhaustion" threshold (e.g., 100 for a percentage signal) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
actions: | |
1: | |
action: reindex | |
description: Reindex 2017 indices to single index | |
options: | |
wait_interval: 9 | |
max_wait: -1 | |
request_body: | |
source: | |
index: REINDEX_SELECTION |