Skip to content

Instantly share code, notes, and snippets.

View coreygo's full-sized avatar

Corey Gouker coreygo

View GitHub Profile
@coreygo
coreygo / SynciTunesLibrary.md
Last active July 2, 2021 05:03
Brief guide to running iTunes with a NAS iTunes Media folder.

2021-07-01: Deprecated. This scenario and the hacks involved likely still work, but I'm no longer using this in lieu of simply organizing and tagging with MusicBrainz Picard and using Plex Media Server instead of iTunes.

Keeping iTunes in sync.

Unfortunately storing a TB+ of music is a real challenge on a laptop with only a 256GB SSD. Luckily with lunchy (a launchd wrapper), rsync, automator and a little magic the task is made simpler.

One might want to use this with a Gbps fiber connection and VPN. If you're using a Synology NAS it's entirely possible to configure the VPN, DNS, DHCP, etc directly. Some may prefer however to set up a VPN on the router for better isolation. The latter is my preferred method.

Polishing your gems

Verifying that +coreygo is my Bitcoin username. You can send me #bitcoin here: https://onename.io/coreygo
@coreygo
coreygo / DubSideOfTheMoon.pde
Last active January 25, 2016 01:28
Processing with Minim FFT/BeatDetection audio visualization. Modeled after Pink Floyd's Dark Side of the Moon album cover.
import ddf.minim.*;
import ddf.minim.analysis.*;
Minim minim;
AudioPlayer player;
AudioInput input;
BeatDetect beat;
FFT fft;
float x, y, w, h, xCenter, yCenter, bRadius;
void setup() {
size(1200,1200,P3D);
smooth(8);
frameRate(60);
hint(DISABLE_OPTIMIZED_STROKE);
colorMode(HSB, 360, 360, 360);
}
void draw() {
background(0);
@coreygo
coreygo / monte-carlo.html
Last active January 25, 2016 01:29
Monte-carlo
<div>π ≈ <span id="pi"></span><br /><canvas id='monte-carlo'></canvas></div>
<script src="//cdnjs.cloudflare.com/ajax/libs/processing.js/1.4.16/processing.min.js"></script>
<!-- <script src="//cdnjs.cloudflare.com/ajax/libs/p5.js/0.4.21/p5.min.js"></script> -->
<script type="text/processing" data-processing-target="monte-carlo">
void setup() {
//Called initially
}
void draw() {
//Called in a loop, about 60 times per second
import ddf.minim.*;
import ddf.minim.analysis.*;
import ddf.minim.signals.*;
Minim minim;
AudioInput in;
//AudioPlayer player;
BeatDetect beat;
BeatListener bl;

Keybase proof

I hereby claim:

  • I am coreygo on github.
  • I am coreygo (https://keybase.io/coreygo) on keybase.
  • I have a public key ASAd9hYYkJ3zk8obJhgCjTyRED4iNbnqLvBJaVtTEEAClgo

To claim this, I am signing this object:

Old Method

  1. hdiutil convert -format UDRW -o /path/to/target.img /path/to/source.iso
  • Note: OS X tends to put the .dmg ending on the output file automatically.
  • Rename the file mv /path/to/target.img.dmg /path/to/target.img
  1. diskutil list to get the current list of devices
  2. Insert flash media
  3. diskutil list again and determine the device node assigned to your flash media (e.g. /dev/disk2)
  4. diskutil unmountDisk /dev/diskN (replace N with the disk number from the last command - in the previous example, N would be 2)
  5. sudo dd if=/path/to/downloaded.img of=/dev/rdiskN bs=1m
  6. diskutil eject /dev/diskN