Skip to content

Instantly share code, notes, and snippets.

View zcutlip's full-sized avatar

Zachary Cutlip zcutlip

View GitHub Profile
@zcutlip
zcutlip / ida_hello.py
Created July 15, 2021 20:58
IDA python script that prints to console in batch mode
import idc
import os
# you won't see this on the console
print("hello")
class Log:
def __init__(self, logfile):
self.logfile = logfile
@zcutlip
zcutlip / CommerceKit.h
Created December 9, 2021 00:35
Working progress on CommerceKit class dumping
/*
./classdump.py ../build/Release/formatType ./CommerceKit.json
*/
@interface CKDialogController : CKServiceInterface
{
}
@zcutlip
zcutlip / shell_history_backup.zsh
Last active November 10, 2023 21:36
Shell history backup function
# shellcheck shell=bash
# shellcheck disable=SC1091
# source from .zshrc or similar:
# source "$DOTFILES/shell_history_backup.zsh" && _backup_shell_hist
function _backup_shell_hist(){
if [ -n "$SHELL_HIST_BACKUP_LOC" ]
then
_histfile_base="$(basename "$HISTFILE")"
@zcutlip
zcutlip / kill_ss.lua
Created May 24, 2024 23:12
Hammerspoon module to kill `legacyScreensaver`
screenSleep = false
screenSaver = false
screenLock = false
--[[
place in ~/.hammerspoon/kill_screensaver/
load from your hammerspoon init.lua:
require "kill_screensaver.kill_ss"
A to kill legacyScreenSaver when the screen saver exits and/or screen wakes
legacyScreenSaver has a memory leak that causes it to consume many gigabytes of memory over