Skip to content

Instantly share code, notes, and snippets.

View groob's full-sized avatar
🌻

Victor Vrantchan groob

🌻
View GitHub Profile
@groob
groob / makefile
Created April 10, 2014 15:02
setupassistant makefile
USE_PKGBUILD=1
include /usr/local/share/luggage/luggage.make
TITLE=DisableSetupAssistant
PACKAGE_VERSION=1.0.1
REVERSE_DOMAIN=edu.whitby
PAYLOAD=prep-var-db-AppleSetupDone \
prep-Library-SetupRegComplete
# apply Lion-specific perms fix:
node 'default' {
package {"munkitools":
ensure => installed,
provider => "pkgdmg",
source => "/Users/vagrant/Desktop/VMware Shared Folders/-vagrant/munkitools2-latest.pkg",
}
}
@groob
groob / BoxEdit.download.recipe
Last active August 29, 2015 14:04
boxedit pkginfo
<?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>Description</key>
<string>Downloads the latest version of Box Edit.</string>
<key>Identifier</key>
<string>com.github.hansen-m.download.boxedit</string>
<key>Input</key>
<dict>
import re
import urllib2
import urllib
import urlparse
index_url = 'https://www.makerbot.com/desktop'
f = urllib2.urlopen(index_url)
html = f.read()
f.close()
class bootstrap::defaultpdf {
exec {'set_pdf_reader':
command => "/opt/boxen/homebrew/bin/duti -s com.apple.Preview .pdf all",
unless => "/opt/boxen/homebrew/bin/duti -x pdf | grep Preview",
user => $mac_current_user,
}
}
---
module::class::var1: 'use_this_value'
module::class::var1: 'use_this_value'
#!/usr/bin/env ruby
#
# File: Warranty.rb
#
# Decription: Contact's Apple's selfserve servers to capture warranty
# information about your product. Accepts arguments of
# machine serial numbers.
#
# Author: Gary Larizza
# Last Modified: 8/13/2012
core@coreos1 ~ $ fleetctl list-units
UNIT STATE LOAD ACTIVE SUB DESC MACHINE
margarita.service launched loaded active running Nginx Container that serves the files from the data container. 7b05bb54.../192.168.180.255
munki-data.service launched loaded inactive dead Data container that mounts the munki repo volume. 7b05bb54.../192.168.180.255
munki.service launched loaded active running Nginx Container that serves the files from the data container. 7b05bb54.../192.168.180.255
munkiwebadmin-pgdata.service launched loaded active running Data container for postgres-munkiwebadmin 7b05bb54.../192.168.180.255
munkiwebadmin.service launched loaded failed failed MunkiWebAdmin container 7b05bb54.../192.168.180.255
postgres-munkiwebadmin.service launched loaded active running PostgreSQL-MunkiWebAdmin 7b05bb54.../192.168.180.255
reposado-data.service launched loaded inactive dead Data container for reposado. 7b05bb54.../192.168.180.255
reposado.service launched loaded active runni
[Unit]
Description=Nginx Container that serves the files from the data container.
After=munki-data.service
Requires=docker.service
[Service]
ExecStartPre=/usr/bin/docker kill munki-%i
ExecStartPre=/usr/bin/docker rm -f munki-%i
ExecStartPre=/usr/bin/docker pull macadmins/munki
ExecStart=/usr/bin/docker run --rm --name munki-%i --volumes-from munki-data -p 8000:80 macadmins/munki
@groob
groob / gist:8b8213741c2d8fe69d9e
Last active August 29, 2015 14:05
docker set django superuser password.
/usr/bin/docker run -i -t --rm --link postgres-munkiwebadmin:db \
-w /home/app/munkiwebadmin \
-e DB_USER=admin -e DB_PASS=password \
-e DB_NAME=munkiwebadmin \
macadmins/munkiwebadmin python manage.py changepassword admin