Skip to content

Instantly share code, notes, and snippets.

View Lukas-Heiligenbrunner's full-sized avatar

Lukas-Heiligenbrunner

View GitHub Profile
<html>
<body>
<style>
[data-custom-class='body'], [data-custom-class='body'] * {
background: transparent !important;
}
[data-custom-class='title'], [data-custom-class='title'] * {
font-family: Arial !important;
font-size: 26px !important;
color: #000000 !important;
@Lukas-Heiligenbrunner
Lukas-Heiligenbrunner / header.txt
Created November 18, 2019 11:41
default code header
// Dear programmer:
// When I wrote this code, only god and
// I knew how it worked.
// Now, only god knows it!
//
// Therefore, if you are trying to optimize
// this routine and it fails (most surely),
// please increase this counter as a
// warning for the next person:
//
@Lukas-Heiligenbrunner
Lukas-Heiligenbrunner / down.sh
Last active March 5, 2020 16:40
OpenVPN DNS up/down script linux
#!/bin/bash
mv /etc/resolv.conf.orig /etc/resolv.conf
echo "[down] restoring old resolvconf"
@Lukas-Heiligenbrunner
Lukas-Heiligenbrunner / updateAllProxmox.sh
Last active February 19, 2023 21:26
Proxmox script to update all containers
#!/bin/bash
# update all containers
# execute on host
# list of container ids we need to iterate through
containers=$(pct list | tail -n +2 | cut -f1 -d' ')
function update_container() {
container=$1
echo "[UPDATER] Updating $container..."
@Lukas-Heiligenbrunner
Lukas-Heiligenbrunner / JDownloader.service
Last active October 22, 2023 11:58
JDownloader Service
[Unit]
Description=JDownloader Service
After=network.target
[Service]
ExecStart=java -jar JDownloader.jar
WorkingDirectory=/root/jd
StandardOutput=inherit
StandardError=inherit
Restart=always
User=root