Skip to content

Instantly share code, notes, and snippets.

@t4t5
t4t5 / blacklist.csv
Created December 11, 2025 18:26
the cat blacklist
We can't make this file beautiful and searchable because it's too large.
# snapshot_height: 927443
# snapshot_hash: d8d3b924f3f044854295664f0a002dd43384937a889500000000000000000000
txid,vout,value,address
31d99019d88165e3f10192ec1088bda920233481a111c40384d0e9a349000000,1,546,bc1ppqvz4pfkhfl0gl6g9qavydz9qdte5xz2r0ax22wh8n4cj7g5er8sfszp3u
ed153b9265351ff335f93603828111f3f2aaa88c2cd1172f49f36aaed2000000,0,330,bc1prrczmh4wn5a9wg26337fse54rszvzgzs5ctpnx5mxy8zkqcv7m4slpfc4g
a872c4356c114f4695df6ed429bcc260a658dec6ea93bbfbaa025cc64a010000,1,546,bc1pgnpxzklyxnqn2eyjtwf2plypa0q4glzz8z5zg3sclym0hgnnl8rsz93ecm
600ae20a850268057939d34703dfd577a164fac3d951c47b85d9061b6a010000,0,546,bc1qh34q8cwcy2u4a79gn2gw4y46ztgjvy8zzdvt45
88ee156a96102199be1b392c63554eda71d5e3e9b263e2c07b7e764d8f010000,0,546,bc1prf0fanyu8ld9cwrmhp4tu2dzah3h7dg0fq3ta9lpq8w5d7f3amdsryg09f
1533ce8be025acee6ff2b429421c9f9ae3220985b0c53139f4f332c7d5010000,1,546,bc1p0swh09j5rd9hhcwma7ex2pd70hcwvdtd06exfu760nw8cr048tus8c2x0k
3a6dd7350b3aab4dc87627fd25d0cf2be59031f3470646f27a8db499f1010000,0,546,bc1plsmg32hwaqwd86cvlqrs0g33yvsap32sf
@t4t5
t4t5 / art.sh
Created September 3, 2022 13:42
Stable Diffusion script
#!/bin/bash
SD_DIR=~/dev/tools/stable-diffusion
cd $SD_DIR
source venv/bin/activate
echo -n "Enter a prompt: "
read prompt
@t4t5
t4t5 / main.js
Created May 19, 2020 18:44
Electron: Quit macOS app with command + Q
// Quit app on macOS ONLY if using command + Q or some other force quit option:
win = new BrowserWindow({ width: 500, height: 500 })
let forceQuit = false
// Triggered before close event, i.e. when pressing command + Q
app.on('before-quit', () => {
forceQuit = true
})
@t4t5
t4t5 / main.js
Last active May 9, 2022 18:46
Electron: Hide window instead of quitting when closing it
// Hide window instead of quitting when closing it:
win = new BrowserWindow({ width: 500, height: 500 })
win.on('close', e => {
e.preventDefault() // Prevents quit
win.hide()
})
### Keybase proof
I hereby claim:
* I am t4t5 on github.
* I am t4t5 (https://keybase.io/t4t5) on keybase.
* I have a public key ASAPsmlyf5n7MxBYdqXPxnGx8BqDoCAYhOGYtC_7F5z1Ago
To claim this, I am signing this object:
@t4t5
t4t5 / gist:518151ac1d45638e2669a9111c987dc2
Created November 24, 2017 20:25
Blockstack verification
Verifying my Blockstack ID is secured with the address 1P7MsomekKr1U3wuqdjQCZY153YKrr2sgB https://explorer.blockstack.org/address/1P7MsomekKr1U3wuqdjQCZY153YKrr2sgB
@t4t5
t4t5 / sweetalert-with-buttons.js
Created September 6, 2017 14:31
SweetAlert with different number of buttons
// No buttons:
swal({
text: "This modal has no buttons!",
buttons: false,
});
// 1 button:
swal({
text: "Here’s a modal with one button!",
button: "Click me!",
@t4t5
t4t5 / sweetalert-with-async.js
Created September 6, 2017 14:30
Using async with SweetAlert
const deleteFile = async () => {
// Wait for the user to press a button...
const shouldDelete = await swal("Delete file?", "Are you sure that you want to delete this file?", "warning");
if (shouldDelete) {
// Code to actually delete file goes here
swal("Poof!", "Your file has been deleted!", "success");
}
}
@t4t5
t4t5 / sweetalert-with-react.js
Last active September 6, 2017 14:28
SweetAlert content option
// A React component...
const List = () => (
<ul>
<li>Item 1</li>
<li>Item 2</li>
</ul>
)
// Render it as a DOM node...
const wrapper = document.createElement()
@t4t5
t4t5 / index.html
Created April 3, 2017 15:35
todo-app-index
<!-- index.html -->
<html>
<head>
<title>Todo app</title>
<link rel="stylesheet" href="components/todo-list/dist/app.css" />
</head>
<body>