Skip to content

Instantly share code, notes, and snippets.

View AkazaRenn's full-sized avatar

Renn AkazaRenn

View GitHub Profile
@AkazaRenn
AkazaRenn / __init__.py
Last active August 20, 2023 22:26
Asterisk import all files in this folder (breaks syntax highlighing)
import importlib.util
# Import all regular *.py files in this folder
# From https://stackoverflow.com/a/57892961
for module_path in current_dir.glob('*.py'):
    module_name = module_path.stem
    if module_name.startswith('__'):
        continue
@AkazaRenn
AkazaRenn / README.md
Last active April 3, 2023 17:01 — forked from snakecase/Beep on replay buffer save.lua
OBS Lua: Sound notification on screenshot taken & replay buffer save [Windows]

A simple Lua script which plays a .wav sound whenever replay buffer is saved.

Installation

  1. Find your Steam screenshot sound at <SteamInstallFolder>\resource\camera1.wav or use any .wav sound but make sure to match its name in hotkey-play-sound.lua (edit with any text editor)

  2. Put it in the folder named hotkey-play-sound which locates with hotkey-play-sound.lua. A good way is to create a separate scripts folder in %AppData%\obs-studio\ and keep all your scripts there in case you need to backup your OBS Settings.

  3. OBS -> Tools -> Scripts -> +

@AkazaRenn
AkazaRenn / winup.ahk
Last active August 23, 2022 14:00
AHK script to remap your left win key to PowerToys Run without breaking other win-key-related hotkeys
<#V::>#V ; fix the non-sense problem with win+v
$LWin Up::
If (A_PriorKey = "LWin")
Send ^+!#S ; or whatever shortcut you set for PTRun
return
import java.io.IOException
import java.util.Scanner
import java.net.URL
import java.util.HashMap
val TS_CHAR_URL = URL("https://github.com/BYVoid/OpenCC/raw/master/data/dictionary/TSCharacters.txt")
val ST_CHAR_URL = URL("https://github.com/BYVoid/OpenCC/raw/master/data/dictionary/STCharacters.txt")
enum class ChineseTypes {
SIMPLIFIED_CHINESE,
#!/bin/bash
if ! [ -x "$(command -v docker-compose)" ]; then
echo 'Error: docker-compose is not installed.' >&2
exit 1
fi
domains=(example.org www.example.org)
rsa_key_size=4096
data_path="./config/certbot"