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
# 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 |
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.
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:
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
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 |
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
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 $@ |
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
<!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) { |
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
#! /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 |
NewerOlder