Skip to content

Instantly share code, notes, and snippets.

View josephfrazier's full-sized avatar
💭
nothing to commit, working tree clean

Joseph Frazier josephfrazier

💭
nothing to commit, working tree clean
View GitHub Profile
@ctbarna
ctbarna / wait.csv
Last active March 17, 2022 16:24
Wait times at NYC H&H COVID testing sites. Updated about every 10 minutes between 8am and 8pm EST. Code at https://github.com/ctbarna/covid-wait-times
We can make this file beautiful and searchable if this error is corrected: Unclosed quoted field in line 8.
fullname,wait_time,last_reported,address,lat,lng,borough,location
Former Saint John Villa HS,Not Reported Yet,,"57 Cleveland Pl, Staten Island, NY 10305",40.6012163,-74.0687077,Staten Island,57 Cleveland Place
Bay Ridge 5th Avenue,Not Reported Yet,,"8511 & 8515 5th Ave., Brooklyn, NY 11209",40.6215669,-74.0259145,Brooklyn,Bay Ridge 5th Avenue
NYC Health + Hospitals / Bellevue,No Wait Time*,11:55 AM,"462 1st Ave., New York, NY 10016",40.7397258,-73.976201,Manhattan,Bellevue Hospital Cent...
"NYC Health + Hospitals/Gotham Health, Belvis",Not Reported Yet,,"545 E 142nd St., Bronx, NY 10454",40.8104385,-73.9159236,Bronx,Belvis Diagnostic & Tr...
NYC Health + Hospitals Bensonhurst 14th Ave,No Wait Time*,11:12 AM,"6315 14th Ave., Brooklyn, NY 11219",40.625407,-73.9979369,Brooklyn,Bensonhurst 14th Avenue
NYC Health + Hospitals/Coney Island,Not Reported Yet,,"2601 Ocean Pkwy, Brooklyn, NY 11235",40.5850562,-73.96546049999999,Brooklyn,Coney Island Hospital ...
CLOSED?,Not Reported Yet,,"1601 Ave. S, Brooklyn, NY 11229
@bigtiger
bigtiger / image_processing-on-heroku.md
Last active December 2, 2022 00:21
How We Deployed Image Processing to Heroku in Support of a Rails 6 Application

How We Deployed Image Processing to Heroku in Support of a Rails 6 Application

Our app was already deployed and working on Heroku with MiniMagick. There were a few features of Image Processing that were appealing, performance and autorotation, and it appeared to be a straightforward swap.

Locally, we had run brew install vips on our MacBooks to get it running. That was early in the process and a detail long forgotten. When I deployed to Heroku @juliancheal pointed out that the staging environment was failing with an ActiveSupport::MessageVerifier::InvalidSignature error.

We were able to quickly identify the missing libvips dependency.

Figuring out how to install libvips to support rubyvips to support Image Processing was not trivial and therefore this guidepost exists.

@steveklabnik
steveklabnik / oil.md
Last active January 15, 2021 21:32
Why is the price of oil negative?

so, why is oil's price negative?

(note: I am a software developer who has an interest in finance. This is my understanding. I am not a professional.)

first, what does that even mean? so, the "price of oil" is the price of "WTI Crude", which is a specific kind of oil. There are multiple kinds of oil with multiple prices.

Why is it negative? to understand this, we also have to understand why WTI is the price of oil: that is, it's the kind of oil that underpins the New York Mercantile Exchange's oil futures contracts. The NYMEX is kind of like the stock market, but for commodities, aka stuff.

@dvdbng
dvdbng / vim-heroku.sh
Last active April 22, 2024 22:42
Run vim in heroku updated 2017
mkdir ~/vim
cd ~/vim
# Staically linked vim version compiled from https://github.com/ericpruitt/static-vim
# Compiled on Jul 20 2017
curl 'https://s3.amazonaws.com/bengoa/vim-static.tar.gz' | tar -xz
export VIMRUNTIME="$HOME/vim/runtime"
export PATH="$HOME/vim:$PATH"
cd -
@Geek-MD
Geek-MD / qemu_osx_rpi_raspbian_jessie.sh
Last active December 30, 2020 10:51 — forked from hfreire/qemu_osx_rpi_raspbian_jessie.sh
How to emulate a Raspberry Pi (Raspbian Jessie) on Mac OSX (Sierra)
# Install Homebrew
/usr/bin/ruby -e "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install)"
# Install QEMU OSX port with ARM support
brew install qemu
export QEMU=$(which qemu-system-arm)
# Dowload kernel and export location
brew install wget
wget https://github.com/dhruvvyas90/qemu-rpi-kernel/raw/master/kernel-qemu-4.4.34-jessie
@smola
smola / git-find-roots
Created January 18, 2017 09:23
Find all initial commits and the commits where they were merged
#!/bin/bash
#
# git-find-roots finds every commit with no parent (initial commits)
# and the commit where they were merged.
#
# Usage:
# git-find-roots [commit-ish]
#
# Example:
# git-find-roots master
@mnot
mnot / snowden-ietf93.md
Last active September 12, 2023 13:40
Transcript of Edward Snowden's comments at IETF93.
@robertsdionne
robertsdionne / deepdream-docker.bash
Last active August 29, 2015 14:24
Deepdream Docker image setup instructions
#!/usr/bin/env bash
# Assuming OS X Yosemite 10.10.4
# Install the Homebrew package manager if you don't already use it; see source http://brew.sh
ruby -e "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install)"
# Install VirtualBox by hand or with homebrew
# By hand: https://www.virtualbox.org/wiki/Downloads
# Homebrew:
@KartikTalwar
KartikTalwar / Documentation.md
Last active April 13, 2024 23:09
Rsync over SSH - (40MB/s over 1GB NICs)

The fastest remote directory rsync over ssh archival I can muster (40MB/s over 1gb NICs)

This creates an archive that does the following:

rsync (Everyone seems to like -z, but it is much slower for me)

  • a: archive mode - rescursive, preserves owner, preserves permissions, preserves modification times, preserves group, copies symlinks as symlinks, preserves device files.
  • H: preserves hard-links
  • A: preserves ACLs
@ryin
ryin / tmux_local_install.sh
Last active April 23, 2024 01:06
bash script for installing tmux without root access
#!/bin/bash
# Script for installing tmux on systems where you don't have root access.
# tmux will be installed in $HOME/local/bin.
# It's assumed that wget and a C/C++ compiler are installed.
# exit on error
set -e
TMUX_VERSION=1.8