Skip to content

Instantly share code, notes, and snippets.

View packetpilot's full-sized avatar

dc packetpilot

  • nowhere, VA via Mountain View/NYC/Bangkok
  • 09:24 (UTC -04:00)
View GitHub Profile
@packetpilot
packetpilot / printers.catalog
Created May 3, 2012 09:53
InstaDMG Printers Catalog
# Printer Drivers -- Uncomment what you'd like to include, call with "include-file:"
# Last mod 26-April-12
Apple Updates:
# BrotherPrinterDrivers2.8.1 http://support.apple.com/downloads/DL894/en_US/BrotherPrinterDrivers2.8.1.dmg sha1:b05acdafcdd45ea4af3222afe345e5b6afa2dcfa
# CanonPrinterDrivers2.8 http://support.apple.com/downloads/DL899/en_US/CanonPrinterDrivers2.8.dmg sha1:1b38e6f495e620a385fb741884ff5389637d43ac
# EpsonDrivers2.10 http://support.apple.com/downloads/DL1398/en_US/EpsonDrivers2.10.dmg sha1:30444f3faa20d90b80daf4606a9536544ea9b870
# FujiXeroxPrinterDrivers2.2 http://support.apple.com/downloads/DL904/en_US/FujiXeroxPrinterDrivers2.2.dmg sha1:7248823a2361628a3641e12f2be0342689d1abc6
# GestetnerPrinterDrivers2.2 http://support.apple.com/downloads/DL909/en_US/GestetnerPrinterDrivers2.2.dmg sha1:9c7a7e748cdfcab33e5846e6d00b5ade2c8a5a07
# GutenprintPrinterDrivers2.0 http://support.apple.com/downloads/DL911/en_US/GutenprintPrinterDrivers2.0.dmg sha1:c5241581045b7dbc51e13374ad0e35c7e4d2dacb
@packetpilot
packetpilot / Office2011-safepatch-postflight.sh
Created May 21, 2012 20:16
(flawed) SP2 full installer + 14.2.2 update postflight
#!/bin/sh
# SP2 Corporate Full Installer (name unaltered from source iso in this path example)
installer -dumplog -verbose -pkg "$1/Contents/Resources/Office Installer.pkg" -target / -applyChoiceChangesXML "$1/Contents/Resources/noquit.xml"
# Bitterly patch the gaping maw
chown -R root:admin /Applications/Microsoft\ Office\ 2011
chmod -R o-w /Applications/Microsoft\ Office\ 2011
# 14.2.2 update (name unaltered from source dmg in this path example)
@packetpilot
packetpilot / forkhandle.postflight.sh
Created September 19, 2012 09:03
Bundling OS-dependent packages within a unifying OS-agnostic flat pkg
#!/bin/bash
# dc, cops, ooyala
# postflight for bothlions cltools
# 19 Sept 2012
# socialized as a template for OS-agnostic forked packages for leaner package management
# (YMMV depending on how you view package management!)
# postflight intended to install command-line tools across Lion and Mountain Lion
@packetpilot
packetpilot / GTS-DCT.tal
Created March 18, 2017 16:41
RevEng by PacketPilot GTS DCT Flash TAL Example
<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
<tal xmlns="http://bmw.com/2005/psdz.data.tal" schemaVersion="5.0.0" refSchemaFile="tal.xsd" status="Executable">
<ExecProperties supportsParallelMostFlash="false"/>
<talLine diagAddress="18" baseVariant="EGS4" status="Executable" id="tl_1">
<blFlash status="Executable">
<blFlashTA status="Executable">
<sgbmid>
<processClass>BTLD</processClass>
<id>00001F6C</id>
<mainVersion>SOMETHING</mainVersion>
@packetpilot
packetpilot / CorpOutageAlert.txt
Created July 28, 2017 02:28
CorpIT Scheduled Outage Alert Template
----subj----
Scheduled Outage Alert: $thing, %a %e-%b %H:%M to %H:%M %Z
----body----
Start Time:
%a %e-%b %H:%M %Z
Expected End Time:
%a %e-%b %H:%M %Z
Services Impacted:
@packetpilot
packetpilot / GitHub.md
Created August 3, 2017 19:06
Employer Requiring Full Names in GitHub

On Employer Requiring Employees' Full Legal Names in GitHub

Let's open with a vignette.

Imagine a company offers a parking lot to all its employees, but in order for employees to use this parking lot, they must affix a large vinyl graphic with their full legal name on the rear window of the car, on the sides of the car, and on the hood of the car.

@packetpilot
packetpilot / changes for gitlab.rb
Created August 11, 2017 20:32
Omnibus GitLab CE on a Weak Instance
################################################################################
## Omnibus GitLab CE on Tiny Instance (1vCPU, 1GB RAM)
## - These changes (for gitlab.rb) allow CE to run reliably below min sys reqs.
## - Total memory should be >= 2GB, so a ~1GB swapfile is recommended.
## - These changes do NOT provide smooth operation/UX, so use wisely(/alone).
################################################################################
################################################################################
## GitLab Unicorn
##! Tweak unicorn settings.
@packetpilot
packetpilot / Makefile
Last active September 20, 2017 18:57
Patch iTerm2 via luggage-based pkg, or with just the postinstall
# iTerm: a simple payload-free iTerm installer
#
# Author: @packetpilot
# Created: 2017-09-19
# Last Modified: 2017-09-19
#
include /usr/local/share/luggage/luggage.make
TITLE=iTerm
@packetpilot
packetpilot / gnome_chromote.sh
Last active May 25, 2021 00:29
headless ubuntu|debian + gnome, accessible via Chrome Remote Desktop
#!/bin/bash
# gnome and chrome and chrome remote desktop access
# chrome itself is not required, but is included here.
# other desktops can be used w/ light script changes.
# tested on:
# - ubuntu xenial GCE instance
# - debian stretch crostini container on a Pixelbook (eve)
# running ChromeOS v67.0.3383.0 (dev channel)
# _without_ being in developer mode
@packetpilot
packetpilot / Dockerfile
Created April 28, 2018 05:39
Jira on Debian in Docker
FROM debian:latest
# This'll put Jira Server on top of debian
# by way of the the binary installer.
#
# Total size should be ~525.8MB
#
# based loosely on @kelseyhightower's
# CentOS+tarball variant: goo.gl/xPgmq3