Skip to content

Instantly share code, notes, and snippets.

View BHSPitMonkey's full-sized avatar
👨‍💻
Hacking the planet

Stephen Eisenhauer BHSPitMonkey

👨‍💻
Hacking the planet
View GitHub Profile
@BHSPitMonkey
BHSPitMonkey / preview.png
Last active November 19, 2022 03:18
Example Home Assistant dashboard for controlling an Android TV device
preview.png
@BHSPitMonkey
BHSPitMonkey / grub-reboot.sh
Created February 27, 2016 05:51
Graphical reboot-into-OS chooser for GRUB2
#!/bin/bash
#
# Show a list of GRUB2 menu entries, and reboot into the chosen one.
#
# Your /etc/default/grub MUST have GRUB_DEFAULT set to "saved".
# If you make this change, run update-grub as root to apply it.
# To learn more, read: https://wiki.debian.org/GrubReboot
#
# Requirements:
# * zenity
@BHSPitMonkey
BHSPitMonkey / Stephen.stl
Last active August 29, 2015 14:26
My very own 3D selfie. Captured by GetMakered Labs at OSCON.
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@BHSPitMonkey
BHSPitMonkey / TRIGSOLV.8xp.txt
Created April 12, 2014 22:58
My TI-BASIC right triangle trigonometry solver from 9th grade geometry class.
Disp " "
Disp " USING TRIG TO"
Disp " FIND MEASURES"
Disp "I NEED:"
Disp " 1)AN ANGLE"
Disp " 2)A SIDE"
Input "CHOICE: ",C
If C=1:Then:
Disp "IS THE ANGLE OP-":Disp "POSITE THE HYP.?"
Disp " 1)YES"
@BHSPitMonkey
BHSPitMonkey / ARCIRCLE.8xp.txt
Created April 12, 2014 22:37
My TI-BASIC formula programs from 9th grade geometry class.
Disp " "
Disp "AREA OF A CIRCLE"
Disp " "
Input "RADIUS=",R
piR^^2->A
Disp " "
Disp "AREA OF A CIRCLE"
Disp "IS:",A
Disp "TERMS OF pi:",(A/pi)CubicReg seq(
@BHSPitMonkey
BHSPitMonkey / Dockerfile
Last active August 29, 2015 13:57
A Dockerfile for the DAITSS Format Description Service (https://github.com/daitss/describe)
# DAITSS Description Service
# for Docker 0.7 or newer
#
# This Dockerfile builds an image that runs the DAITSS Description Service
# (http://github.com/daitss/describe) at commit 5035ef1a9a (a new version
# using Ruby 1.9.3).
#
# How to use (assuming Docker is installed):
#
# # This builds the Docker image. Wait for the command to finish.
@BHSPitMonkey
BHSPitMonkey / Dockerfile
Last active August 29, 2015 13:56
A Dockerfile for DataStage (https://github.com/dataflow/DataStage). Now supports DataStage 0.4.0.
# DataStage
# for Docker 0.7 or newer
#
# This Dockerfile builds an image that runs DataStage.
#
# This performs a manual installation of DataStage from GitHub using a
# modified version of the install script found here:
# https://oxfile.ox.ac.uk/oxfile/work/extBoxNoJs?execution=e2s1
#
# How to use (assuming Docker is installed):
@BHSPitMonkey
BHSPitMonkey / CLauncher.md
Last active January 4, 2016 13:19
CLauncher, for iPodLinux.

CLauncher

A text-based launcher for Podzilla2, iDoom, and iBoy written for iPodLinux, and the first program I ever wrote (not counting previous TI-BASIC masterpieces). The last-modified timestamp reads Mon, Apr 10 2006 00:23:20. It required ample hand-holding from the very patient #iPodLinux IRC channel, it used hard-coded paths for everything, and I didn't really understand much of what was going on (I certainly didn't write any of the pz_exec function). But hey, Leo Laporte himself used it on TV, so I guess some people found it useful.

@BHSPitMonkey
BHSPitMonkey / GIMP Batch Rotations.md
Last active December 26, 2015 04:59
GIMP Python Console: Batch Rotations

GIMP Python Console: Batch Rotations

Ever wanted to rotate several layers at once? Today I figured out how to randomize a handful of layer rotations using the Python Console in the GIMP.

import random
import math

# Only one image was open, so I just grabbed the first image from the list
image = gimp.image_list()[0]
@BHSPitMonkey
BHSPitMonkey / gist:4737184
Created February 8, 2013 07:01
Bash function for easily switching between iOS devices to deploy to using Theos. Lives in `.profile`
# Select iOS device to test on
function device() {
case "$1" in
4s) NAME="iPhone 4S"
THEOS_DEVICE_IP="192.168.1.333"
;;
4g) NAME="iPod Touch 4G"
THEOS_DEVICE_IP="192.168.1.222"
;;
*) NAME="iPod Touch 2G"