Skip to content

Instantly share code, notes, and snippets.

View phumpal's full-sized avatar
🌮

Patrick Humpal phumpal

🌮
  • Northern California
View GitHub Profile
@phumpal
phumpal / README.md
Last active March 4, 2025 05:09
Solutions to hair pulling events

Environment variables

Export key value env vars file not in profile or environment paths

export $(grep -v '^#' ./env/active/.env.dev1 | xargs)

Undo the export of key value pairs

@phumpal
phumpal / README.md
Created January 16, 2025 21:00
Uninstall Microsoft Teams Audio Driver from macOS

Option 1

  1. Cmd + Shift + U
  2. Select "Audio MIDI Setup"
  3. Select "Microsoft Teams Audio Device"
  4. Select "-"

Option 2

  1. Open a terminal
@phumpal
phumpal / disk_perf_profiles.md
Created December 18, 2024 06:27
Major cloud providers disk performance profiles
Platform Disk performance profiles
AWS gp2, gp3, io1, io2, etc (perf matrix)
Azure Standard HDD, Standard SSD, Premium SSD, Ultra SSD
GCP Standard Persistent Disks, Balanced Persistent Disks, SSD Persistent Disks
Hyper-V Fixed and Dynamic VHDX, backend storage (local or shared)
Openstack Cinder (Ceph, LVM, etc)
VMware Depend on storage (SAN, NAS, vSAN, etc)

Manager On-Call Duties: Ensuring Clarity in Ownership

  1. Engineer Handoff Check

    • Confirm if engineers leaving rotation will continue owning escalations.
      • If not, remove assignment:
        • "Waiting for response": Leave assignment blank.
        • "Investigating": Assign the new rotation.
  2. Issues in "Waiting for response"

  • > 2 weeks: Close the issue.
@phumpal
phumpal / azure.md
Created December 21, 2023 22:43
Azure Region Info
DisplayName               Name                 RegionalDisplayName
------------------------  -------------------  -------------------------------------
East US                   eastus               (US) East US
East US 2                 eastus2              (US) East US 2
South Central US          southcentralus       (US) South Central US
West US 2                 westus2              (US) West US 2
West US 3                 westus3              (US) West US 3
Australia East            australiaeast        (Asia Pacific) Australia East
Southeast Asia            southeastasia        (Asia Pacific) Southeast Asia
@phumpal
phumpal / sources.list
Created March 20, 2023 19:15
Precise 12.04 - /etc/apt/sources.list
# See http://help.ubuntu.com/community/UpgradeNotes for how to upgrade to
# newer versions of the distribution.
deb http://old-releases.ubuntu.com/ubuntu/ precise main restricted
deb-src http://old-releases.ubuntu.com/ubuntu/ precise main restricted
## Major bug fix updates produced after the final release of the
## distribution.
deb http://old-releases.ubuntu.com/ubuntu/ precise-updates main restricted
deb-src http://old-releases.ubuntu.com/ubuntu/ precise-updates main restricted
@phumpal
phumpal / README.md
Created October 4, 2022 20:48
unable to initialize frontend: Readline during Docker image build

When attempting to install packages after an apt-get update on >= Ubuntu 20.04 the previous work around of DEBIAN_FRONTEND=noninteractive no longer seems to work (think building Docker images)

debconf: unable to initialize frontend: Dialog
debconf: (No usable dialog-like program is installed, so the dialog based frontend cannot be used. at /usr/share/perl5/Debconf/FrontEnd/Dialog.pm line 76.)
debconf: falling back to frontend: Readline
debconf: unable to initialize frontend: Readline
debconf: (Can't locate Term/ReadLine.pm in @INC (you may need to install the Term::ReadLine module) (@INC contains: /etc/perl /usr/local/lib/aarch64-linux-gnu/perl/5.30.0 /usr/local/share/perl/5.30.0 /usr/lib/aarch64-linux-gnu/perl5/5.30 /usr/share/perl5 /usr/lib/aarch64-linux-gnu/perl/5.30 /usr/share/perl/5.30 /usr/local/lib/site_perl /usr/lib/aarch64-linux-gnu/perl-base) at /usr/share/perl5/Debconf/FrontEnd/Readline.pm line 7.)
debconf: falling back to frontend: Teletype
@phumpal
phumpal / path_gitlab_upgrade.sh
Last active September 10, 2021 02:28
When gitlab apt repo seems borked. Then proceed on your way with upgrade shenanigans
#!/bin/sh
# https://docs.gitlab.com/ee/update/index.html#upgrade-paths
curl https://packages.gitlab.com/install/repositories/gitlab/gitlab-ce/script.deb.sh | sudo bash
@phumpal
phumpal / glyphify.json
Created January 8, 2021 20:49
Humanized mutator output for not-so-boring sensu-core alerts
{
"mutators": {
"glyphify": {
"command": "/etc/sensu/mutators/glyphify.rb"
}
}
}
@phumpal
phumpal / Gemfile
Last active June 23, 2020 03:28
A simple Sinatara app to proxy Airbrake webhooks to Google Hangout Chats
source 'https://rubygems.org'
gem 'hangouts-chat'
gem 'sinatra'