Skip to content

Instantly share code, notes, and snippets.

@aaronlerch
aaronlerch / Gemfile
Last active August 29, 2015 14:16
blink1 + guard = simple test status indicator
# ...
group :development, :test do
# ...
gem "guard", require: false
gem "guard-shell", require: false
# ...
end
# ...
### Keybase proof
I hereby claim:
* I am aaronlerch on github.
* I am aaronlerch (https://keybase.io/aaronlerch) on keybase.
* I have a public key whose fingerprint is 4D45 4934 A0A0 1E9D 61FA EC85 9AD4 01C7 C20F 3B87
To claim this, I am signing this object:
@aaronlerch
aaronlerch / overviewer.conf
Last active August 29, 2015 14:12
Example configuration and update script for running The Minecraft Overviewer and uploading it to S3
worlds["myserver"] = "/opt/msm/servers/myserver/world"
def playerIcons(poi):
if poi['id'] == 'Player':
poi['icon'] = "http://overviewer.org/avatar/%s" % poi['EntityId']
return "Last known location for %s" % poi['EntityId']
def signFilter(poi):
if poi['id'] == 'Sign':
return "\n".join([poi['Text1'], poi['Text2'], poi['Text3'], poi['Text4']])
@aaronlerch
aaronlerch / 0_reuse_code.js
Created August 15, 2014 17:56
Here are some things you can do with Gists in GistBox.
// Use Gists to store code you would like to remember later on
console.log(window); // log the "window" object to the console
App.PushClient = Em.Object.extend
members: prop ->
Em.A()
connect: (key, userId) ->
return unless Pusher?
@pusher?.disconnect()
@pusher = new Pusher key,
/// <summary>
/// ALL of this was copied directly out of Nancy.Owin.dll's source:
/// https://github.com/NancyFx/Nancy/blob/master/src/Nancy.Owin/NancyOwinHost.cs
///
/// For the SOLE PURPOSE of customizving:
/// var nancyRequestStream = new RequestStream(owinRequestBody, ExpectedLength(owinRequestHeaders), 1048576, false);
/// </summary>
namespace FunkyTown
{
using System;
@aaronlerch
aaronlerch / github-access.sh
Created January 17, 2014 14:05
Enable SSH access for all members of a GitHub organization
#!/bin/bash
{
GH_TMP_FILE=/tmp/github_authorized_keys
GH_ACCESS_TOKEN=YOUR_ORG_ACCESS_TOKEN_GOES_HERE
GH_ORG_NAME=YOUR_ORG_NAME_GOES_HERE
LOCAL_USER=SET_THIS_TO_THE_LOCAL_USER_TO_ENABLE_ACCESS_FOR # e.g. ec2-user, ubuntu, etc.
# Find an expected user to add authorized_keys for

Title: Maloba

Oyo ezali lokasa na web.

Awa ezali mingi te.

Maloba kaka.

Na ozali kotanga bango.

@aaronlerch
aaronlerch / README.md
Last active December 29, 2015 01:39
Nancy + Mono + nginx request stream bug

Reproduction scenario:

  • nginx installed via homebrew
  • running Mono 3.2.5 (also reproduced under mono 3.2.4)
  • latest stable release nuget package binaries in the same directory as app.cs -- bin list below
$ ls *.dll
  Microsoft.Owin.Host.HttpListener.dll
  Microsoft.Owin.dll
@aaronlerch
aaronlerch / README.md
Created August 7, 2013 16:46
Upstart scripts for MongoDB Monitoring Service agent (MMS) MongoDB Backup Service agent (MBS?)

Download

Download and install the agent(s). These examples are on a standard 64-bit Amazon EC2 Linux AMI.

MMS

wget [path to mms agent download, specified by 10gen]
sudo tar xvzf 10gen-mms-agent-[CUSTOM_NAME].tar.gz -C /opt