Skip to content

Instantly share code, notes, and snippets.

View rickychilcott's full-sized avatar

Ricky Chilcott rickychilcott

View GitHub Profile
@rickychilcott
rickychilcott / gist:9210139
Created February 25, 2014 14:44
Duke Libraries Map/Area snippet
<map name="rubenstein_floor3_floorplan_map_image_400_max_width" id="rubenstein_floor3_floorplan_map_image_400_max_width">
<area shape="poly" coords="64,121,84,121,84,155,64,155,64,143,59,143,59,132,64,133" data-roomdesc="Reading Area ($25,000)" data-nameable="yes" title="Reading Area ($25,000)" data-roomgroup="rubenstein_floor3_floorplan-reading__area___25000" target="rubenstein_floor3_floorplan-reading__area___25000" href="/support/naming/opportunities/room/rubenstein_floor3_floorplan-reading__area___25000">
<area shape="poly" coords="64,190,84,190,84,224,64,223,64,212,59,212,59,201,64,201" data-roomdesc="Reading Area ($25,000)" data-nameable="yes" title="Reading Area ($25,000)" data-roomgroup="rubenstein_floor3_floorplan-reading__area___25000" target="rubenstein_floor3_floorplan-reading__area___25000" href="/support/naming/opportunities/room/rubenstein_floor3_floorplan-reading__area___25000">
<area shape="rect" coords="55,88,82,119" data-roomdesc="Collaboration Space ($150,000)" data-nameable="yes" ti
@rickychilcott
rickychilcott / gist:10547002
Created April 12, 2014 17:26
bible.com redirect behavior
➜ ~ curl -I bible.com
HTTP/1.1 302 Found
Server: nginx/1.4.7
Date: Sat, 12 Apr 2014 17:25:32 GMT
Content-Type: text/html; charset=UTF-8
Connection: close
Location: https://www.bible.com/
➜ ~ curl -I www.bible.com
HTTP/1.1 200 OK
@rickychilcott
rickychilcott / gist:10562732
Created April 12, 2014 23:56
camera_raw_8.4.plist
<?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>_metadata</key>
<dict>
<key>created_by</key>
<string>rickychilcott</string>
<key>creation_date</key>
<date>2014-04-12T23:12:32Z</date>
➜ echo "divisors(12345678901234567890123456789012345678901234567890328567890214567895678901123991)" | gp -q
[1, 11, 769, 7187, 8459, 79057, 733511, 5526803, 8068621, 24917887, 60794833, 274096757, 564069959, 5271743557, 6204769549, 19161855103, 57989179127, 179084853869, 210780406133, 1969933392559, 4053970795333, 18277544211257, 44593678748663, 137716252625261, 201052986323827, 1514878778877871, 14055431498456633, 131360710246304059, 154609746483022963, 1444967812709344649, 101016386179407821371, 1111180247973486035081, 1191336160105581445121, 13104697761161395896331, 916137507121192131298049, 8562132982678813846084627, 10077512578333113444278539, 94183462809466952306930897, 873858178135205151392149831, 6584280263680007847639078163, 9612439959487256665313648141, 29685579816524786518821779327, 72427082900480086324029859793, 326541377981772651707039572597, 671996938985972761420563220039, 6280418726257719423055380835397, 7391966328845700375626195420429, 22828210878907560832973948302463, 69084605988834913653609
@rickychilcott
rickychilcott / gist:8599a4cba9a05c9b6a62
Last active August 29, 2015 14:04
Parse REST API post in Javascript
PARSE_APPLICATION_ID = 123456789;
PARSE_REST_API_KEY = 123456789;
var messageText = "canned alert";
var parseMessage = {
"channels": "",
"type": "ios",
"expiration_interval": 86400,
"data": {
"alert": messageText,
@rickychilcott
rickychilcott / gist:0db650353c48224d16b3
Last active August 29, 2015 14:09
Munki2 Error 1001
Managed Software Update Tool
Copyright 2010-2014 The Munki Project
https://github.com/munki/munki
Starting...
Performing preflight tasks...
preflight stdout: Updates will continue at this time.
Checking for available updates...
Getting manifest 00%3A0c%3A29%3A8a%3Afb%3Ab7.plist...
Using manifest: 00:0c:29:8a:fb:b7.plist
@rickychilcott
rickychilcott / gist:5c30b7763378956b856b
Created November 14, 2014 15:38
Munki2 Error 1001 (high verbosity)
Managed Software Update Tool
Copyright 2010-2014 The Munki Project
https://github.com/munki/munki
Starting...
Performing preflight tasks...
preflight stdout: Updates will continue at this time.
No CA cert info provided, so nothing to add to System keychain.
No client cert info provided, so no client keychain will be created.
Checking for available updates...
@rickychilcott
rickychilcott / gist:ba3b68be8d8f57eb3e71
Last active August 29, 2015 14:09
Autoremove Munki2 error
Managed Software Update Tool
Copyright 2010-2014 The Munki Project
https://github.com/munki/munki
Starting...
Performing preflight tasks...
preflight stdout: Updates will continue at this time.
No CA cert info provided, so nothing to add to System keychain.
No client cert info provided, so no client keychain will be created.
Checking for available updates...
require 'net/http'
require 'json'
SERVICE_LOC="http://173.230.142.215:3000"
ENDPOINT="#{SERVICE_LOC}/taste"
uri = URI(ENDPOINT)
taste = {
"beer_id" => 1,
@rickychilcott
rickychilcott / settings.ini
Created May 8, 2015 17:28
Unity 5 Settings
[settings]
ini_url1=http://netstorage.unity3d.com/unity/5a2e8fe35a68/unity-5.0.1f1-osx.ini
ini_url2=http://download.unity3d.com/download_unity/5a2e8fe35a68/unity-5.0.1f1-osx.ini
ini_url3=http://beta.unity3d.com/download/5a2e8fe35a68/unity-5.0.1f1-osx.ini
ini_url4=http://files.unity3d.com/bootstrapper/5a2e8fe35a68/unity-5.0.1f1-osx.ini