Skip to content

Instantly share code, notes, and snippets.

View foozmeat's full-sized avatar

James Moore foozmeat

View GitHub Profile
@foozmeat
foozmeat / softwareupdate.py
Last active October 5, 2016 21:04
Intelligently manage software updates on Mac OS X
#!/usr/bin/env python
# -*- coding: utf-8 -*-
"""
Created on 9-9-2015 by James Moore (@foozmeat)
Install software updates automatically and intelligently.
If you improve this script please send me patches.
@foozmeat
foozmeat / create_keychain.sh
Last active June 29, 2017 20:28
Build a macos keychain from identities stored in a .p12 file
#!/bin/bash
# some keychain stuff borrowed from
# https://apple.stackexchange.com/questions/287610/keychains-created-by-an-ssh-connection-are-locked-and-can-not-be-used
# export identities with
# security export -k ${KEYCHAIN_NAME} -t identities -o identities.p12 -P ${P12_PASSWORD} -f pkcs12
YELLOW=`tput setaf 3`
RESET=`tput sgr0`