homebrew (https://brew.sh/)
Standard option: iterm2
brew install iterm2
| #!/usr/bin/env python3 | |
| """Kill all panes in the current wezterm workspace.""" | |
| import argparse | |
| import json | |
| import os | |
| import shutil | |
| import subprocess | |
| import sys |
| #!/bin/bash | |
| # Copy GitHub-Flavored Markdown as HTML into the Mac clipboard, allowing | |
| # applications like Slack to paste the HTML. | |
| # | |
| # Requires pandoc for the markdown->HTML conversion (`brew install pandoc`) | |
| # | |
| # Copyright (c) 2026 Ori Peleg. Licensed under the MIT License. | |
| # Usage: paste or pipe markdown into stdin |
| diff --git a/Python/random.c b/Python/random.c | |
| index 93d300d..396041d 100644 | |
| --- a/Python/random.c | |
| +++ b/Python/random.c | |
| @@ -3,6 +3,9 @@ | |
| #include <windows.h> | |
| #else | |
| #include <fcntl.h> | |
| +#if defined(HAVE_GETRANDOM) || defined(HAVE_GETENTROPY) | |
| +#include <sys/random.h> |
| import java.lang.reflect.Type; | |
| import android.util.Base64; | |
| import com.google.gson.Gson; | |
| import com.google.gson.GsonBuilder; | |
| import com.google.gson.JsonDeserializationContext; | |
| import com.google.gson.JsonDeserializer; | |
| import com.google.gson.JsonElement; | |
| import com.google.gson.JsonParseException; |
| #!/usr/bin/env python3 | |
| # Inspired by https://stackoverflow.com/a/19706670/37020 by @mfukar | |
| import http.server, ssl | |
| # Concatenated private key and certificate. | |
| # Sample openssl comand to generate a self-signed server.pem file: | |
| # openssl req -x509 -sha256 -newkey rsa:2048 -nodes -keyout server.pem -out server.pem -days 365 -subj '/CN=localhost' | |
| CERTFILE="server.pem" |
| #!/usr/bin/env python3 | |
| import http | |
| import http.server | |
| import socketserver | |
| import sys | |
| def _log(s): | |
| print(s) |
homebrew (https://brew.sh/)
Standard option: iterm2
brew install iterm2
| #! /usr/bin/env python3 | |
| """ | |
| Build to compare two outputs of this line on fairly identical executables | |
| nm --print-size --radix=d <executable> | grep ' .* .* ' | cut -d' ' -f 2-10 | |
| To just see the top symbols, can run e.g | |
| nm --print-size --size-sort --radix=d <executable> | |
| """ |
| #!/usr/bin/env python3 | |
| import argparse | |
| import os | |
| import subprocess | |
| import sys | |
| from dataclasses import dataclass | |
| @dataclass |
| wt() { | |
| if [ "$#" -eq 0 ]; then | |
| local -a extra_fzf_args | |
| elif [ "$#" -eq 1 ]; then | |
| extra_fzf_args=( | |
| --query | |
| "'$1" | |
| ) | |
| else | |
| echo "Unknown arguments $@" |