Skip to content

Instantly share code, notes, and snippets.

View jovalle's full-sized avatar

Jay Ovalle jovalle

View GitHub Profile
@jovalle
jovalle / marvel-rivals-reticles.md
Created January 22, 2025 02:30
Created by Merchant

This took a long time to prepare, so please consider subscribing to the YouTube 🙂 (https://www.youtube.com/@MarvelRivalsMerchant)

Note: If you’d like more than 5 crosshairs at once, you cannot use the reticle save feature. Instead, you must click on each hero and enter the details manually. The settings will then be saved to each individual hero

It is highly recommended you manually enter settings for each hero, and then never use the import/save function as this will override settings and limit you to only 5 custom crosshairs.

# Define the path to the directory containing video files
$directoryPath = "W:\misc\video"
# Define the video file extensions to include
$videoExtensions = @(".mp4", ".avi", ".mkv", ".mov", ".wmv", ".flv", ".webm") # Add other video file extensions if needed
# Function to open a random video
function Open-RandomVideo {
try {
# Get all video files in the directory
@jovalle
jovalle / proxmox.md
Last active August 22, 2024 00:29 — forked from scyto/proxmox.md
proxmox cluster proof of concept

ProxMox Cluster - Soup-to-Nutz

aka what i did to get from nothing to done.

note: these are designed to be primarily a re-install guide for myself (writing things down helps me memorize the knowledge), as such don't take any of this on blind faith - some areas are well tested and the docs are very robust, some items, less so). YMMV

Purpose of Proxmox cluster project

Required Outomces of cluster project

@jovalle
jovalle / fast_firefox.md
Created July 9, 2024 22:20 — forked from RubenKelevra/fast_firefox.md
Make Firefox fast again
#!/bin/bash
# for url in $(cat '/music/artist-urls.txt'); do bash zotify.sh ${url}; done
URLS=./artists.txt
if [[ $# -gt 0 ]]
then
if [[ $1 != '' ]]
then
@jovalle
jovalle / .bashrc
Last active September 8, 2022 20:18
Shortcuts to useful tools using Docker
# glances - detailed view into host resource consumption
alias glances='docker run --rm -v /var/run/docker.sock:/var/run/docker.sock:ro -e GLANCES_OPT="-1" --pid host --network host -it nicolargo/glances:3.2.0-full'
# nvtop - top for GPUs
alias nvtop='docker run -it --rm --runtime=nvidia --gpus=all --pid=host jovalle/nvtop:2.0.2'
# unrar - decompress rar archives
unrar() {
docker run --rm -v $PWD:/files maxcnunes/unrar:latest unrar e -r /files/$1
}
helm repo add cilium https://helm.cilium.io
helm repo update
helm install tetragon cilium/tetragon -n kube-system --set tetragon.exportDenyList=""
kubectl rollout status -n kube-system ds/tetragon -w
wget https://github.com/cilium/tetragon/releases/download/tetragon-cli/tetragon-linux-amd64.tar.gz
tar xvzf tetragon-linux-amd64.tar.gz
chmod +x tetragon
sudo mv tetragon /usr/local/bin/
@jovalle
jovalle / haproxy.cfg
Created June 9, 2022 14:46
HAproxy serving apps on multiple Kubernetes clusters with same public domain
global
maxconn 1000
stats socket /tmp/haproxy.socket level admin expose-fd listeners
uid 80
gid 80
nbproc 1
nbthread 1
hard-stop-after 15m
chroot /tmp/haproxy_chroot
daemon
@jovalle
jovalle / pihole-monitoring.sh
Last active December 1, 2021 02:51
Set up monitoring on pihole
# fix repo changes in debian
apt-get --allow-releaseinfo-change update
# install docker
curl -sSL https://get.docker.com | sudo sh
# install pihole-exporter
docker run -d --network="host" -e 'PIHOLE_HOSTNAME=127.0.0.1' -e "$(awk -F= -v key="WEBPASSWORD" '$1==key {print $2}' /etc/pihole/setupVars.conf)" -e 'INTERVAL=10s' -e 'PORT=9617' -p 9617:9617 ekofr/pihole-exporter:v0.0.11
# install node-exporter
// https://www.saintlad.com/mass-unsubscribe-youtube-channels-at-once/
var i = 0;
var myVar = setInterval(myTimer, 3000);
function myTimer () {
var els = document.getElementById("grid-container").getElementsByClassName("ytd-expanded-shelf-contents-renderer");
if (i < els.length) {