Skip to content

Instantly share code, notes, and snippets.

@oko
oko / mkpool.py
Created July 15, 2023 20:43
Scripts for creating ZFS pool w/ mirror vdevs on QNAP TS-673A
#!/usr/bin/env python3
import argparse
import itertools
import os
import subprocess
import sys
parser = argparse.ArgumentParser(description="set up zfs pool")
parser.add_argument("--mirror-size", type=int, default="2")
parser.add_argument("--disk-name-filter", type=str, default="*-ata-*.0")
@lucasluitjes
lucasluitjes / auto_pop.py
Last active September 3, 2021 05:00
automatically generate a click for the talon zoom mouse every n seconds
# This script automatically generates a pop for the talon zoom mouse every n seconds,
# then another one 2 seconds later. For when you want to do a ton of clicking actions
# without getting jaw cramp. If you don't want to click, just look away within 2 seconds.
from talon import Context, Module, actions, app, cron, ctrl, imgui, noise, settings, ui
from talon_plugins import eye_mouse, eye_zoom_mouse, speech
from talon_plugins.eye_mouse import config, toggle_camera_overlay, toggle_control
# Put the following at the bottom of talon/resources/talon_plugins/eye_zoom_mouse.py
# (you will need to reapply this after every talon update)

hi, and goodbye

The past few weeks has not been fun on IRC, the drama based on false information and assumptions has been insane. I've almost entirely been silent on the drama because I know the fallout that would happen if I spoke up.

A quick TLDR - I'm quitting all IRC development. KiwiIRC project lead, IRCv3 technical board, supporting the multitude of IRC networks, the lot.

Many people seem to think that I am supporting one side in everything that is going on, so just to be clear: I am not supporting any side of the current freenode drama - there is so much false information going around from everywhere that it is impossible to support anybody.

Woo freenode drama

@tararoys
tararoys / May12knausj-master-cheatsheet.pdf
Last active September 1, 2023 05:14
Code to print out all voice commands in the knausj talon repository,
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@joevt
joevt / M1MacTimings.sh
Last active September 3, 2022 15:30
List the display timings on an M1 Mac
#!/bin/bash
# by joevt Jan 7/2021
dodump=1
if [[ "$1" == "-s" ]]; then
dodump=0
shift
fi
@ayyybe
ayyybe / ccdl.command
Last active May 20, 2024 22:48
Adobe Offline Package Builder v0.1.2 (macOS only) --- No longer being maintained.
#!/bin/bash
CYAN="$(tput bold; tput setaf 6)"
RESET="$(tput sgr0)"
clear
if command -v python3 > /dev/null 2>&1; then
if [ $(python3 -c "print('ye')") = "ye" ]; then
clear
@primaryobjects
primaryobjects / m3u8.md
Last active May 24, 2024 06:01
How to download m3u8 and ts video movie streams.

m3u8 Downloading

  1. Open Chrome Developer tools and click the Network tab.
  2. Navigate to the page with the video and get it to start playing.
  3. Filter the list of files to "m3u8".
  4. Find master.m3u8 or index.m3u8 and click on it.
  5. Save the file to disk and look inside it.
  6. If the file contains a single m3u8 master url, copy that one instead.
  7. Run the program m3u8x.
  8. Paste the same m3u8 url in both textboxes (URL and Quality URL) and click "Headers" and set the referral url and user-agent from the request as found in Chrome.
@kadin2048
kadin2048 / emlToMbox.py
Last active March 19, 2024 03:55
Combine a directory of .eml files into a single Unix "mbox" file.
#!/usr/bin/env python3
""" Converts a directory full of .eml files to a single Unix "mbox" file.
This is similar to http://www.cosmicsoft.net/emlxconvert.html
Accepts as input either an individual .eml file or a directory containing one
or more .eml files.
Usage:
$ ./emlToMbox.py inputdir/ output.mbox
@kevin-smets
kevin-smets / iterm2-solarized.md
Last active May 23, 2024 23:26
iTerm2 + Oh My Zsh + Solarized color scheme + Source Code Pro Powerline + Font Awesome + [Powerlevel10k] - (macOS)

Default

Default

Powerlevel10k

Powerlevel10k

@ejdyksen
ejdyksen / patch-edid.md
Last active May 23, 2024 07:49
A script to fix EDID problems on external monitors in macOS

patch-edid.rb

A script to fix EDID problems on external monitors in macOS.

Instructions

  1. Connect only the problem display.

  2. Create this directory structure (if it doesn't already exist):