Skip to content

Instantly share code, notes, and snippets.

<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
<plist version="1.0">
<dict>
<key>ANSIBlueColor</key>
<data>
YnBsaXN0MDDUAQIDBAUGFRZYJHZlcnNpb25YJG9iamVjdHNZJGFyY2hpdmVyVCR0b3AS
AAGGoKMHCA9VJG51bGzTCQoLDA0OVU5TUkdCXE5TQ29sb3JTcGFjZVYkY2xhc3NPECcw
LjQ5MDE5NjA3ODQgMC41NjQ3MDU4ODI0IDAuNjQzMTM3MjU0OQAQAYAC0hAREhNaJGNs
YXNzbmFtZVgkY2xhc3Nlc1dOU0NvbG9yohIUWE5TT2JqZWN0XxAPTlNLZXllZEFyY2hp
@burnsra
burnsra / proxy.sh
Last active June 16, 2016 13:58
Proxy definition script
#!/bin/sh
proxyDomain="127.0.0.1"
proxyPort="3128"
proxyAuthenticated="off"
proxyEnabled="yes"
if [ "$1" != "" ]; then
proxyDomain=$1
fi
PROMPT=$'%(?.%{$fg[magenta]%}⌘.%{$fg[red]%}⌦) %(?.%{$fg[cyan]%}.%{$fg[red]%})%~%{$reset_color%} %{$(git_prompt_info)%}%{$reset_color%}'
PS2=$' %{$fg[red]%}|>%{$reset_color%} '
ZSH_THEME_GIT_PROMPT_PREFIX="%(?.%{$fg[yellow]%}.%{$fg[red]%})("
ZSH_THEME_GIT_PROMPT_SUFFIX="%{$reset_color%}%(?.%{$fg[yellow]%}.%{$fg[red]%})) "
ZSH_THEME_GIT_PROMPT_DIRTY=" %{$fg[red]%}✗"
ZSH_THEME_GIT_PROMPT_CLEAN=" %(?.%{$fg[green]%}.%{$fg[red]%})✓"
@burnsra
burnsra / gist:7f5d03889aa0896bb1162e8b8d5c989a
Last active March 31, 2016 19:46
Non-blocking NSTimer
var timer: NSTimer?
timer = NSTimer.scheduledTimerWithTimeInterval(5.0, target: self, selector: #selector(self.test(_:)), userInfo: nil, repeats: true)
NSRunLoop.mainRunLoop().addTimer(timer!, forMode: NSRunLoopCommonModes)
@burnsra
burnsra / xcode_rename.sh
Last active March 31, 2016 18:30
Xcode Project Rename
find $(pwd) ! -path . -type d -name "$1*" -print0 | xargs -0 rename -S "$1" "$2"
find $(pwd) ! -path . -type f -name "$1*" -print0 | xargs -0 rename -S "$1" "$2"
ack --literal --files-with-matches "$1" --print0 | xargs -0 sed -i "" "s/$1/$2/g"
@burnsra
burnsra / pre-commit
Created March 3, 2016 23:40
Reserved word pre-commit hook
# Instructions:
# Put this file into your ~/.git-templates/hooks folder and set as executable (chmod +x pre-commit)
# If you want to skip the hook just add --no-verify as follows: git commit --no-verify
# ---------------------------------------------
#!/bin/sh
RESERVED_LIST="alert(\|console.log(\|USERNAME"
@burnsra
burnsra / LoginHelper.swift
Created February 14, 2016 15:20
A helper to add an application to a users login items
//
// LoginHelper.swift
// SquidBar
//
// Created by Robert Burns on 2/11/16.
// Copyright © 2016 Robert Burns. All rights reserved.
//
import Foundation
Devin's Story
I guess the best place to start is at the beginning. When you’re expecting a child I guess everyone hopes for a routine "normal" delivery.
And so begins Devin's journey...
Devin's difficulties started with an unforeseen trauma at birth which led to developmental delays for all his bench marks. It seems now that all of Devins problems are not linked to this tragic event. He was late to turn over, crawl, walk and talk but otherwise was a happy and generally healthy baby. He was diagnosed with low muscle tone and attended therapies from 9 months on and continued to develop at his own pace. Devin's pace.
Once he was able to communicate he would complain of headaches that were so debilitating that he would cry out in pain, sleep and vomit. The doctors appointments were endless, going from specialist to specialist, with no answers. Devin entered school but experienced many difficulties learning to read, write and understand simple math equations he was far behind developmentally. It became clear D
@burnsra
burnsra / gist:2776144
Created May 23, 2012 16:10
Crespo4G Local Manifest Entries
<project name="koush/proprietary_vendor_akm" path="vendor/akm" remote="github" revision="ics" />
<project name="koush/proprietary_vendor_broadcom" path="vendor/broadcom" remote="github" revision="ics" />
<project name="koush/proprietary_vendor_imgtec" path="vendor/imgtec" remote="github" revision="ics" />
<project name="koush/proprietary_vendor_nxp" path="vendor/nxp" remote="github" revision="ics" />
<project name="koush/proprietary_vendor_samsung" path="vendor/samsung" remote="github" revision="ics" />
@burnsra
burnsra / gist:2011760
Created March 10, 2012 15:21
profileExistsByName
@Override
public boolean profileExistsByName(String profileName) throws RemoteException {
Boolean nameExists = false;
for (Map.Entry<String, UUID> entry : mProfileNames.entrySet())
{
if (entry.getKey().equalsIgnoreCase(profileName)) {
nameExists = true;
break;
}
}