Skip to content

Instantly share code, notes, and snippets.

View glasnt's full-sized avatar
🦜

Katie McLaughlin glasnt

🦜
View GitHub Profile
@glasnt
glasnt / test.md
Last active November 19, 2015 09:23
HI!
# Super basic implementation of the octohat concept, but in ruby.
# It most probably is missing some elements.
require 'octokit'
access_token = ENV["GITHUB_TOKEN"]
repo = ARGV[0]
client = Octokit::Client.new(:access_token => access_token)
Octokit.auto_paginate = true
@glasnt
glasnt / 00_readme.md
Last active August 29, 2015 14:21
Rubocop in SPAACCEE

Rubocop doesn't appear to be correcting spaces within braces denoting variables within strings.

Attempting an automatic correction does not fix this.

Running the auto-gen-correct command does not suggest any configurations to correct this.

Keybase proof

I hereby claim:

  • I am glasnt on github.
  • I am glasnt_ (https://keybase.io/glasnt_) on keybase.
  • I have a public key whose fingerprint is CF58 E858 6DC8 B4AD F1E9 322E 7149 57F8 48E5 B597

To claim this, I am signing this object:

@glasnt
glasnt / Dockerfile
Created February 3, 2015 04:48
wget output progress = STDERR
FROM debian:wheezy
RUN apt-get update && apt-get install -y wget
# Loud and noisy
RUN wget google.com
# Quiet
RUN wget google.com -q
@glasnt
glasnt / Makefile
Last active August 29, 2015 14:11 — forked from christian-marie/Makefile
Makefile for all the awesome "markdown -> pandoc -> pdf"-ness
MARKDOWNS=$(wildcard *.md)
PDFS=$(MARKDOWNS:md=pdf)
all: $(PDFS)
clean:
rm -f $(PDFS)
%.pdf: %.md
pandoc -V geometry:margin=1in -V papersize:"a4paper" --toc $< -o $@
<!doctype html>
<script src="https://code.shutterstock.com/rickshaw/vendor/d3.v2.js"></script>
<script src="https://code.shutterstock.com/rickshaw/rickshaw.min.js"></script>
<div id="chart"></div>
<script>
// Return an xinterp function for a given graph
function xinterp_on_graph(graph) {
@glasnt
glasnt / pastie
Created September 10, 2013 04:43
Given sufficient s3cmd setup, this script can be used to paste stuff into your bucket.
#! /bin/bash -e
BUCKET="mabucket"
PASTE="paste"
if [ $# -eq 0 ]; then echo "Usage: $0 filename, or -l for list"; exit 1;fi
if [ $1 = "-l" ]; then s3cmd ls s3://$BUCKET/$PASTE/; exit 0; fi
FILENAME=`date +"%s"`
cp $1 /tmp/$FILENAME.txt