This file contains hidden or 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
| #!/usr/bin/env python3 | |
| # /// script | |
| # requires-python = '>=3.10' | |
| # dependencies = [] | |
| # /// | |
| """ | |
| Convert Apple Notes from NoteStore.sqlite to Markdown files. | |
| Written with Claude Code, 2025-12-09 Joshua Wright |
This file contains hidden or 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
| #!/bin/bash | |
| # SPDX-License-Identifier: MIT License | |
| # Steps: | |
| # 1) Make sure bash is available | |
| # 2) Create udev rule | |
| # - path to new udev rule: /etc/udev/rules.d/50-x-resize.rules | |
| # - udev rule content: | |
| # ACTION=="change",KERNEL=="card0", SUBSYSTEM=="drm", RUN+="/usr/local/bin/x-resize" | |
| # 3) Create /var/log/autores directory | |
| # 4) Create script /usr/local/bin/x-resize (this file) and make executable |
This file contains hidden or 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
| window.setInterval(thanosify, 2000); | |
| function thanosify(){ | |
| [].forEach.call(document.querySelectorAll('.player'), function (el) { | |
| if (el.className.includes("me")) { | |
| console.log(el) | |
| } else { | |
| el.style.visibility = 'hidden' | |
| } | |
| });} |
This file contains hidden or 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 re | |
| import os,sys | |
| import pefile | |
| import struct | |
| import zipfile | |
| import hashlib | |
| import StringIO | |
| from Crypto import Random | |
| from Crypto.PublicKey import RSA | |
| from Crypto.Cipher import PKCS1_v1_5,AES |
This file contains hidden or 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
| _tm_complete() { | |
| local rx | |
| local token=${COMP_WORDS[$COMP_CWORD]} | |
| local IFS=$'\t' | |
| local words | |
| if [ $COMP_CWORD -eq 2 ]; then | |
| words=$(tmux list-windows -t ${COMP_WORDS[1]} 2> /dev/null | awk '{print $2}' | tr -d '*-' | tr "\n" "\t") | |
| elif [ $COMP_CWORD -eq 1 ]; then | |
| words=$(tmux -q list-sessions 2> /dev/null | cut -f 1 -d ':' | tr "\n" " ") | |
| fi |
This file contains hidden or 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
| #!/bin/bash | |
| # Bash completion for `up` <http://brettterpstra.com/2014/05/14/up-fuzzy-navigation-up-a-directory-tree/> | |
| _up_complete() | |
| { | |
| local rx | |
| local token=${COMP_WORDS[$COMP_CWORD]} | |
| local IFS=$'\t' | |
| local words=$(dirname `pwd` | tr / " ") | |
| local nocasematchWasOff=0 |
This file contains hidden or 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
| # inspired by `bd`: https://github.com/vigneshwaranr/bd | |
| function _up() { | |
| local rx updir | |
| rx=$(ruby -e "print '$1'.gsub(/\s+/,'').split('').join('.*?')") | |
| updir=`echo $PWD | ruby -e "print STDIN.read.sub(/(.*\/${rx}[^\/]*\/).*/i,'\1')"` | |
| echo -n "$updir" | |
| } | |
| function up() { | |
| if [ $# -eq 0 ]; then |
This file contains hidden or 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
| #!/bin/bash | |
| __lower() { | |
| echo "$@"|tr "[:upper:]" "[:lower:]" | |
| } | |
| __menu() { | |
| local result="" | |
| PS3=$1 | |
| shift |
This file contains hidden or 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
| #!/usr/bin/ruby | |
| decimal = "." | |
| separator = "," | |
| if RUBY_VERSION.to_f > 1.9 | |
| Encoding.default_external = Encoding::UTF_8 | |
| Encoding.default_internal = Encoding::UTF_8 | |
| input = STDIN.read.force_encoding('utf-8') | |
| else |
This file contains hidden or 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
| 000787466 @bramus | |
| 006904094 @inferis | |
| 008093150 @tomklaasen | |
| 010686174 @to1ne | |
| 011006380 @tijs | |
| 023055424 @crahan | |
| 063846821 @junkiesxl | |
| 075540649 @maxvoltar | |
| 084511154 @atog | |
| 102812969 @nilo |
NewerOlder