Skip to content

Instantly share code, notes, and snippets.

View rodrigozrusso's full-sized avatar

Rodrigo Russo rodrigozrusso

View GitHub Profile
@rodrigozrusso
rodrigozrusso / add_launchd_to_tcc.sh
Created September 26, 2016 15:37 — forked from mtauraso/add_launchd_to_tcc.sh
TCC Database Script
#!/bin/bash
# This will add lauchd to the list of allowed processes for accessibility access
sudo sqlite3 /Library/Application\ Support/com.apple.TCC/TCC.db "INSERT or REPLACE INTO access VALUES('kTCCServiceAccessibility','/sbin/launchd',1,1,1,NULL)"
# This outputs the rows in the TCC database
sudo sqlite3 /Library/Application\ Support/com.apple.TCC/TCC.db 'select * from access'
echo "Restart is required for these changes to take effect"
@rodrigozrusso
rodrigozrusso / 100-mesos.groovy
Created March 9, 2016 13:17 — forked from mrbobbytables/100-mesos.groovy
jenkins mesos dynamic config
#!/usr/bin/env groovy
/*
Fairly self explanatory if you look at the options in the UI.
Main thing to note is the JENKINS_MESOS_SLAVE_<number>. Anything with the same
number will be associated together option wise.
For things like JENKINS_MESOS_SLAVE_<number>_VOL_<number> The trailing
number just signifies more than one.
--Available Environment Variables --