Skip to content

Instantly share code, notes, and snippets.

View tonkku107's full-sized avatar
πŸ€”
Thonking

Tonkku tonkku107

πŸ€”
Thonking
View GitHub Profile
@tonkku107
tonkku107 / 1_livekit_stream.conf
Last active April 27, 2025 09:56
Nginx stream configuration for livekit turn
stream {
server {
listen 3479 ssl proxy_protocol;
proxy_pass localhost:3478;
include snippets/stream-ssl.conf; # A copy of the usual ssl/tls config with some unsupported stuff in streams removed
}
map $ssl_preread_server_name $targetBackend {
# If the request is to turn, route to our ssl/tls handler for it above
# If you have external_tls: false you may also directly point to the turn here
#!/bin/bash
#**
# Screenshot wrapper script by Tonkku
# Since I couldn't find a screenshot app that fit my needs,
# I made this wrapper script over flameshot.
# Only downside rn is that it doesn't capture the cursor.
#
# Depends on
# - flameshot
@tonkku107
tonkku107 / yoink-subs.sh
Created July 3, 2021 18:32
Script for copying subtitles between mkv files
#!/bin/bash
###
# Copies subtitles from mkv files in from/ folder to mkv files in to/ folder
# Output mkv files are saved in an out/ folder
###
# Get file lists
source_files=(from/*)
source_files=( "${source_files[@]##*/}" )
#!/bin/bash
set -m
#**
# Screenrecorder script by Tonkku
# Credit goes to lots of Googling which finally brought me to
# https://www.reddit.com/r/i3wm/comments/7ahbvv/what_do_you_use_to_make_gif_screen_capture/dpavjo7
# Which was basically what I was doing originally but in a nicer form.
# Then I expanded it according to my original plans.
#
@tonkku107
tonkku107 / facts.json
Last active August 6, 2019 13:50 — forked from aetheryx/facts.json
Cat Facts in JSON
[
"A 2007 Gallup poll revealed that both men and women were equally likely to own a cat.",
"A cat almost never meows at another cat, mostly just humans. Cats typically will spit, purr, and hiss at other cats.",
"A cat called Dusty has the known record for the most kittens. She had more than 420 kittens in her lifetime.",
"A cat can jump 5 times as high as it is tall.",
"A cat can jump up to five times its own height in a single bound.",
"A cat can spend five or more hours a day grooming himself.",
"A cat can sprint at about thirty-one miles per hour.",
"A cat can travel at a top speed of approximately 31 mph (49 km) over a short distance.",
"A cat cannot see directly under its nose.",
@tonkku107
tonkku107 / tix.tax.color.schemes.md
Last active December 8, 2020 21:59
Color Schemes for tix.tax.

To enable any of these, enter one of the possible values in the name field.

Color Schemes

Default: reset, default, normal
Night: zzzzzzzzzz
Ubuntu: ubuntu
Nature: go play outside
Pink Everywhere: πŸ’–πŸ’–πŸ’–πŸ’–πŸ’–, πŸ’•πŸ’•πŸ’•πŸ’•πŸ’•, πŸ’—πŸ’—πŸ’—πŸ’—πŸ’—, πŸ’™πŸ’™πŸ’™πŸ’™πŸ’™, πŸ’šπŸ’šπŸ’šπŸ’šπŸ’š, πŸ’›πŸ’›πŸ’›πŸ’›πŸ’›, πŸ’œπŸ’œπŸ’œπŸ’œπŸ’œ, πŸ’πŸ’πŸ’πŸ’πŸ’, πŸ’žπŸ’žπŸ’žπŸ’žπŸ’ž, πŸ’ŸπŸ’ŸπŸ’ŸπŸ’ŸπŸ’Ÿ, 🧑🧑🧑🧑🧑, ❀️❀️❀️❀️❀️, πŸ–€πŸ–€πŸ–€πŸ–€πŸ–€, β™‘β™‘β™‘β™‘β™‘, β™₯β™₯β™₯β™₯β™₯, ❀❀❀❀❀, <3<3<3<3<3
Same Color (Blue): what is going on
Same Color (Red): what is happening

Keybase proof

I hereby claim:

  • I am tonkku107 on github.
  • I am tonkku107 (https://keybase.io/tonkku107) on keybase.
  • I have a public key whose fingerprint is C3E1 8DB1 8F3A 9482 72B1 5915 4889 F359 87A1 1F43

To claim this, I am signing this object: