Skip to content

Instantly share code, notes, and snippets.

View yahesh's full-sized avatar
🦄
communicorning

Yahe yahesh

🦄
communicorning
View GitHub Profile
@yahesh
yahesh / yt-dlp.sh
Last active September 21, 2024 11:22
yt-dlp
#!/usr/bin/env bash
# iterate through all parameters
while [[ "$#" -gt "0" ]]
do
# get the source and target
filename="$1"
targetpath="${filename%.*}"
# ensure that the provided filename exists
@yahesh
yahesh / v02wg-quick
Last active September 6, 2024 20:12
v02wg-quick
#!/usr/bin/env bash
# set a default for the key file if none is given
if [[ -z "${V02ENC_KEY}" ]]
then
V02ENC_KEY="-"
fi
# set a de fault for the passphrase if non is given
if [[ -z "${V02ENC_PASSPHRASE}" ]]
@yahesh
yahesh / v02migrate
Created August 31, 2024 11:54
v02migrate
#!/usr/bin/env php
<?php
/*
Copyright (c) 2023-2024, Yahe
Copyright (c) 2016-2023, SysEleven GmbH
All rights reserved.
Redistribution and use in source and binary forms, with or without
modification, are permitted provided that the following conditions are met: