Skip to content

Instantly share code, notes, and snippets.

@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: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 / ffmpeg_merge.thor
Last active January 28, 2024 16:16
FFMpeg multi video overlay
class Ffmpeg < Thor
package_name "ffmpeg"
desc "install", "install ffmpeg"
def install
`brew install ffmpeg`
end
desc "merge FILE1 FILE2 FILE3 FILE4 OUTPUT", ""
def merge(file_1, file_2, file_3, file_4, output_file)
@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,
➜ 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: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>
@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: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:9209912
Last active May 17, 2016 13:07
ARD Kickstart Resources
# Don't allow observe/control
/System/Library/CoreServices/RemoteManagement/ARDAgent.app/Contents/Resources/kickstart -activate -configure -users mdiaguest -access -on -privs -ControlObserve -ShowObserve -OpenQuitApps -RestartShutDown -SendFiles
/System/Library/CoreServices/RemoteManagement/ARDAgent.app/Contents/Resources/kickstart -restart -agent
# Require permission to observe/control
/System/Library/CoreServices/RemoteManagement/ARDAgent.app/Contents/Resources/kickstart -configure -allowAccessFor -specifiedUsers
/System/Library/CoreServices/RemoteManagement/ARDAgent.app/Contents/Resources/kickstart -activate -configure -access -on -users sccadmin -privs -all
# Allow everything
/System/Library/CoreServices/RemoteManagement/ARDAgent.app/Contents/Resources/kickstart -activate -configure -users sccadmin -access -on -privs -ALL
@rickychilcott
rickychilcott / preflight
Created October 1, 2013 19:51
This preflight script will do two things, 1) Set ClientIdentifer and 2) Block Updates, if applicable
#!/usr/bin/python
#encoding=utf-8
#######################################################################################################
# This preflight script will do two things, 1) Set ClientIdentifer and 2) Block Updates, if applicable
#
# ClientIdenfier is set to mac_address_en0.plist, (eg. ab:ab:ab:ab:ab.plist)
#
# This preflight script will Block Updates during the specified time, as long it is in `auto` mode and
# the current time is int the appropriate range. Set the range, by setting the following keys in