Skip to content

Instantly share code, notes, and snippets.

open Printf
open Lwt.Syntax
let show_option o = Option.value ~default:"<none>" o
let create_random_large_value size =
let chars = "abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789" in
let chars_len = String.length chars in
let result = Bytes.create size in
for i = 0 to size - 1 do
@ELLIOTTCABLE
ELLIOTTCABLE / .gitignore
Last active July 14, 2023 15:34 — forked from rosston/.gitignore
BASH Script to keep Route53 updated with your current external IP address
*.ip
*.log
@ELLIOTTCABLE
ELLIOTTCABLE / configuring-archlinux-ami.sh
Created May 26, 2009 21:19
Instructions for building an EC2 AMI for Arch Linux
#!/dev/null
# This 'script' is a set of instructions for preparing and bundling an Arch
# Linux AMI for Amazon's EC2. Bits are to be run on three different
# computers, and there is interaction required, so please follow along and
# run commands individually.
# PROTIP: THESE DON'T ACTUALLY WORK. That's why I'm pasting them here,
# attemping to get some input on what I'm doing wrong. When the instructions
# are ready for prime-time, I'll clean them up and post them to my blog. If
# you're really interested, watch for it there:
-------------------------------------
Translated Report (Full Report Below)
-------------------------------------
Process: bluetoothd [65829]
Path: /usr/sbin/bluetoothd
Identifier: bluetoothd
Version: ???
Code Type: ARM-64 (Native)
Parent Process: launchd [1]
winget install -e --id Armin2208.WindowsAutoNightMode
winget install -e --id AutoHotkey.AutoHotkey
winget install -e --id Discord.Discord
winget install -e --id EpicGames.EpicGamesLauncher
winget install -e --id Git.Git
winget install -e --id GitHub.cli
winget install -e --id GitHub.GitHubDesktop
winget install -e --id Google.Chrome
winget install -e --id icsharpcode.ILSpy
winget install -e --id IPFS.IPFS-Desktop
@ELLIOTTCABLE
ELLIOTTCABLE / BrowserHereHelper.applescript
Last active January 25, 2023 00:14 — forked from georgebrock/Info.plist
AppleScript Applet to bypass 'When switching to an application, switch to a Space …' for your web-browser
use AppleScript version "2.4" -- Yosemite (10.10) or later
use scripting additions
-- BrowserHereHelper.applescript:
-- v2, by <https://github.com/@ELLIOTTCABLE>
-- Instructions and current version:
-- <https://gist.github.com/ELLIOTTCABLE/b25c6fea41f74ab6e38c5ee8dc744411>
-- ---- ---- ---- --
Log uploaded on Sunday, October 9, 2022, 3:51:05 PM
Loaded mods:
Harmony(brrainz.harmony)[mv:1.5.0.0]: 0Harmony(2.2.2), HarmonyMod(1.5.0)
BetterLoading(me.samboycoding.betterloading)[mv:3.3.0.0]: 0Harmony(av:2.2.2,fv:2.1.0), BetterLoading(2.3.0), Tomlet(3.1.3)
Visual Exceptions(brrainz.visualexceptions)[mv:1.1.1.0]: 0Harmony(av:2.2.2,fv:2.1.1), CrossPromotion(1.0.0), VisualExceptions(1.1.1)
Core(Ludeon.RimWorld): (no assemblies)
Royalty(Ludeon.RimWorld.Royalty): (no assemblies)
Ideology(Ludeon.RimWorld.Ideology): (no assemblies)
HugsLib(UnlimitedHugs.HugsLib)[ov:9.0.1]: 0Harmony(av:2.2.2,fv:1.2.0.1), HugsLib(av:1.0.0,fv:9.0.1)
Cherry Picker (dev)(Owlchemist.CherryPicker): CherryPicker(av:0.32.4,fv:0.32.4)
<?xml version="1.0" encoding="utf-8"?>
<ModsConfigData>
<version>1.3.3389 rev40</version>
<activeMods>
<li>brrainz.harmony</li>
<li>me.samboycoding.betterloading</li>
<li>brrainz.visualexceptions</li>
<li>ludeon.rimworld</li>
<li>ludeon.rimworld.royalty</li>
<li>ludeon.rimworld.ideology</li>
@ELLIOTTCABLE
ELLIOTTCABLE / nerd-patcher-input-mono.sh
Created May 23, 2017 16:24
How to make a Nerd Fonts-patched (‘Powerline’) version of the Input Mono font
# Creating this because I'm *sure* I'll forget how to do this.
# 1. Customize your Input fontface, and download it from their website:
open -a Safari \
"http://input.fontbureau.com/download/index.html?size=14&language=javascript&theme=base16-dark&family=InputMono&width=200&weight=300&line-height=1.2&a=0&g=ss&i=serif&l=serifs_round&zero=slash&asterisk=height&braces=straight&preset=dejavu&customize=please"
# 2. Download the ‘patcher script’:
# (I have no idea why the hell this script requires the `changelog.md` as well; and we [ab]use
# GitHub's SVN bridge to download *just* the `src/glyphs`, instead of the 100s of megabytes of
# pre-patched fonts)
@ELLIOTTCABLE
ELLIOTTCABLE / gist:1326304
Created October 30, 2011 19:18
Awesome music that Spotify is missing
- “Piano Tune” by Bar 9
- “Champagne High” by Sister Hazel
- “I Am Willing” by Liquid Mind
- “I'm Still Here” by Vertical Horizon
- “In Your Eyes” by Peter Gabriel
- AC/DC (“Highway To Hell”)
- “Mission” by Beats Antique
- Teargas & Plateglass (“Arkhangelsk”)
- “Electric State” by Culprit 1
- “You Wish” by Nightmares On Wax