Skip to content

Instantly share code, notes, and snippets.

View packetpilot's full-sized avatar

dc packetpilot

  • nowhere, VA via Mountain View/NYC/Bangkok
  • 14:04 (UTC -04:00)
View GitHub Profile
@packetpilot
packetpilot / pubess
Created August 8, 2019 19:57
pubkey external sync script
#!/bin/bash
#######################################
# pubess: PUBkey External Sync Script #
#######################################
## ships "with the safety on" [L{40,42}]
# !! be sure to set your username here !!
# if you don't, the author considers it an invitation to visit.
@packetpilot
packetpilot / Search for service account identifier across all GCP projects
Created August 3, 2018 01:44
Search for service account identifier across all GCP projects
# this slow-and-dirty one-liner has been split for readability
for p in $(gcloud projects list | cut -d ' ' -f 1 | grep -v PROJECT_ID); do \
gcloud config set project "${p}" && \
echo "${p}:" && \
gcloud iam service-accounts list \
| grep '12345678901'; \
done
@packetpilot
packetpilot / [bash, not zsh] Convert an ALL CAPS list (or csv etc) to Just First Letter Capitalized
Last active August 2, 2018 18:44
[bash] Convert an ALL CAPS list (or csv etc) to Just First Letter Capitalized
bash-4.4$ cat CAPSTITLES
SR IMPORTANT PERSON
JR SOMETHING OTHERTHING
DIR JANITORIAL
HEAD OF ALL NECKS
PLEB
SEÑOR DIVERSITY ADVOCATE
SR. PERIOD TESTER
LEAD, PUNCTUATION TESTERS
WOULD,THIS,WORK,ON,A,CSV?
@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
@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 / 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 / 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 / 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 / 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 / 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>