Skip to content

Instantly share code, notes, and snippets.

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

EngineersBox EngineersBox

🎚️
Flippin' Switches
View GitHub Profile
@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 June 19, 2025 23:53
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