Skip to content

Instantly share code, notes, and snippets.

View phillipleblanc's full-sized avatar
🇰🇷

Phillip LeBlanc phillipleblanc

🇰🇷
View GitHub Profile
@phillipleblanc
phillipleblanc / monitor.sh
Created March 31, 2025 15:57
Monitor memory usage over time
#!/bin/bash
# Configuration
OUTPUT_DIR="/data"
SLEEP_INTERVAL=1 # seconds between measurements
# Check if PID is provided
if [ $# -ne 1 ]; then
echo "Usage: $0 <PID>"
echo "Please provide a process ID to monitor"
#!/usr/bin/env bash
# phillip: This script was modified from its original location at https://aka.ms/InstallAzureCLIDeb
# Modifications can be found inline below with the comment `# phillip:`
#######################################################################################################################
# This script does three fundamental things: #
# 1. Add Microsoft's GPG Key has a trusted source of apt packages. #
# 2. Add Microsoft's repositories as a source for apt packages. #
# 3. Installs the Azure CLI from those repositories. #
@phillipleblanc
phillipleblanc / linux-vms-on-apple-m1-with-networking.md
Created November 30, 2023 04:05 — forked from max-i-mil/linux-vms-on-apple-m1-with-networking.md
Short summary to run Linux VMs on an Apple M1 host using QEMU, libvirt and HVF with a working network setup

Linux Virtual Machines with Private Network on an Apple M1 Device

Background

The aim was to be able to:

  1. Run multiple Linux VMs on an Apple M1/ARM device
  2. Use Apple's HVF for native performance speeds
  3. Configure VMs to allow network access to each other
  4. Configure VMs to allow access to the internet
  5. Not rely on custom modifications of software
@phillipleblanc
phillipleblanc / backup.json
Created December 8, 2022 08:45
Ledger Password Nickname Backup
{
"parsed": [
{
"nickname": "bitwarden",
"charsets": [
"UPPERCASE",
"LOWERCASE",
"NUMBERS"
]
}
set -g prefix C-x
unbind C-b
bind / split-window -h
bind . split-window -v
set -g mode-mouse on
set-window-option -g mode-mouse on
set -g terminal-overrides 'xterm*:smcup@:rmcup@'

Keybase proof

I hereby claim:

  • I am phillipleblanc on github.
  • I am phillipleblanc (https://keybase.io/phillipleblanc) on keybase.
  • I have a public key ASCJsVXpt54-2f_ApkC06MAmfQUQVi-uSMQBVbVilI4ghQo

To claim this, I am signing this object: