Skip to content

Instantly share code, notes, and snippets.

View alexfornuto's full-sized avatar
🏠
Writing Docs

Alex Fornuto alexfornuto

🏠
Writing Docs
View GitHub Profile
@alexfornuto
alexfornuto / try3.sh
Last active May 1, 2020 15:28
A bash function that tries a command 3 times before failing with exit code 1
try3 () {
for ((n=1;n<4;n++)); do
if ! "$@"
then
echo "failed $n times..."
if [[ $n = 3 ]]
then exit 1
fi
sleep 1
else
<?php
// Important constants :)
$pantheon_yellow = '#EFD01B';
// Default values for parameters - this will assume the channel you define the webhook for.
// The full Slack Message API allows you to specify other channels and enhance the messagge further
// if you like: https://api.slack.com/docs/messages/builder
$defaults = array(
'slack_username' => 'Pantheon-Quicksilver',
@alexfornuto
alexfornuto / immersed-config.sh
Created December 1, 2023 22:11
Install Immersed on Pop!_OS
#!/bin/bash
# Immersed on Pop!_OS
###############################################################################
# This script serves as documentation for how I installed Immersed and #
# configured the v42loopback device to load as needed by Immersed for the #
# virtual webcam on my system running Pop!_OS 22.04 LTS. It's provided as a #
# script so that others can read the comments to learn, and modify it as #
# needed to configure their systems automagically after a fresh install. #
@alexfornuto
alexfornuto / jellycheck.sh
Last active March 24, 2025 21:46
Script to monitor Jellyfin GPU Access
#!/bin/bash
#
# Author: Alex Fornuto <[email protected]>
#
##############################################################
# This script checks if the Jellyfin docker container #
# has access to the GPU, and restarts it if not. it #
# assumes an nvidia GPU and the native docker compose plugin #
##############################################################
@alexfornuto
alexfornuto / messageServer.sh
Last active February 14, 2024 22:33
Broadcast messages to a Palworld server
#!/bin/bash
#
# messageServer: A simple script to split input and format it for broadcast to
# a Palworld server using ARRCON (https://github.com/radj307/ARRCON).
#
# Author: Alex Fornuto 2024 <[email protected]>
input=$1
# For Debugging
#printf 'You entered: "%s"\n' "$input"