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 4, 2026 03:21
Bash Logging

Bash Logging Module

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

Features

  • Standard syslog log levels (DEBUG, INFO, WARN, ERROR, CRITICAL, etc.)
  • Console output with color-coding by severity
  • Optional file output
  • Optional systemd journal logging
@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