Skip to content

Instantly share code, notes, and snippets.

View robotblake's full-sized avatar

Blake Imsland robotblake

View GitHub Profile
@robotblake
robotblake / redirector-twitter-embed-rules.json
Last active June 30, 2023 10:58
Redirector (https://einaregilsson.com/redirector/) rules to redirect Tweet and Twitter Profile URLs to their HTML embed equivalents
{
"createdBy": "Redirector v3.5.3",
"createdAt": "2023-06-30T10:58:32.184Z",
"redirects": [
{
"description": "Twitter Tweet",
"exampleUrl": "https://twitter.com/marumittugames/status/1674641618035695619",
"exampleResult": "https://platform.twitter.com/embed/Tweet.html?id=1674641618035695619",
"error": null,
"includePattern": "https://twitter.com/(?:[^/]+)/status/(\\d+)(?:\\?|$)",
#!/bin/bash
region=$(ec2-metadata -z | sed -r 's/^placement: (.+)[a-z]$/\1/')
instance_id=$(ec2-metadata -i | sed -r 's/^instance-id: (.+)$/\1/')
aws ec2 describe-tags \
--region=$region \
--filters \
"Name=resource-id,Values=$instance_id" \
"Name=key,Values=aws:elasticmapreduce:job-flow-id" \
#!/bin/bash
HEKA_REPO="github.com/mozilla-services/heka"
go get -d -u $REPO/message
go tool yacc -l -o $GOPATH/src/$REPO/message/message_matcher_parser.{go,y}
go get -u $REPO/cmd/heka-cat
@robotblake
robotblake / README.md
Last active August 29, 2015 14:14
A tool to download a jar and all of its dependencies

jar-fetch

A tool to download a jar and all of its dependencies

Usage

jar-fetch [-p <path>] <lib> [<lib>...]

Requirements

Keybase proof

I hereby claim:

  • I am robotblake on github.
  • I am robotblake (https://keybase.io/robotblake) on keybase.
  • I have a public key whose fingerprint is BCBF 58B3 617C A528 CB01 935B 4E28 9BE2 20D2 4367

To claim this, I am signing this object:

#!/usr/bin/env ruby
require "bson"
infile = ARGV.shift
outfile = ARGV.shift
minsize = Integer(ARGV.shift || 1)
words = Hash.new
wordmap = Hash.new { |h, k| h[k] = [] }
<?php
require 'sinatra.php';
$app = new Sinatra;
$app->get('/hello', function ($app) {
echo "Hello, World!";
});