Skip to content

Instantly share code, notes, and snippets.

View internetztube's full-sized avatar

Frederic Köberl internetztube

View GitHub Profile
# Atomic Deployment with Laravel Forge
# Native .env handling via Laravel Forge GUI
# Support for nodejs via nvm.
# Persistent Folders!
# No need for Envoyer!
# Installation
# * Update CONF_GIT_REPOSITORY to match your Git Repository.
# * Update persistent folders as needed.
#!/bin/sh
# Install Hetzner Cloud Floating IP on Ubuntu 20.4 or Ubuntu 22.04 machine.
# https://docs.hetzner.com/de/cloud/floating-ips/persistent-configuration/
# Check if the script is being run as root or with sudo privileges
if [ "$(id -u)" -ne 0 ]; then
echo "This script requires root or sudo privileges to run."
exit 1
fi
@internetztube
internetztube / image-convert.sh
Last active April 29, 2023 19:13
Bulk Convert Images on MacOS
#!/usr/bin/env bash
set -e
function checkFolder() {
if ! [ -d "$1" ]; then
echo ""
echo "Folder not found."
exit 1
fi
@internetztube
internetztube / README.md
Last active August 20, 2021 18:18
Nuxt Inline SVG Symbols
@internetztube
internetztube / bpw16-nachkommerstellen.php
Last active December 26, 2020 09:59
#bpw16 Nachkommerstellen
<?php
// by Frederic Köberl - https://frederickoeberl.com - frederic.koeberl@gmail.com
$url = 'http://wahltube.orf.at/bpw16stichwahl/hochrechnung.json';
$document = @file_get_contents($url);
$document = json_decode($document);
$hofer = $document->hochrechnungen[0]->parteien[0]->stimmen;
$vdb = $document->hochrechnungen[0]->parteien[1]->stimmen;