Skip to content

Instantly share code, notes, and snippets.

@tiagogbarbosa
tiagogbarbosa / cybree-debian-upgrade-script.md
Last active December 6, 2025 20:41 — forked from Bonveio/cybree-debian-upgrade-script.md
Cybree upgrade script (10 >> 11 >> 12 >> 13)

download script:

wget -O upgrade.sh 'https://gist.github.com/Bonveio/bb40b778b33ef06868c14c0240f25967/raw/upgrade.sh'

usage:

  • Debian 10 to 11 bash upgrade.sh 11
  • Debian 11 to 12 bash upgrade.sh 12
  • Debian 12 to 13 bash upgrade.sh 13
@tiagogbarbosa
tiagogbarbosa / wsl-info.md
Created August 25, 2024 08:22 — forked from WillianTomaz/wsl-info.md
Instruções do WSL (Instalação, Backup e Restauração)

Instruções para Instalação, Backup e Restauração do WSL 2

  • Observação:

    • Sempre buscar pela documentação oficial, este documento é um tutorial
      que pode não te atender conforme tenha novas atualizações do processo de instalação.
    • As referências estão no final do documento.
  • Foi utilizado:

    • Windows 10
@tiagogbarbosa
tiagogbarbosa / raspbian-bookworm-minimal-kiosk.md
Created June 15, 2024 01:44 — forked from seffs/raspbian-bookworm-minimal-kiosk.md
Raspbian Bookworm - Ultra Minimal Kiosk Setup

This was tested on a fresh Raspbian Bookworm Lite installation. Proceed with caution.

EDIT 23/12/2023: Removed dead download link and added own release

EDIT 09/06/2024: Force wayland after install


First Steps

Update your system

@tiagogbarbosa
tiagogbarbosa / zfsbench
Created May 2, 2024 08:28 — forked from mergwyn/zfsbench
ZFS benchmarking using fio
#!/usr/bin/env bash
set -o errexit
echo $(date):Random read
fio --filename=test --sync=1 --rw=randread --bs=4k --numjobs=1 \
--iodepth=4 --group_reporting --name=test --filesize=10G --runtime=300 && rm test
echo $(date):Random write
fio --filename=test --sync=1 --rw=randwrite --bs=4k --numjobs=1 \
@tiagogbarbosa
tiagogbarbosa / proxmox_lxc_pct_provisioner.sh
Created April 18, 2024 05:49 — forked from tinoji/proxmox_lxc_pct_provisioner.sh
Create and provision Proxmox LXC by pct command
pct create <id> /var/lib/vz/template/cache/centos-7-default_20170504_amd64.tar.xz \
-arch amd64 \
-ostype <centos|ubuntu|etc> \
-hostname <hostname> \
-cores <cores> \
-memory <memory(MB)> \
-swap <swap(MB)> \
-storage local-lvm \
-password \
-net0 name=eth0,bridge=<bridge>,gw=<gateway>,ip=<cidr>,type=veth &&\
@tiagogbarbosa
tiagogbarbosa / sources.list
Created February 21, 2024 20:44 — forked from h0bbel/sources.list
/etc/apt/sources.list for Ubuntu 18.04.1 LTS Bionic Beaver
# See http://help.ubuntu.com/community/UpgradeNotes for how to upgrade to
# newer versions of the distribution.
deb http://us.archive.ubuntu.com/ubuntu/ bionic main restricted
# deb-src http://us.archive.ubuntu.com/ubuntu/ bionic main restricted
## Major bug fix updates produced after the final release of the
## distribution.
deb http://us.archive.ubuntu.com/ubuntu/ bionic-updates main restricted
# deb-src http://us.archive.ubuntu.com/ubuntu/ bionic-updates main restricted
@tiagogbarbosa
tiagogbarbosa / README.md
Created September 23, 2023 16:17 — forked from woblerr/README.md
Docker containers logs clearing script

Docker containers logs clearing script

chmod +x ./clear_docker_container_logs.sh

Usage

Usage: ../clear_docker_container_logs.sh [-c ""]
@tiagogbarbosa
tiagogbarbosa / syno-vpn-keepalive.sh
Created May 13, 2021 13:29 — forked from hannesbe/syno-vpn-keepalive.sh
Script to keep VPN alive on Synology DSM. Checks if IP is pingable and if not: disconnect VPN, reconnect VPN & add routes
# syno-vpn-keepalive.sh
# ---
# Script to keep VPN alive on Synology DSM.
# Checks if IP is pingable and if not:
# disconnect VPN, reconnect VPN & add routes
# ---
# Modify vars:
# - CHECKIP: IP to check to be pingable before reconnecting VPN
# - NAME (Synology VPN name),
# - ID (Synology VPN ID), SSH to NAS & run this to find ID
#!/usr/bin/python3
import time
import os
from watchdog.observers import Observer
from watchdog.events import *
CMD_MOUNT = "modprobe g_mass_storage file=/piusb.bin stall=0 ro=1"
CMD_UNMOUNT = "modprobe -r g_mass_storage"
CMD_SYNC = "sync"