Skip to content

Instantly share code, notes, and snippets.

View McGeekiest's full-sized avatar

Joshua McGee McGeekiest

View GitHub Profile
#!/bin/bash
# Combine two flags and add a "vs" overlay
# v0.1 (2016-07-07)
convert -size 600x800 gradient: gradient.png
convert gradient.png -rotate -90 gradient-left-orig.png
padright 100 black gradient-left-orig.png gradient-left.png
convert gradient-left.png -alpha copy gradient-left-mask.png
convert gradient-left-mask.png -rotate 180 gradient-right-mask.png
@McGeekiest
McGeekiest / gist:c67e389f61536fad82a6
Created September 5, 2014 01:46
Steps to debug a USB flash drive problem
1. Click the magnifying glass icon near the upper-right of your screen, type "Terminal", and open that program.
2. Paste (or type) the following into Terminal and press enter:
defaults write com.apple.DiskUtility DUDebugMenuEnabled 1
3. Click the magnifying glass icon again, type "Disk Utility", and open that program.
4. Choose "Debug" in the menu bar, select "Debug Message Level", and set it to "All messages".
@McGeekiest
McGeekiest / boggle.js
Created June 29, 2014 05:22
Boggle Solver challenge
// Solution to Boggle Solver challenge
// Working example at http://boggle.mcgees.me
// 2014-06-28
// Joshua McGee
(function() {
"use strict";
// My solution was to load the Scrabble dictionary into a search tree, then search the board
// for possible matching words by checking each starting position and recursively checking