Skip to content

Instantly share code, notes, and snippets.

@alexwenzel
alexwenzel / compress.sh
Last active February 12, 2024 19:32
create a directory backup and omit specific files and folders
#!/bin/bash
# add this script to crontab
# crontab -e
# 0 0 * * * /path/to/compress.sh /path/to/directory /path/to/output
# List of files and directories to omit
OMIT_LIST=(
"vendor/"
"node_modules/"
#!/bin/bash
while true; do
protonvpn c -r -p udp # connect to random udp
protonvpn s
command & # run in background
sleep 900
kill $! # kill last process
done
@alexwenzel
alexwenzel / scratch_9.php
Created May 3, 2022 19:06
Auftragserfassung: Inspector
<?php
use App\Nova\User;
use Illuminate\Database\Eloquent\Collection;
use Laravel\Nova\Fields\Select;
class Bla {
public function inspectorFields()
{
/** @var User $user */
We couldn’t find that file to show.