Skip to content

Instantly share code, notes, and snippets.

View ZaneH's full-sized avatar
👓
Building!

Zane Helton ZaneH

👓
Building!
View GitHub Profile
@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;
@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"
@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 = {
"!": "!",

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 / .conkyrc
Created July 22, 2024 00:22
Conky config file with uptime, CPU cores, network speed/usage, (NVIDIA) GPU usage, temps, disk space, etc.
conky.config = {
alignment = 'top_left',
use_xft = true,
xftalpha = 0.8,
font = 'Ubuntu Mono:size=12',
text_buffer_size = 2048,
update_interval = 1.0,
total_run_times = 0,
background = true,
double_buffer = true,