Skip to content

Instantly share code, notes, and snippets.

View rickychilcott's full-sized avatar

Ricky Chilcott rickychilcott

View GitHub Profile
@rickychilcott
rickychilcott / pro_tools_11_munki.sh
Last active October 26, 2021 23:45
My (working) attempt to get PT 11 to install successfully
#!/bin/bash
# Copy the com.avid.bsd.DigiShoeTool Helper Tool
PHT_DIGISHOETOOL="/Library/PrivilegedHelperTools/com.avid.bsd.DigiShoeTool"
/bin/cp "/Applications/Pro Tools.app/Contents/Library/LaunchServices/com.avid.bsd.DigiShoeTool" $PHT_DIGISHOETOOL
/usr/sbin/chown root:wheel $PHT_DIGISHOETOOL
/bin/chmod 544 $PHT_DIGISHOETOOL
# Create the Launch Deamon Plist for com.avid.bsd.DigiShoeTool
rake db:create
(in /Users/rickychilcott/github/cclr)
DEPRECATION WARNING: Rake tasks in vendor/plugins/annotate_models/tasks are deprecated. Use lib/tasks instead. (called from /Users/rickychilcott/.rbenv/versions/1.8.7-p371/lib/ruby/gems/1.8/gems/rails-2.3.11/lib/tasks/rails.rb:10)
@rickychilcott
rickychilcott / gist:6104913
Last active May 5, 2017 00:15
Remove outdated users
#!/bin/bash
# List of users to keep
KEEP=$( cat <<EOL
/Users/admin
/Users/administrator
/Users/sccadmin
/Users/scclab
/Users/Shared
/Users/Search
echo 'export PATH="$HOME/.rbenv/bin:$PATH"' >> ~/.bash_profile
echo 'eval "$(rbenv init -)"' >> ~/.bash_profile
exec $SHELL -l
{"config":{"async":true,"later":true,"processData":false,"dataType":"text","crossDomain":true,"cache":false,"action":"account/social/login/status/997830b0e52be74a294a82379b698368","options":{"appname":"Ticket Diary","appversion":"0.1","appid":"5644b378a6284a1da325cdb5dde04a26","apikey":"9c677ff434f6467989a0d3591a191ade","applevel":true,"savelogin":false,"user_token":"4aafdd67a611144b33c908999deace18"},"headers":{"X-CloudMine-ApiKey":"9c677ff434f6467989a0d3591a191ade","X-CloudMine-Agent":"JS/0.9.6 Ticket_Diary/0.1","X-CloudMine-UT":"4aafdd67a611144b33c908999deace18","content-type":"application/json"},"contentType":"application/json"},"_events":{},"data":null,"hasErrors":false,"requestHeaders":{"X-CloudMine-ApiKey":"9c677ff434f6467989a0d3591a191ade","X-CloudMine-Agent":"JS/0.9.6 Ticket_Diary/0.1","X-CloudMine-UT":"4aafdd67a611144b33c908999deace18","content-type":"application/json"},"responseHeaders":{},"responseText":null,"status":null,"type":"GET","url":"https://api.cloudmine.me/v1/app/5644b378a6284a1da325cdb5
@rickychilcott
rickychilcott / gist:4664853
Created January 29, 2013 14:57
Singly and CloudMine -- Get user id
var ws = new cloudmine.WebService({
appid: 'appid',
apikey: 'apikey'
});
//Authenticate user via twitter
ws.loginSocial('twitter').on('success', function(data, response) {
// Now you can save the session token using localStorage
localStorage.setItem('cm_session', response.session_token);
console.log(data.profile.__id__); // correctly returns userid
@rickychilcott
rickychilcott / gist:4547214
Last active December 11, 2015 04:48
Login to a Mac via ARD
username=YYYYYYYY
password=XXXXXXXX
#Sanity checks
if [ $username = YYYYYYYY ]; then
echo "You need to set the username"
exit 1
fi
if [ $password = XXXXXXXX ]; then
@rickychilcott
rickychilcott / gist:4538586
Last active December 11, 2015 03:29
GRID Lab MunkiServer Cheat Sheet
# Verbose check of Munki to see what needs to be installed. This will not actually install, but will ask what needs to be installed.
sudo /usr/local/munki/managedsoftwareupdate auto -vvv
# Install the updates that have been pulled down and cached locally managedsoftwareupdate auto must be run first
sudo /usr/local/munki/managedsoftwareupdate --install_only
# List all package receipts installed. This will provide a list of receipt package ids
pkgutil --pkgs
# List all package receipts installed. This will provide a list of receipt package ids matching the word something (case sensitive)
@rickychilcott
rickychilcott / gist:3865213
Created October 10, 2012 12:10
Webserver Ping - Wireless
dhcp-056-109:~ $ ping sea.edu
PING sea.edu (74.54.29.37): 56 data bytes
64 bytes from 74.54.29.37: icmp_seq=0 ttl=49 time=66.811 ms
64 bytes from 74.54.29.37: icmp_seq=1 ttl=49 time=58.854 ms
64 bytes from 74.54.29.37: icmp_seq=2 ttl=49 time=48.258 ms
64 bytes from 74.54.29.37: icmp_seq=3 ttl=49 time=58.843 ms
64 bytes from 74.54.29.37: icmp_seq=4 ttl=49 time=58.839 ms
^C
--- sea.edu ping statistics ---
5 packets transmitted, 5 packets received, 0.0% packet loss
@rickychilcott
rickychilcott / gist:3865196
Created October 10, 2012 12:06
Webserver Ping - Wired
dhcp-056-050:~ $ ping sea.edu
PING sea.edu (74.54.29.37): 56 data bytes
64 bytes from 74.54.29.37: icmp_seq=0 ttl=50 time=45.667 ms
64 bytes from 74.54.29.37: icmp_seq=1 ttl=50 time=45.509 ms
64 bytes from 74.54.29.37: icmp_seq=2 ttl=50 time=45.656 ms
64 bytes from 74.54.29.37: icmp_seq=3 ttl=50 time=45.643 ms
64 bytes from 74.54.29.37: icmp_seq=4 ttl=50 time=46.039 ms
^C
--- sea.edu ping statistics ---
5 packets transmitted, 5 packets received, 0.0% packet loss