Skip to content

Instantly share code, notes, and snippets.

View extratone's full-sized avatar
🗿
sudo exit

David Blue extratone

🗿
sudo exit
View GitHub Profile

FSCK_HFS(8) - System Manager's Manual

NAME

fsck_hfs - HFS file system consistency check

SYNOPSIS

fsck_hfs -q

@extratone
extratone / hello.1.md
Created September 8, 2022 00:12 — forked from eddieantonio/hello.1.md
man page template in Markdown

% HELLO(1) Version 1.0 | Frivolous "Hello World" Documentation

NAME

hello — prints Hello, World!

SYNOPSIS

@extratone
extratone / count_shortcuts.py
Created August 21, 2022 12:56 — forked from SKaplanOfficial/count_shortcuts.py
Using PyXA to get the number of shortcuts in each shortcuts folder
import PyXA
app = PyXA.application("Shortcuts")
all_shortcuts = app.folders().shortcuts()
amounts = [len(ls) for ls in all_shortcuts]
print(amounts)
@extratone
extratone / ipsw2dmg.sh
Created August 11, 2022 14:08 — forked from atnbueno/ipsw2dmg.sh
A zsh script to extract the largest DMG from an IPSW to the same folder with the label as name
#!/bin/zsh
# ipsw2dmg.sh by github.com/atnbueno - v2.0.0 (2022-07-31) - License: MIT
# Check if input file exists (with or without an .ipsw extension)
if [ -f "$1" ]; then
INPUT=$(realpath "$1")
else
if [ -f "$1.ipsw" ]; then
INPUT=$(realpath "$1.ipsw")
else
@extratone
extratone / update-status.sh
Created July 19, 2022 02:43 — forked from ecstasy2/update-status.sh
Bash script to update github commit status
#!/bin/bash
set -e
# Usage: ./update-status.sh --sha=somesha \
# --repo=edyn/service-identity \
# --status=pending \
# --message="Starting tests" \
# --context=edyn/e2e \
# --url=http://something.com
@extratone
extratone / block-fb-sponsored-tampermonkey.js
Created July 2, 2022 18:39 — forked from christophercalm/block-fb-sponsored-tampermonkey.js
Finds all html elements with fbclid in them to block ads.
// ==UserScript==
// @name Remove Facebook Sponsored Elements
// @namespace http://tampermonkey.net/
// @version 0.1.1
// @description Remove Facebook Sponsored Elements
// @author You
// @match https://www.facebook.com/
// @icon https://www.google.com/s2/favicons?sz=64&domain=tampermonkey.net
// @grant none
// @run-at document-idle
@extratone
extratone / download.sh
Created June 14, 2022 23:12 — forked from mildred/download.sh
Download from archive.org Wayback Machine
#!/bin/bash
url=http://redefininggod.com
webarchive=https://web.archive.org
wget="wget -e robots=off -nv"
tab="$(printf '\t')"
additional_url=url.list
# Construct listing.txt from url.list
# The list of archived pages, including some wildcard url
@extratone
extratone / Bear.Backlinks.js
Last active May 15, 2022 09:37 — forked from jsloat/Bear.Backlinks.js
Generate backlinks for Bear notes in Scriptable on iOS
@extratone
extratone / termiWidget.js
Last active May 15, 2022 09:33 — forked from spencerwooo/termiWidget.js
🍋 TermiWidget - Terminal-like Widget for iOS 14, made with Scriptable.
// Variables used by Scriptable.
// These must be at the very top of the file. Do not edit.
// icon-color: orange; icon-glyph: quote-right;
// Change these to your usernames!
const user = "extratone"
const jike = "4DDA0425-FB41-4188-89E4-952CA15E3C5E"
const telegram = "DavidBlue"
const github = "extratone"
@extratone
extratone / Audio Recorder.py
Created May 13, 2022 09:18 — forked from omz/Audio Recorder.py
Audio Recorder.py
from ctypes import c_void_p, c_char_p, c_double, c_float, c_int, cdll, util, c_bool
import os
import time
# Load Objective-C runtime:
objc = cdll.LoadLibrary(util.find_library('objc'))
objc.sel_getName.restype = c_char_p
objc.sel_getName.argtypes = [c_void_p]
objc.sel_registerName.restype = c_void_p
objc.sel_registerName.argtypes = [c_char_p]