Skip to content

Instantly share code, notes, and snippets.


Ollin Boer Bohan madebyollin

View GitHub Profile
tomhicks / plink-plonk.js
Last active Jul 29, 2022
Listen to your web pages
View plink-plonk.js

Tesla Key Card Protocol

Researched by Robert Quattlebaum

Last updated 2020-02-03.

Image of Tesla Key Card Image of Tesla Model 3 Key Fob

ryan-robeson /
Last active Feb 25, 2021
Building Resynthesizer for GIMP 2.10.10 on macOS

Building Resynthesizer for GIMP 2.10.10 on macOS - V2

Feedback is welcome and appreciated.

  • If you'd prefer to do things by hand check out Version 1 of this guide.

The following documents the steps I took to compile the latest version of Resynthesizer on macOS Sierra (10.12.6) for GIMP 2.10.10.

Homebrew was used to fulfill as many dependencies as possible.

TravisDunlop /
Last active Jan 25, 2020
Freeze a stable-baselines model to a protocol buffer file (i.e. .pb or .bytes)
Freezing a stable-baselines to a frozen protocol buffer file to be served.
Some code taken from this lovely blog series
import tensorflow as tf
import os
jdarpinian / executable.c
Last active Jun 7, 2022
Add one line to your C/C++ source to make it executable.
View executable.c
///bin/true;COMPILER_OPTIONS="-g -Wall -Wextra --std=c99 -O1 -fsanitize=address,undefined";THIS_FILE="$(cd "$(dirname "$0")"; pwd -P)/$(basename "$0")";OUT_FILE="/tmp/build-cache/$THIS_FILE";mkdir -p "$(dirname "$OUT_FILE")";test "$THIS_FILE" -ot "$OUT_FILE" || $(which clang || which gcc) $COMPILER_OPTIONS -xc "$THIS_FILE" -o "$OUT_FILE" || exit;exec "$OUT_FILE" "$@"
#include <stdio.h>
int main() {
printf("Hello world!\n");
return 0;
timvieira /
Last active May 14, 2022
Simple example of manually performing "automatic" differentiation.
Simple example of manually performing "automatic" differentiation
import numpy as np
from numpy import exp, sin, cos
def f(x, with_grad=False):
# Need to cache intermediates from forward pass (might not use all of them).
a = exp(x)
nuada /
Created Feb 22, 2017
Set custom icon of Mac OS X folder or file using resource forks.
# usage: <some.icns or image_file> <folder or file path>
# Based on:
if [[ -d "${target}" ]]; then
lazywei /
Created Jan 25, 2015 — forked from xiaom/
Install mosh server without root permission
# this script does absolutely ZERO error checking. however, it worked
# for me on a RHEL 6.3 machine on 2012-08-08. clearly, the version numbers
# and/or URLs should be made variables. cheers,
mkdir mosh
cd mosh
psayre23 / gist:c30a821239f4818b0709
Last active Aug 7, 2022
Runtime Complexity of Java Collections
View gist:c30a821239f4818b0709
Below are the Big O performance of common functions of different Java Collections.
List | Add | Remove | Get | Contains | Next | Data Structure
ArrayList | O(1) | O(n) | O(1) | O(n) | O(1) | Array
LinkedList | O(1) | O(1) | O(n) | O(n) | O(1) | Linked List
CopyOnWriteArrayList | O(n) | O(n) | O(1) | O(n) | O(1) | Array
brandonb927 /
Last active Aug 5, 2022
OSX for Hackers: Yosemite/El Capitan Edition. This script tries not to be *too* opinionated and any major changes to your system require a prompt. You've been warned.
# SOME COMMANDS WILL NOT WORK ON macOS (Sierra or newer)
# For Sierra or newer, see
# Alot of these configs have been taken from the various places
# on the web, most from here