Skip to content

Instantly share code, notes, and snippets.

View juunini's full-sized avatar
:octocat:
I'm Feeling Lucky

Juunini juunini

:octocat:
I'm Feeling Lucky
View GitHub Profile
@juunini
juunini / youtube-studio-audio-storage-download-all.js
Last active April 3, 2025 00:23
youtube studio audio storage download all
function clickNextPage() {
const nextButton = document.querySelector("ytcp-icon-button#navigate-after");
nextButton.click();
}
async function sleep(ms) {
return new Promise(resolve => setTimeout(resolve, ms));
}
async function downloadAll() {
PYTHON_VERSION=3.13.2
sudo apt update -y; sudo apt install -y wget build-essential libssl-dev zlib1g-dev \
libbz2-dev libreadline-dev libsqlite3-dev curl git \
libncursesw5-dev xz-utils tk-dev libxml2-dev libxmlsec1-dev libffi-dev liblzma-dev
wget https://www.python.org/ftp/python/$PYTHON_VERSION/Python-$PYTHON_VERSION.tar.xz
xz -d Python-$PYTHON_VERSION.tar.xz
tar -xvf Python-$PYTHON_VERSION.tar
cd Python-$PYTHON_VERSION
@juunini
juunini / config.txt
Created December 22, 2024 12:31
/boot/firmware/config.txt
# change the cooling map
dtparam=fan_temp0=30000,fan_temp0_hyst=2000,fan_temp0_speed=90
dtparam=fan_temp1=32000,fan_temp1_hyst=3000,fan_temp1_speed=150
dtparam=fan_temp2=38000,fan_temp2_hyst=4000,fan_temp2_speed=200
dtparam=fan_temp3=42000,fan_temp3_hyst=5000,fan_temp3_speed=255
# SUMMARY:
#
# Build and push an image using Docker Buildkit.
#
# DESCRIPTION:
#
# This does not need privileged access, unlike Docker in Docker (DIND). It has three stages:
#
# * clone the Git repository
# * build the binary
#! /bin/bash
curl -s https://gist.githubusercontent.com/juunini/a30a6aad37d6e0b1c51c2418bf1664a3/raw/40fe0cdae6b5dd6ac6fd8e496dbf464f2b25d044/color.sh -o color.sh
source color.sh
rm color.sh
VERSION="v1.7.5"
INSTALL_VALIDATION_WEBHOOK="y"
echo -ne "Insert version [$RED$VERSION$COLOR_RESET] " && read _VERSION
#! /bin/bash
curl -s https://gist.githubusercontent.com/juunini/a30a6aad37d6e0b1c51c2418bf1664a3/raw/40fe0cdae6b5dd6ac6fd8e496dbf464f2b25d044/color.sh -o color.sh
source color.sh
rm color.sh
VERSION="v3.4.4"
PORT=2746
echo -ne "Insert version [$RED$VERSION$COLOR_RESET] " && read _VERSION
#! /bin/bash
curl -s https://gist.githubusercontent.com/juunini/a30a6aad37d6e0b1c51c2418bf1664a3/raw/40fe0cdae6b5dd6ac6fd8e496dbf464f2b25d044/color.sh -o color.sh
source color.sh
rm color.sh
PORT=3000
echo -en "Insert grafana port [$RED$PORT$COLOR_RESET]" && read _PORT
PORT=${_PORT:-$PORT}
#! /bin/bash
curl -s https://gist.githubusercontent.com/juunini/a30a6aad37d6e0b1c51c2418bf1664a3/raw/40fe0cdae6b5dd6ac6fd8e496dbf464f2b25d044/color.sh -o color.sh
source color.sh
rm color.sh
PORT=4000
echo -en "Insert argocd port [$RED$PORT$COLOR_RESET]" && read _PORT
PORT=${_PORT:-$PORT}
#! /bin/bash
curl -s https://gist.githubusercontent.com/juunini/a30a6aad37d6e0b1c51c2418bf1664a3/raw/40fe0cdae6b5dd6ac6fd8e496dbf464f2b25d044/color.sh -o color.sh
source color.sh
rm color.sh
PORT=8001
echo -en "Insert kubernetes-dashboard port [$RED$PORT$COLOR_RESET]" && read _PORT
PORT=${_PORT:-$PORT}
#! /bin/bash
curl -s https://gist.githubusercontent.com/juunini/a30a6aad37d6e0b1c51c2418bf1664a3/raw/40fe0cdae6b5dd6ac6fd8e496dbf464f2b25d044/color.sh -o color.sh
source color.sh
rm color.sh
PORT=8001
echo -en "Insert kubernetes-dashboard port [$RED$PORT$COLOR_RESET]" && read _PORT
PORT=${_PORT:-$PORT}