This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import idc | |
import os | |
# you won't see this on the console | |
print("hello") | |
class Log: | |
def __init__(self, logfile): | |
self.logfile = logfile |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/* | |
./classdump.py ../build/Release/formatType ./CommerceKit.json | |
*/ | |
@interface CKDialogController : CKServiceInterface | |
{ | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# 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")" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |
OlderNewer