Skip to content

Instantly share code, notes, and snippets.

View joet3ch's full-sized avatar

Joe Nicosia joet3ch

View GitHub Profile
#!/usr/bin/env python
import plistlib
from shutil import copy
import subprocess
import os
from tempfile import gettempdir
import sys
import atexit
BOOKMARKS_PLIST = '~/Library/Safari/Bookmarks.plist'
@joet3ch
joet3ch / gist:6157bb9cac0b33bb9bc5
Last active August 29, 2015 14:04
Maintenance Update - Message Template Example
Maintenance update from *|STATUSPAGENAME|*
Title: *|MAINTENANCETITLE|*
Affected Infrastructure:
Components: *|AFFECTEDCOMPONENTS|*
Locations: *|AFFECTEDCONTAINERS|*
Update: *|UPDATEMESSAGE|*
@joet3ch
joet3ch / gist:bf4d4523c8f22ad50161
Last active August 29, 2015 14:04
Maintenance Reminder - Message Template Example
Scheduled maintenance reminder from *|STATUSPAGENAME|*
Title: *|MAINTENANCETITLE|*
Details: *|MAINTENANCEDETAILS|*
Affected Infrastructure:
Components: *|AFFECTEDCOMPONENTS|*
Locations: *|AFFECTEDCONTAINERS|*
@joet3ch
joet3ch / gist:5a1ac5b895eae5937147
Last active August 29, 2015 14:04
Incident Message - Message Template Example
Status update from *|STATUSPAGENAME|*
Current Status: *|CURRENTSTATUS|*
Started: *|TIMESTART|*
Resolved: *|TIMERESOLVE|*
Affected Infrastructure:
Components: *|AFFECTEDCOMPONENTS|*
Locations: *|AFFECTEDCONTAINERS|*
@joet3ch
joet3ch / keybase.md
Created April 13, 2014 01:00
keybase verify

Keybase proof

I hereby claim:

  • I am joet3ch on github.
  • I am joet3ch (https://keybase.io/joet3ch) on keybase.
  • I have a public key whose fingerprint is F4C6 825F F0EA F9E0 B0F3 023F 88D0 A38F 12D3 6167

To claim this, I am signing this object:

@joet3ch
joet3ch / commands.sh
Last active December 16, 2015 11:19
mongod auto launch on boot
sudo vi /Library/LaunchDaemons/org.mongo.mongod.plist
sudo chown root:wheel /Library/LaunchDaemons/org.mongo.mongod.plist
sudo launchctl load /Library/LaunchDaemons/org.mongo.mongod.plist
sudo launchctl start org.mongo.mongod
@joet3ch
joet3ch / ec2-pub-dns.sh
Created March 22, 2013 20:57
Display ec2 instance public dns fqdn.
#/bin/bash
public_name=$(curl -s http://169.254.169.254/latest/meta-data/public-hostname)
echo $public_name
@joet3ch
joet3ch / screensharing.applescript
Created March 12, 2013 00:13
launch new apple screen sharing connection
do shell script "open vnc://some-box"
@joet3ch
joet3ch / ard-control.applescript
Created March 11, 2013 23:59
Shortcut to control a box via ARD
tell application "Remote Desktop"
activate
set server to first computer of computer list "All Computers" whose Internet address is "10.10.10.10"
control server
end tell
@joet3ch
joet3ch / send_love.applescript
Created March 9, 2013 02:20
Send some iMessage love
tell application "Messages"
set myid to get id of first service
set mygf to buddy "gf@example.com" of service id myid
send "<3" to mygf
end tell