Skip to content

Instantly share code, notes, and snippets.

@mauricerkelly
mauricerkelly / Rakefile task
Created October 21, 2012 16:49
publish_draft task for Octopress Rakefile
require "preamble"
desc "Publish draft"
task :publish_draft do
posts_path = "#{source_dir}/#{posts_dir}"
puts "Listing drafts in #{posts_path}..."
drafts = Array.new()
Dir.glob("#{posts_path}/*.*").each_with_index do |post, idx|
yaml = Preamble.load(post)

This Gist contains the script and generated output file for an Acer B276HUL.

The pre-generated file below is known to work with:

  • OS X Mavericks
  • OS X Yosemite
  • OS X El Capitan

For El Capitan:

  1. Restart your Mac while holding Command-R: this puts your Mac into Recovery Mode.
@mauricerkelly
mauricerkelly / DraggableView.swift
Created January 6, 2015 10:24
Draggable Views
import UIKit
protocol Draggable {
func draggableViewMethod()
}
class DraggableView: UIView, Draggable {
func draggableViewMethod() {
}
@mauricerkelly
mauricerkelly / git-branch-alias
Created February 27, 2015 16:05
branch-alias subcommand for git
#!/bin/bash
# git branch-alias
# Version 1.07
# Author: Phil S.
# Creates branch aliases, so that you can refer to a long branch name
# by a convenient short alias. This is just a "do what I mean" wrapper
# around git symbolic-ref, but without the (considerable) risk of
# trashing a branch if you get your arguments wrong
@mauricerkelly
mauricerkelly / git-merge-forward
Last active August 29, 2015 14:19
git-merge-forward: automates some of the merge forward process
#!/usr/bin/env bash
function die() {
echo
echo ">>>> $1"
exit 1
}
if [ $# != 2 ]; then
die "Incorrect number of arguments"
#!/usr/bin/env zsh
for fullfile in $*
do
if [[ -e $fullfile ]]; then
file=${fullfile%.*}
sips --deleteColorManagementProperties \
--matchTo "../ftp-mirror/PearsonScreenCapPrint.icc" \
--setProperty dpiHeight 72.000 \
--setProperty dpiWidth 72.000 \

Keybase proof

I hereby claim:

  • I am mauricerkelly on github.
  • I am mrkelly (https://keybase.io/mrkelly) on keybase.
  • I have a public key whose fingerprint is 0AC7 77F1 5586 FC59 7D92 9141 9F6D 40FC D81C 0568

To claim this, I am signing this object: