Skip to content

Instantly share code, notes, and snippets.

#! /usr/bin/env ruby
# usage:
# $ das_download.rb
require "mechanize"
require "fileutils"
class DasDownloader
attr_reader :agent, :email, :password
@jaredculp
jaredculp / fb.rb
Created January 26, 2019 16:58
Delete Facebook: export birthdays
require 'net/http'
class Birthday
def initialize(date, name)
@date = date
@name = name
end
def ics
"BEGIN:VEVENT\r\nDTSTART;VALUE=DATE:#{@date}\r\nRRULE:FREQ=YEARLY\r\nSUMMARY:Birthday #{@name}\r\nEND:VEVENT\r\n"
@jaredculp
jaredculp / dmb-analysis.py
Last active May 21, 2020 00:16
Web scraper to grap all setlists from http://dmbalmanac.com and output to CSV file. Invoked via `python dmb-scraper.py START_YEAR END_YEAR OUTPUT_FILENAME`. To get song counts invoke `python dmb-analysis.py DATA_FILENAME`.
import csv
import sys
from collections import Counter
with open (sys.argv[1], 'rb') as csvfile:
reader = csv.reader(csvfile, delimiter='\t')
reader.next()
songs = [row[4] for row in reader]
@jaredculp
jaredculp / tycho-awake.rb
Created September 8, 2021 19:00
Cover of Tycho's "Awake" in sonic-pi
# 64 eighth notes
bass_riff = [
[:As3] * 16,
[:Cs4] * 6,
[:Fs3] * 26,
[:As2] * 6,
[:Fs3] * 7,
[:Ds3] * 3
].flatten
@jaredculp
jaredculp / README.md
Last active August 6, 2023 16:56
Void Linux

Void Linux Macbook Air 2013

Flash installer:

$ dd if=void-live-x86_64-musl-20181111.iso of=/dev/X bs=1m

login as root:voidlinux

Base Install: