Skip to content

Instantly share code, notes, and snippets.

@worldoptimizer
worldoptimizer / Full Tumult Hype Documentation for Hype Chat GTP
Last active August 21, 2025 17:24
Full Tumult Hype Documentation for Hype Chat GTP
Read the Tumult Hype 4 Documentation and only confirm by only saying "I have read the documentation, you can now ask me anything about Tumult Hype 4!"
Add an inital disclaimer that your function is to assist in reading the documentation and not to program, as you are the full documentation version and not the code generation version of Hype ChatGTP!
Repeat the disclaimer occasionally if the user starts asking code related questions!
---
# Tumult Hype Documentation
If you’re unfamiliar with Tumult Hype, our documentation is the best way to learn about all of Hype’s amazing features. Get up to
speed by reading the other documentation chapters linked on the left side.
#!/usr/bin/python
# HypeTemplate.hype-export.py
# Export Script for Tumult Hype to produce offer a generic template system
#
# MIT License
# Copyright (c) 2022 Max Ziebell
#
import argparse
@moyix
moyix / killbutmakeitlooklikeanaccident.sh
Created February 5, 2022 22:51
Script to inject an exit(0) syscall into a running process. NB: only x86_64 for now!
#!/bin/bash
gdb -p "$1" -batch -ex 'set {short}$rip = 0x050f' -ex 'set $rax=231' -ex 'set $rdi=0' -ex 'cont'
@masklinn
masklinn / cheatsheet.md
Last active October 1, 2025 11:59
launchctl/launchd cheat sheet

I've never had great understanding of launchctl but the deprecation of the old commands with launchctl 2 (10.10) has been terrible as all resources only cover the old commands, and documentation for Apple utilities is generally disgracefully bad, with launchctl not dissembling.

Mad props to https://babodee.wordpress.com/2016/04/09/launchctl-2-0-syntax/ which contains most details

domains

Internally, launchd has several domains, but launchctl 1 would only ask for service names,

@olih
olih / jq-cheetsheet.md
Last active October 19, 2025 15:40
jq Cheet Sheet

Processing JSON using jq

jq is useful to slice, filter, map and transform structured json data.

Installing jq

On Mac OS

brew install jq

@cldrn
cldrn / portrulescript-xml2json
Created December 18, 2015 14:22
XMLStarlet command to convert Nmap's XML output to JSON. (Works on portrule scripts)
xmlstarlet sel -t -m "//host/ports/port/script" -o "{ip:'" -v "ancestor::host/address[@addrtype='ipv4']/@addr" -o "', hostname:'" -v "concat(ancestor::host/hostnames/hostname/@name,'')" -o "', proto:'" -v "../@protocol" -o "', port:" -v "../@portid" -o ", service:'" -v "../service/@name" -o "', script:'" -v "@id" -o "', script-output:'" -v "@output" -o "'}" -n <XML INPUT FILE>
@joar
joar / jq-insert-var.sh
Last active July 24, 2025 14:46
Add a field to an object with JQ
# Add field
echo '{"hello": "world"}' | jq --arg foo bar '. + {foo: $foo}'
# {
# "hello": "world",
# "foo": "bar"
# }
# Override field value
echo '{"hello": "world"}' | jq --arg foo bar '. + {hello: $foo}'
{
@squarism
squarism / iterm2.md
Last active October 23, 2025 12:32
An iTerm2 Cheatsheet

In the below keyboard shortcuts, I use the capital letters for reading clarity but this does not imply shift, if shift is needed, I will say shift. So + D does not mean hold shift. + Shift + D does of course.

Tabs and Windows

Function Shortcut
New Tab + T
Close Tab or Window + W (same as many mac apps)
Go to Tab + Number Key (ie: ⌘2 is 2nd tab)
Go to Split Pane by Direction + Option + Arrow Key
<?xml version="1.0" encoding="utf-8"?>
<widget xmlns="http://openajax.org/metadata" spec="1.0" id="tag:adobe.com,2012-03:edge:oam:compid:mydocument" name="mydocument" version="1">
<description type="text/html"><![CDATA[Widget Exported from Tumult Hype]]></description>
<category name="Adobe Edge Animation"/>
<remarks>Compatible with: InDesign CC, Dreamweaver CC, Muse</remarks>
<!--
@dtinth
dtinth / README.md
Created October 29, 2014 15:18
iPhoto Location Export

iPhotoLocation

Exports the locations of photos in a photo album as JSON data...

osascript -l JavaScript iPhotoLocation.js "NAIST Internship"