Skip to content

Instantly share code, notes, and snippets.

@font-face {
font-family: "Fira Code Nerd Font";
font-style: normal;
font-weight: 200;
src: url("https://github.com/ryanoasis/nerd-fonts/blob/master/patched-fonts/FiraCode/Light/complete/Fira%20Code%20Light%20Nerd%20Font%20Complete.ttf?raw=true")
format("truetype");
}
@font-face {
font-family: "Fira Code Nerd Font";
font-style: normal;
ctrl_interface=DIR=/var/run/wpa_supplicant GROUP=netdev
update_config=1
country=US
network={
ssid="YOURSSID"
psk="YOURPASSWORD"
scan_ssid=1
}
ARG RUBY_VERSION=2.6.1
FROM ruby:$RUBY_VERSION-alpine as development
RUN apk add --no-cache \
git build-base yarn nodejs mariadb-dev imagemagick \
chromium-chromedriver chromium tzdata \
&& rm -rf /var/cache/apk/*
ENV RAILS_ENV=development
@jacobpatton
jacobpatton / usb
Last active December 4, 2019 21:01
interface=usb0
dhcp-range=10.55.0.2,10.55.0.6,255.255.255.248,1h
dhcp-option=3
leasefile-ro
interface=usb0
dhcp-range=10.55.0.2,10.55.0.6,255.255.255.248,1h
dhcp-option=3
leasefile-ro
ctrl_interface=DIR=/var/run/wpa_supplicant GROUP=netdev
update_config=1
country=<Insert country code here>
network={
ssid="<Name of your WiFi>"
psk="<Password for your WiFi>"
}
@jacobpatton
jacobpatton / data.md
Last active March 19, 2018 20:08 — forked from anonymous/data.md
  2010 2011 2012 2013 2014 2015 2016 2017
A 1 2 3 4 5 6 7 8
B 1   3 4 5 6 7 8
C 1 2     8 10 3 2
D 2 2 2 2 2 2 2 2
#!/bin/bash
# A simple script to backup an organization's GitHub repositories.
GHBU_BACKUP_DIR=${GHBU_BACKUP_DIR-"github-backups"} # where to place the backup files
GHBU_ORG=${GHBU_ORG-"<CHANGE-ME>"} # the GitHub organization whose repos will be backed up
# (if you're backing up a user's repos instead, this should be your GitHub username)
GHBU_UNAME=${GHBU_UNAME-"<CHANGE-ME>"} # the username of a GitHub account (to use with the GitHub API)
GHBU_PASSWD=${GHBU_PASSWD-"<CHANGE-ME>"} # the password for that account
GHBU_GITHOST=${GHBU_GITHOST-"github.com"} # the GitHub hostname (see comments)
GHBU_PRUNE_OLD=${GHBU_PRUNE_OLD-true} # when `true`, old backups will be deleted
@jacobpatton
jacobpatton / mrr.rb
Last active July 10, 2016 18:08
For a SAAS business, monthly recurring revenue (MRR) is their bread and butter. This small class fetches subscription records from Stripe to calculate the MRR.
require 'stripe'
# Find the MRR for a given Stripe account.
#
# (To do this it simply finds the total amount for all active
# subscriptions (in cents). For most SAAS accounts, this is
# enough, though modification is necessary to account for
# things like trials, discounts, pro-rated cancellations, etc.)
#
# {stripe_id: YOUR_STRIPE_SECRET_KEY} - A hash with the key "stripe_id" and the correct secret key

Keybase proof

I hereby claim:

  • I am jacobpatton on github.
  • I am jacobpatton (https://keybase.io/jacobpatton) on keybase.
  • I have a public key whose fingerprint is D8D2 8F9B AFAB F81B 4CEE 5F3E 4C96 D4BA 02F5 D6BB

To claim this, I am signing this object: