Skip to content

Instantly share code, notes, and snippets.

View spuder's full-sized avatar

Spencer Owen spuder

View GitHub Profile
From 9e1f9863de10adae61fd6db86381858010c2719f Mon Sep 17 00:00:00 2001
From: Spencer Owen <spencer@Spencer-Owens-MacBook-Pro.local>
Date: Tue, 19 Oct 2010 13:21:05 -0600
Subject: [PATCH] Removed obsolete evolutionary code. Updated comments
Still has issue with set1307()
---
TimeSquared.pde | 225 ++++++++++++++++--------------------------------------
1 files changed, 67 insertions(+), 158 deletions(-)
From 9e1f9863de10adae61fd6db86381858010c2719f Mon Sep 17 00:00:00 2001
From: Spencer Owen <spencer@Spencer-Owens-MacBook-Pro.local>
Date: Tue, 19 Oct 2010 13:21:05 -0600
Subject: [PATCH] Removed obsolete evolutionary code. Updated comments
Still has issue with set1307()
---
TimeSquared.pde | 225 ++++++++++++++++--------------------------------------
1 files changed, 67 insertions(+), 158 deletions(-)
@spuder
spuder / notWorking
Created April 27, 2013 17:45
Why wont Alfred accept this xml?
import json
import urllib2
url="http://data.mtgox.com/api/2/BTCUSD/money/ticker"
jsonURL=urllib2.urlopen(url)
jsonObject=json.load(jsonURL)
currentValue = jsonObject['data']['high']['display']
git push origin upstream/4.2.3
Everything up-to-date
spencers-macbook-pro:torque spencerowen$ git branch -r
origin/2.5-dev
origin/2.5.12
origin/4.1-dev
origin/4.1.0
origin/4.1.4
origin/4.1.4-1648
origin/4.1.5
@spuder
spuder / gist:6033006
Created July 18, 2013 20:54
Bria 3 Crash
Process: Bria 3 [603]
Path: /Applications/Bria 3.app/Contents/MacOS/Bria 3
Identifier: com.CounterPath_Corporation.Bria-3
Version: 3.5.3 (70600)
Code Type: X86 (Native)
Parent Process: launchd [258]
User ID: 501
Date/Time: 2013-07-18 14:54:19.225 -0600
OS Version: Mac OS X 10.8.4 (12E55)
@spuder
spuder / install.sh
Last active December 21, 2015 23:39
#!/bin/bash
echo "
alias 'pfind'='ps aux |grep '
alias 'mhome'='cd /opt/moab/currentMoab && ls'
alias 'thome'='cd /var/spool/torque/currentTorque && ls'
" > /etc/profile.d/spencer.sh
@spuder
spuder / diff-gitlab-init-scripts
Created September 28, 2013 21:59
A diff between the gitlab 6-0 init script and the gitlab 6-1 init script
root@gitlab:/home/git/gitlab# diff -bu /tmp/gitlab6-0 /tmp/gitlab6-1 > /tmp/git-ini-diff
root@gitlab:/home/git/gitlab# cat /tmp/git-ini-diff
--- /tmp/gitlab6-0 2013-09-28 21:55:12.927451102 +0000
+++ /tmp/gitlab6-1 2013-09-28 21:54:55.500428709 +0000
@@ -1,7 +1,8 @@
-#! /bin/bash
+#! /bin/sh
# GITLAB
#Here are the nginx settings without ssl
server {
listen *:80 default_server;
server_name <%= @gitlab_domain %>;
server_tokens off;
root /nowhere;
rewrite ^ https://$server_name$request_uri permanent;
#Here are the nginx settings with ssl
server {
@spuder
spuder / gist:7092511
Last active December 26, 2015 04:19
gitlab ldap config
A working configuration pulled from a puppet manifest.
The syntax is in puppet declaration language. Don't copy the syntax, simply refer to the values.
ldap_enabled => true,
ldap_host => 'microsoft.com',
ldap_base => 'DC=com',
ldap_port => '636', #Make sure firewall is open
ldap_uid => 'sAMAccountName', #LDAP = 'uid', AD = 'sAMAccountName'
@spuder
spuder / math.txt
Last active December 29, 2015 14:58
Purposed answers to the hardest episode ever http://youtu.be/DoRB7FL02t4
[ 1 + 1 + 1 ] ! = 6
2 + 2 + 2 = 6
4 + 4 - sqrt(4) = 6
5 / 5 + 5 = 6
6 + 6 - 6 = 6
7 - (7 / 7) = 6
sqrt( 9 ) * sqrt( 9 ) - sqrt ( 9 ) = 6
And the tough ones are
0 : [ Cos ( 0° ) + Cos ( 0°) + Cos ( 0° ) ]! = 6