Skip to content

Instantly share code, notes, and snippets.

@Ashton-W
Ashton-W / podopen.sh
Created November 7, 2012 09:54
small script to install pods and open the workspace
#!/bin/sh
# Add alias to .bash_profile
# alias podopen="sh ~/podopen.sh"
cd "$(dirname "$(find . -name Podfile)")" && pod install && open *.xcworkspace
@Ashton-W
Ashton-W / RVMSetup.sh
Created November 28, 2012 09:57
Install RVM, Resolve Segfault in OSX ssl
#!/bin/sh
#Install RVM
curl -L https://get.rvm.io | bash -s stable --ruby
#RVM Postsetup
source ~/.rvm/scripts/rvm
#Resolve issue with OSX SSL
rvm pkg install openssl
@Ashton-W
Ashton-W / trello.user.js
Created November 29, 2012 09:48
Trello Style Tweaks
// ==UserScript==
// @name Trello Style Tweaks
// @namespace http://userstyles.org
// @description Personal tweaks for trello.com
// @author lmjabreu
// @homepage trello.com
// @include https://trello.com/*
// @include https://www.trello.com/*
// @run-at document-start
// ==/UserScript==
@Ashton-W
Ashton-W / objc.cfg
Created December 19, 2012 03:35 — forked from cspickert/objc.cfg
#
# uncrustify config file for objective-c and objective-c++
#
indent_with_tabs = 0 # 1=indent to level only, 2=indent with tabs
output_tab_size = 4 # new tab size
indent_columns = output_tab_size
indent_label = 2 # pos: absolute col, neg: relative column
indent_align_assign = FALSE
#
# Uncrustify Configuration File
# File Created With UncrustifyX 0.2 (140)
#
# Alignment
# ---------
## Alignment
@Ashton-W
Ashton-W / reverseproxy.conf
Created April 26, 2013 13:57
Figuring out how to make Apache Reverse Proxy do what I need it to do took longer than a couple minutes, leaving this here for posterity. Reverse Proxy for servers running on other ports. Shows use of subdirectory in ProxyPassReverse declaration.
<Location /sabnzb>
order deny,allow
deny from all
allow from all
ProxyPass http://localhost:8080/sabnzbd
ProxyPassReverse http://localhost:8080/sabnzbd
</Location>
<Location /couchpotato>
#appledoc Xcode script
company="Company";
companyID="au.com.Company";
companyURL="http://www.google.com";
target="iphoneos";
#target="macosx";
outputPath="Documentation";
ignore="Pods"
#!/usr/bin/osascript
-- Open Xcode Organizer
-- To use, make sure "Enable access for assistive devices" is enabled in the Universal Access pref pane
tell application "System Events"
tell process "Xcode"
-- Activate Xcode if necessary
set frontmost to true
@Ashton-W
Ashton-W / gfycat.js
Last active December 28, 2015 12:19
gfycat.com bookmarklet for Mobile Safari
javascript:location.href='http://gfycat.com/fetch/'+window.location.href
@Ashton-W
Ashton-W / Makefile
Created March 13, 2014 04:27
Alcatraz Makefile with check for xcpretty install
ARCHIVE = "Alcatraz.tar.gz"
BUNDLE_NAME = "Alcatraz.xcplugin"
VERSION_LOCATION = "Alcatraz/ATZVersion.h"
INSTALL_PATH = ~/Library/Application\ Support/Developer/Shared/Xcode/Plug-ins/${BUNDLE_NAME}/
DEFAULT_BUILD_ARGS = -workspace TestProject/TestProject.xcworkspace -scheme TestProject
XCODEBUILD = xcodebuild $(DEFAULT_BUILD_ARGS)
VERSION = $(shell grep 'ATZ_VERSION' Alcatraz/ATZVersion.h | cut -d " " -f 3 | tr -d '"')
XCPRETTY_INSTALLED = $(shell which xcpretty)
ifneq ($(strip $(XCPRETTY_INSTALLED)),)
$(info Using xcpretty)