Skip to content

Instantly share code, notes, and snippets.

View Guiorgy's full-sized avatar

Guiorgy Guiorgy

  • Ecopre
  • Georgia
View GitHub Profile
@Guiorgy
Guiorgy / enable-ssh.sh
Created December 5, 2025 23:15
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
Created December 2, 2025 16:19
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
@Guiorgy
Guiorgy / entrypoint.sh
Created August 5, 2025 14:58
A Docker entry point script that manages multiple daemons/services
#!/bin/bash
# Bash 4+ requred
# Copyright 2025 Guiorgy
#
# Permission is hereby granted, free of charge, to any person obtaining a copy
# of this software and associated documentation files (the "Software"), to deal
# in the Software without restriction, including without limitation the rights
# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
# copies of the Software, and to permit persons to whom the Software is
@Guiorgy
Guiorgy / Dockerfile.builder
Last active December 6, 2025 12:20
Cross-compile a C/C++ project for Linux on a Windows host using Docker
# 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
# FOR A PARTICULAR PURPOSE.
@Guiorgy
Guiorgy / Dockerfile.builder
Last active December 6, 2025 12:27
Publish a .NET AOT project for Linux on a Windows host using Docker
# 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
# FOR A PARTICULAR PURPOSE.
@Guiorgy
Guiorgy / zfs_health.sh
Last active January 21, 2025 13:14 — forked from petervanderdoes/zfs_health.sh
ZFS Health Check Script
#!/usr/bin/env bash
# Copyright 2025 Guiorgy
# Permission is hereby granted, free of charge, to any person obtaining a copy
# of this software and associated documentation files (the “Software”), to deal
# in the Software without restriction, including without limitation the rights
# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
# copies of the Software, and to permit persons to whom the Software is
# furnished to do so, subject to the following conditions:
#
@Guiorgy
Guiorgy / boot-time.sh
Last active January 21, 2025 13:33
Calculate the total boot time in seconds on a Systemd system
#!/bin/sh
# Copyright © 2024 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
@Guiorgy
Guiorgy / OptimizeDockerDesktop.ps1
Created May 2, 2024 10:27
A PoweShell script to reduce the size of the WSL virtual volume used by Docker Desktop
# Stop the Docker service
Stop-Service com.docker.service
# Stop the Docker processes
Stop-Process -Name "docker.exe" -Force
Stop-Process -Name "Docker Desktop.exe" -Force
# Stop WSL
wsl --shutdown
@Guiorgy
Guiorgy / appendNotice.ps1
Created March 19, 2024 17:48
Appends a GPLv3 liecense notice to the top of every C# source file
$comment = @"
/*
This file is part of [PROJECT] (Copyright © [YEAR] [AUTHOR]).
[PROJECT] 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.
[PROJECT] is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details.
You should have received a copy of the GNU General Public License along with Foobar. If not, see <https://www.gnu.org/licenses/>.
*/
"@