Skip to content

Instantly share code, notes, and snippets.

View EngineersBox's full-sized avatar
🎚️
Flippin' Switches

EngineersBox EngineersBox

🎚️
Flippin' Switches
View GitHub Profile
@GingerGraham
GingerGraham / bash_logging.md
Last active January 19, 2026 15:23
Bash Logging

Bash Logging Module

A flexible, reusable logging module for Bash scripts that provides standardized logging functionality with various configuration options.

Important

This version of the bash logging module is now deprecated and the gist is no longer maintained. Please see the full release bash-logger

Note

This deprecated version has been left for reference purposes only.

@dillonhicks
dillonhicks / pagemaps.rs
Created July 23, 2020 01:29
Parsing Linux Process PageMaps in Rust
use std::{fmt, mem};
use std::convert::TryFrom;
use std::io::{BufRead, BufReader, Read, Seek};
use std::path::{Path, PathBuf};
use crate::deps::structopt::StructOpt;
use crate::deps::derive_more;
use crate::deps::serde;
use crate::deps::thiserror;
use crate::deps::log::warn;
@inoperable
inoperable / defaults-export.zsh
Last active December 27, 2025 18:42
export defaults for all domains in macOS into separate .plist files for editing and importing, files are written into $HOME/defaults
#!/usr/bin/env zsh
function exportDefaults {
local outdir="$HOME/defaults"
local outdirApple="$outdir/apple"
local outdirUser="$outdir/user"
local outdirGlobal="$outdir/global"
local filesdone=0
local filecount=0
local filestotal=0