Skip to content

Instantly share code, notes, and snippets.

Avatar

Spencer Owen spuder

View GitHub Profile
View Removed-obsolete-evolutionary-code--Updated-comments-Still-has-issue-with-set1307--.patch
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(-)
View Removed-obsolete-evolutionary-code--Updated-comments-Still-has-issue-with-set1307--.patch
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 Apr 27, 2013
Why wont Alfred accept this xml?
View notWorking
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']
View gist:5988534
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
View gist:6033006
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)
View install.sh
#!/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 Sep 28, 2013
A diff between the gitlab 6-0 init script and the gitlab 6-1 init script
View diff-gitlab-init-scripts
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
View gist:7060928
#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 Dec 26, 2015
gitlab ldap config
View gist:7092511
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 Dec 29, 2015
Purposed answers to the hardest episode ever http://youtu.be/DoRB7FL02t4
View math.txt
[ 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