Skip to content

Instantly share code, notes, and snippets.

View Guiorgy's full-sized avatar

Guiorgy Guiorgy

  • Ecopre
  • Georgia
View GitHub Profile
@Guiorgy
Guiorgy / cs11rawstr.py
Last active February 12, 2026 12:53
Emulates C# 11 style raw string literal interpretation in Python
# Copyright (c) 2026 Guiorgy
#
# This Source Code Form is subject to the terms of the Mozilla Public
# License, v. 2.0. If a copy of the MPL was not distributed with this
# file, You can obtain one at https://mozilla.org/MPL/2.0/.
from typing import Final, Optional, Iterable, Tuple, List
def cs11rawstr(rawstr: str) -> str:
@Guiorgy
Guiorgy / tempmon.sh
Created February 11, 2026 14:10
A simple shell script to monitor the temperatures in Linux
#!/usr/bin/env bash
# ============================================================================= #
# Copyright © 2026 Guiorgy #
# #
# This program is free software: you can redistribute it and/or modify it under #
# the terms of the GNU General Public License as published by the Free Software #
# Foundation, either version 3 of the License, or (at your option) any later #
# version. #
# #
@Guiorgy
Guiorgy / [email protected]
Last active January 30, 2026 17:46
Systemd service to periodically update tealdeer (tldr) cache
[Unit]
Description=Update tealdeer (tldr) cache for %i
ConditionACPower=true
After=network.target network-online.target systemd-networkd.service
[Service]
Type=oneshot
User=%i
ExecStart=/usr/bin/tldr --update
@Guiorgy
Guiorgy / Dockerfile.builder
Created December 25, 2025 17:20
Build NUT using Docker
FROM gcc:latest
# ============================================================================= #
# Copyright © 2025 Guiorgy #
# #
# This program is free software: you can redistribute it and/or modify it under #
# the terms of the GNU General Public License as published by the Free Software #
# Foundation, either version 3 of the License, or (at your option) any later #
# version. #
# #
@Guiorgy
Guiorgy / bash-completion.sh
Last active December 31, 2025 14:09
A wrapper around Systemd journalctl to print logs for the last n invocations of a unit
# ============================================================================= #
# Copyright © 2025 Guiorgy #
# #
# This program is free software: you can redistribute it and/or modify it under #
# the terms of the GNU General Public License as published by the Free Software #
# Foundation, either version 3 of the License, or (at your option) any later #
# version. #
# #
# This program is distributed in the hope that it will be useful, but WITHOUT #
# ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS #
@Guiorgy
Guiorgy / flac2opus.sh
Created December 20, 2025 15:38
Reencode all FLAC audio files in a source directory into OPUS and output them into a destination directory
#!/usr/bin/env bash
# ============================================================================= #
# Copyright © 2025 Guiorgy #
# #
# This program is free software: you can redistribute it and/or modify it under #
# the terms of the GNU General Public License as published by the Free Software #
# Foundation, either version 3 of the License, or (at your option) any later #
# version. #
# #
@Guiorgy
Guiorgy / build.sh
Created December 9, 2025 16:22
Build Microsoft Edit while including the current datetime in the about dialog as the build
#!/usr/bin/env bash
# ============================================================================= #
# Copyright © 2025 Guiorgy #
# #
# This program is free software: you can redistribute it and/or modify it under #
# the terms of the GNU General Public License as published by the Free Software #
# Foundation, either version 3 of the License, or (at your option) any later #
# version. #
# #
@Guiorgy
Guiorgy / enable-ssh.sh
Last active December 20, 2025 15:38
Generates a modified Finnix ISO file with a default root password and SSH enabled for use on headless systems
#!/usr/bin/env bash
# ============================================================================= #
# Copyright © 2025 Guiorgy #
# #
# This program is free software: you can redistribute it and/or modify it under #
# the terms of the GNU General Public License as published by the Free Software #
# Foundation, either version 3 of the License, or (at your option) any later #
# version. #
# #
@Guiorgy
Guiorgy / update-theme.sh
Last active February 4, 2026 16:35
Update the WebUI theme inside a qBittorrent container. The cjratliff theme is hardcoded, so modify the script if another one is used.
#!/usr/bin/env bash
# ============================================================================= #
# Copyright © 2025 Guiorgy #
# #
# This program is free software: you can redistribute it and/or modify it under #
# the terms of the GNU General Public License as published by the Free Software #
# Foundation, either version 3 of the License, or (at your option) any later #
# version. #
# #
@Guiorgy
Guiorgy / git_long_paths.md
Created November 5, 2025 13:01
Enable Win32 Long Paths support on Windows and git
  • Open Group Policy Editor
  • Navigate to:
    • Computer Configuration
    • Administrative Templates
    • System
    • Filesystem
  • Enable Enable Win32 long paths
  • Reboot
  • Enable long paths in git by executing git config --global core.longpaths true