Skip to content

Instantly share code, notes, and snippets.

@tripleee
tripleee / Unicode_KrutiDev_converter.py
Last active June 9, 2026 06:14
Python3 version of Unicode <=> KrutiDev converter
# KrutiDev to Unicode function
def KrutiDev_to_Unicode(krutidev_substring):
modified_substring = krutidev_substring
array_one = ["ñ","Q+Z","sas","aa",")Z","ZZ","‘","’","“","”",
"å", "ƒ", "„", "…", "†", "‡", "ˆ", "‰", "Š", "‹",
"¶+", "d+", "[+k","[+", "x+", "T+", "t+", "M+", "<+", "Q+", ";+", "j+", "u+",
@tripleee
tripleee / traceback
Last active March 31, 2026 05:16
make a shell command show a call trace on failure
#!/bin/sh
:<<'=cut'
=head1 NAME
traceback - make a shell command show a call trace on failure
=head1 SYNOPSIS
@tripleee
tripleee / git-wrapper
Last active October 24, 2024 13:45
git-wrapper to protect against accidental usage of a global user.email
#!/bin/sh
:<<'=cut'
=head1 NAME
git-wrapper - avoid committing as you@invalid
=head1 SYNOPSIS
@tripleee
tripleee / strobojob.md
Created September 10, 2024 13:11
Demo video for Meta Stack Overflow post
strobojob.mov
@tripleee
tripleee / emacs-python-repl.md
Created December 1, 2023 10:39
Python REPL in Emacs, demonstrating C-o flush-output

Here is a brief video demonstrating M-x shell and in particular the use of C-c C-o (comint-delete-output) in both the shell and a Python REPL.

Screen.Recording.2023-12-01.at.12.27.50.mov
@tripleee
tripleee / prosus.md
Last active June 5, 2023 13:14
Prosus letter re: Stack Exchange moderation strike

Here's the email I sent.

From: tripleee
To: communications (at) naspers (dot) com (sic)
Subject: Stack Overflow / Stack Exchange moderation strike

Sorry for writing to your press address. I could find no more suitable address under "contact us" on your web site www.prosus.com.

I'm writing as a concerned user of Stack Overflow and the network of sites they operate as Stack Exchange, Inc.

@tripleee
tripleee / friday.py
Last active December 2, 2022 11:22
Amount of bad questions on Stack Overflow per weekday
import csv
import sys
wd = ["Monday", "Tuesday", "Wednesday", "Thursday", "Friday", "Saturday", "Sunday"]
# https://data.stackexchange.com/stackoverflow/query/1681084
with open(sys.argv[1], "r") as csvfile:
reader = csv.reader(csvfile)
header = True
for row in reader:
@tripleee
tripleee / ruawk.txt
Created September 2, 2022 12:12
ruawk.txt
bash$ docker run --rm -it debian
root@6d9fd42e99af:/# apt-get update
Get:1 http://security.debian.org/debian-security bullseye-security InRelease [48.4 kB]
Get:2 http://deb.debian.org/debian bullseye InRelease [116 kB]
Get:3 http://security.debian.org/debian-security bullseye-security/main amd64 Packages [180 kB]
Get:4 http://deb.debian.org/debian bullseye-updates InRelease [44.1 kB]
Get:5 http://deb.debian.org/debian bullseye/main amd64 Packages [8182 kB]
Get:6 http://deb.debian.org/debian bullseye-updates/main amd64 Packages [2596 B]
Fetched 8573 kB in 2s (3663 kB/s)
Reading package lists... Done
// ==UserScript==
// @name Reply to self
// @namespace https://github.com/dzaima
// @version 0.1
// @description reply to self
// @author dzaima
// @match https://chat.stackexchange.com/*
// @match https://chat.stackoverflow.com/*
// @match https://chat.meta.stackexchange.com/*
// @match https://chat.meta.stackoverflow.com/*
@tripleee
tripleee / pypodcasts.md
Created May 17, 2022 06:54
Python podcasts

Here are the Python podcasts I am aware of.

The exposition is oriented more towards developer gossip because that was the context in which I was asked.

I link to Castro because that's convenient for me; I hope the links are not too unwieldy for others. (If you are looking for a podcast player, I don't hesitate to recommend Castro, though!)

Talk Python to Me