Skip to content

Instantly share code, notes, and snippets.

@patrickgill
patrickgill / Makefile
Created June 3, 2016 08:21 — forked from pklaus/Makefile
Using OpenCL on Mac OS X - Test for OpenCL Devices
dumpcl:
clang -framework OpenCL dumpcl.c -o dumpcl && ./dumpcl
# Usage:
# [sudo] gem install mechanize
# ruby tumblr-photo-ripper.rb
require 'rubygems'
require 'mechanize'
# Your Tumblr subdomain, e.g. "jamiew" for "jamiew.tumblr.com"
site = "thoughtjoy"
@patrickgill
patrickgill / 0_reuse_code.js
Created March 31, 2016 12:33
Here are some things you can do with Gists in GistBox.
// Use Gists to store code you would like to remember later on
console.log(window); // log the "window" object to the console
#!/usr/bin/env bash
# -----------------------------------------------------------------------------
# Name : firmwhere
# Purpose : Lists and (optionally) downloads all iOS firmware updates
# Based on: https://gist.github.com/jordanmerrick/3447610
# -----------------------------------------------------------------------------
# set up a temporary file
file="$(/usr/bin/mktemp -q -t firmwhere)"