Skip to content

Instantly share code, notes, and snippets.

View ZaneH's full-sized avatar
Top of the morning to ya

Zane Helton ZaneH

Top of the morning to ya
View GitHub Profile

Macropad with an old keyboard and actkbd on Arch Linux

Disable the regular keyboard behavior with xinput

  sudo pacman -Sy xorg-input
  xinput list
  xinput disable <ID>
@ZaneH
ZaneH / fixjson.py
Created February 27, 2024 06:53 — forked from trotsky1997/fixjson.py
Fix JSON output of LLM agents
import re
import json
from half_json.core import JSONFixer
def json_fixer(data: str) -> str:
# define a mapping of full-width punctuation to half-width punctuation
punctuation_map = {
"!": "!",
@ZaneH
ZaneH / jailbreak-finder.sh
Created December 18, 2015 04:05
Find jailbroken devices on your network.
#!/bin/bash
clear
wlanmax=$(ifconfig wlan0 | grep "inet addr:" | cut -d: -f2 | awk '{print $1};' | awk -F. '{print $1"."$2"."$3".1/24"};')
echo "Grabbing inet address..."
echo "Grabbing gatemask..."
nmap -sP $wlanmax | grep "Nmap scan report for" | awk '{system("ssh -t -t -o ConnectTimeout=5 root@"$5)};'
echo "Done"
@import QuartzCore.QuartzCore;
@interface CAMediaTimingFunction (TWTEasingFunctions)
+ (instancetype)twt_sineEaseInFunction;
+ (instancetype)twt_sineEaseOutFunction;
+ (instancetype)twt_sineEaseInOutFunction;
+ (instancetype)twt_quadraticEaseInFunction;
+ (instancetype)twt_quadraticEaseOutFunction;
+ (instancetype)twt_quadraticEaseInOutFunction;
+ (instancetype)twt_cubicEaseInFunction;