Skip to content

Instantly share code, notes, and snippets.

View digitalpardoe's full-sized avatar
💭
¯\_(ツ)_/¯

Alex Pardoe digitalpardoe

💭
¯\_(ツ)_/¯
View GitHub Profile
@digitalpardoe
digitalpardoe / the_arborist.rb
Last active January 9, 2020 09:30 — forked from kevinhughes27/the_arborist.rb
Find Un-Deleted Branches from Closed PRs and Stale Branches
#!/usr/bin/env ruby
require 'octokit'
require 'highline/import'
require 'colorize'
require 'byebug'
require 'csv'
require 'active_support/time'
token = ask("Enter your Github personal access token: ") { |q| q.echo = "*" }

Keybase proof

I hereby claim:

  • I am digitalpardoe on github.
  • I am digitalpardoe (https://keybase.io/digitalpardoe) on keybase.
  • I have a public key ASCzc0l_2tfo_K7G8aFlRHsNRR5jOhl6xxB5pkLRDLn_Vgo

To claim this, I am signing this object:

chown $(stat -f%u:%g "$SRCDIR") "$DSTDIR"
chmod $(stat -f%Mp%Lp "$SRCDIR") "$DSTDIR"
(ls -lde "$SRCDIR" | tail +2 | sed 's/^ [0-9]*: //'; echo) | chmod -E "$DSTDIR"
if true {
notify :method "mailto" :options ["trigger@recipe.ifttt.com"] :message "/ $subject$ /";
}
sudo usermod -aG git www-data
git clone git://github.com/sivel/speedtest-cli.git speedtest-cli
@digitalpardoe
digitalpardoe / build_number.sh
Last active October 4, 2015 13:28
Automatic Build Number In Xcode
#!/bin/bash
#
# Automatically sets the build number for a target in Xcode based
# on either the Subversion revision or Git hash depending on the
# version control system being used
#
# Simply add this script as a 'Run Script' build phase for any
# target in your project
#
@digitalpardoe
digitalpardoe / spidermonkey-1.7.0-osx.diff
Created December 28, 2011 23:08
Patches SpiderMonkey 1.7.0 to ensure compilation on OS X & to enable 'make install'.
--- src/jsprf.c.orig 2009-07-26 12:32:01.000000000 -0700
+++ src/jsprf.c 2009-07-26 12:33:12.000000000 -0700
@@ -58,6 +58,8 @@
*/
#ifdef HAVE_VA_COPY
#define VARARGS_ASSIGN(foo, bar) VA_COPY(foo,bar)
+#elif defined(va_copy)
+#define VARARGS_ASSIGN(foo, bar) va_copy(foo,bar)
#elif defined(HAVE_VA_LIST_AS_ARRAY)
#define VARARGS_ASSIGN(foo, bar) foo[0] = bar[0]
@digitalpardoe
digitalpardoe / Merge All Windows.scpt
Created July 16, 2011 21:09
'Merge All Windows' AppleScript
on gui_scripting_status()
tell application "System Events"
set ui_enabled to UI elements enabled
end tell
if ui_enabled is false then
tell application "System Preferences"
activate
set current pane to pane id "com.apple.preference.universalaccess"
display dialog "The GUI scripting architecture of Mac OS X is currently disabled." & return & return & "To activate GUI Scripting select the checkbox \"Enable access for assistive devices\" in the Universal Access preference pane." with icon 1 buttons {"Okay"} default button 1
end tell
@digitalpardoe
digitalpardoe / alternative.rb
Created July 16, 2011 21:06
Clearing Out Old Sessions
Session.destroy_all("created_at" < (Time.now - 1.day))