Skip to content

Instantly share code, notes, and snippets.

View bertrama's full-sized avatar

Albert Bertram bertrama

  • University of Michigan
  • Ann Arbor, MI
View GitHub Profile
@bertrama
bertrama / vagrant-hostname-down.sh
Created May 5, 2024 17:28 — forked from gmcclins/vagrant-hostname-down.sh
manage a vagrant host with systemd
#!/usr/bin/env bash
#
# script to stop vagrant box for use with systemd
# place scripts into /usr/lib/systemd/scripts/
# be sure to put the .service file in /lib/systemd/system/
#
# -- Geoffrey McClinsey
VAGRANTUSR=vagrant # user you want vagrant box to run as
VAGRANTBOXPATH= # add path to Vagrantfile
@bertrama
bertrama / README.md
Created June 28, 2017 21:41 — forked from xavriley/README.md
Original NES Mario Theme for Sonic Pi

Making Chiptune Music using Sonic Pi v2.0

Warning: this might not work on a RaspberryPi yet

I was curious about making retro gaming sounds using Sonic Pi. A couple of months and a lot of Googling later, here's the original Mario Bros theme as it was heard on the NES console.

I'm (just about) old enough to remember rushing home from school to play this game at Philip Boucher's house, sitting cross-legged in front of the TV till my feet got pins and needles. Working out how to recreate it for Sonic Pi was a lot of fun!

Getting the sounds of the NES chip

# Reticent Memory
# By Jansen Price 3/17/2016
# For Sonic Pi v2.9
use_bpm 124
# Don't log as much
use_debug false
# Set random seed
@bertrama
bertrama / README.md
Created June 25, 2017 22:58 — forked from xavriley/README.md
Converting music XML to Sonic PI

Convert a MusicXML file to Sonic Pi instruction.

Very basic - proof of concept so far

@bertrama
bertrama / install-opencv-2.4.11-in-ubuntu.sh
Last active August 29, 2015 14:27 — forked from dynamicguy/install-opencv-2.4.11-in-ubuntu.sh
install opencv-2.4.11 in ubuntu
# install dependencies
sudo apt-get update
sudo apt-get install -y build-essential cmake libgtk2.0-dev \
pkg-config python-numpy python-dev \
libavcodec-dev libavformat-dev libswscale-dev \
libjpeg-dev libpng-dev libtiff-dev libjasper-dev
sudo apt-get -qq install \
libopencv-dev build-essential checkinstall cmake \
pkg-config yasm libjpeg-dev libjasper-dev \