Skip to content

Instantly share code, notes, and snippets.

View skyzyx's full-sized avatar
👾
OOICU812

Ryan Parman skyzyx

👾
OOICU812
View GitHub Profile

I'm OK; The Bull Is Dead

By Gopal K. Kapur
Published at Computerworld • JUN 21, 2004 6:00 AM PST

Early in my career, when I worked as an engineer, my boss had a process by which the engineering team was expected to report project status. He insisted that we use the following steps, in the specified order:

  1. Punch line: The facts; no adjectives, adverbs or modifiers. "Milestone 4 wasn't hit on time, and we didn't start Task 8 as planned." Or, "Received charter approval as planned."

  2. Current status: How the punch-line statement affects the project. "Because of the missed milestone, the critical path has been delayed five days."

@skyzyx
skyzyx / GoSublime.sublime-settings
Last active December 27, 2019 10:04
GoSublime preferences
{
"margo": {},
// The maximum amount of memory(MiB) that MarGo is allowed to use
"margo_oom": 1000,
// you may set specific environment variables here
// e.g "env": { "PATH": "$HOME/go/bin:$PATH" }
// in values, $PATH and ${PATH} are replaced with
// the corresponding environment(PATH) variable, if it exists.
@skyzyx
skyzyx / irrationality.md
Last active July 30, 2020 20:21
Dumb, small things that irritate me for completely irrational reasons.
@skyzyx
skyzyx / homebrew-gnubin.md
Last active December 9, 2025 12:06
Using GNU command line tools in macOS instead of FreeBSD tools

macOS is a Unix, and not built on Linux.

I think most of us realize that macOS isn't a Linux OS, but what that also means is that instead of shipping with the GNU flavor of command line tools, it ships with the FreeBSD flavor. As such, writing shell scripts which can work across both platforms can sometimes be challenging.

Homebrew

Homebrew can be used to install the GNU versions of tools onto your Mac, but they are all prefixed with "g" by default.

All commands have been installed with the prefix "g". If you need to use these commands with their normal names, you can add a "gnubin" directory to your PATH from your bashrc.

@skyzyx
skyzyx / rca.md
Last active October 23, 2025 07:20
Internal (not customer-facing) Root Cause Analysis (aka Post-Mortem) template

[20XX-XX-XX] Service Name downtime

  • This is a blameless Post-mortem.
  • We will not focus on the past events as they pertain to "could've", "should've", etc.
  • All follow up action items will be assigned to a team/individual before the end of the meeting.
  • If the item is not going to be top priority leaving the meeting, don't make it a follow up item.

| | |

@skyzyx
skyzyx / README.md
Last active May 12, 2022 20:24
SPF records

Instructions

Expectations

  • Verbalize your thoughts as you solve the problem. How you arrived at the solution is just as important as the solution itself.

  • Ask questions if you're not sure about something, rather than guessing.

  • Read the instructions, which consist of this entire page.

@skyzyx
skyzyx / gist:9fb1a4d2cd1d2537f414aa709d04e279
Created October 14, 2018 08:10
Downsample to AAC 2-channel audio
ffmpeg -i $INPUT -c:v copy -af "pan=stereo|FL < 1.0*FL + 0.707*FC + 0.707*BL|FR < 1.0*FR + 0.707*FC + 0.707*BR" -vol 512 -movflags +faststart $OUTPUT
@skyzyx
skyzyx / ecs-host-status.sh
Created September 15, 2018 02:52
Check the launch status of the underlying EC2 instances in an ECS cluster.
##
# Requires:
# * AWS Unified CLI Tools
# * jq
##
cluster_name="name-of-ecs-cluster"
aws ec2 describe-instance-status \
--instance-ids $(
@skyzyx
skyzyx / reflog.sh
Created September 4, 2018 20:09
Prune large, already-deleted files from your Git history.
wget http://repo1.maven.org/maven2/com/madgag/bfg/1.13.0/bfg-1.13.0.jar -O ~/bin/bfg.jar
git clone [email protected]:{org}/{repo}.git
cd {repo}
java -jar ~/bin/bfg.jar --strip-blobs-bigger-than 100k --protect-blobs-from {branch}
git reflog expire --expire=now --all && git gc --prune=now --aggressive
git push --force
@skyzyx
skyzyx / single.html
Last active February 27, 2023 04:21
Hugo Partial for Generating the Table of Contents
...
{{- partial "toc.html" . -}}
...