Skip to content

Instantly share code, notes, and snippets.

@rrobertobt
rrobertobt / setup-chroot.sh
Last active June 11, 2021 20:08
Setting up a chroot enviroment from a live usb/cd in Fedora (UEFI) with BTRFS as filesystem with a root subvolume. Regenerate GRUB2 for Fedora. Create EFI entry
# Boot into the live enviroment
# Switch to root user
$ sudo su
# Get names of root, boot & EFI partition names
$ fdisk -l
# Mount root subvolume from BTRFS partition
$ mount -t btrfs -o subvol=name_of_root_subvol,defaults /dev/X /mnt/
@zengxinhui
zengxinhui / convert2arch_arm.sh
Last active September 10, 2025 11:18
Replace Oracle Cloud Linux with Arch Linux ARM remotely
[02/25/2025]
Refs:
1. http://os.archlinuxarm.org/os/ArchLinuxARM-aarch64-latest.tar.gz
2. https://dl-cdn.alpinelinux.org/alpine/v3.21/releases/aarch64/alpine-virt-3.21.3-aarch64.iso
3. https://wiki.alpinelinux.org/wiki/Replacing_non-Alpine_Linux_with_Alpine_remotely
4. https://wiki.archlinux.org/index.php/installation_guide#Configure_the_system
5. https://archlinuxarm.org/platforms/armv8/generic
See also:
@Jiab77
Jiab77 / create-DNS-over-TLS-bridge-with-pi-hole-unbound-and-stubby-on-ubuntu-server.md
Last active September 19, 2025 09:58
Few months ago, I've made a similar work but I wanted something a little more easier to manage. Please have a look at here for my previous work.

Create DNS-over-TLS bridge with Pi-hole, unbound and stubby on Ubuntu Server

Few months ago, I've made a similar work but I wanted something a little more easier to manage. Please have a look at here for my previous work.

This time, I'm gonna do pretty much the same thing but using Pi-hole as base then modify it to include unbound and stubby.

This way, I can use the power of Pi-hole with some additional security layers:

  • Recursive DNS check (unbound)
  • DNS-over-TLS (stubby)
@Tardo
Tardo / RPI4B.md
Last active May 22, 2023 11:23
Raspberry Pi 4B #RPI
@stokito
stokito / howto_webdav_lighttpd_turrisos.md
Last active September 22, 2025 02:53
WebDAV with Lighttpd on Turris Omnia (TurrisOS/OpenWRT)

Note

For a vanilla OpenWRT see WebDAV with Lighttpd on OpenWRT. Those instructions are slightly different.

What is this for?

You can turn your router into a small NAS and file server. Just connect an SSD into USB and install a WebDAV server which allows to get access to the disk. Then you need to connect to router via SSH which is a remote command line an execute the commands bellow.

@logan2611
logan2611 / README.md
Last active February 25, 2023 06:56
BTRFS maintenance
@jamiedevsandbox
jamiedevsandbox / really-interesting-repos
Last active July 14, 2024 20:48
Curated list of impressive repositories
https://github.com/github/training-kit
https://github.com/AdguardTeam/AdGuardHome
https://github.com/TH3xACE/SUDO_KILLER
https://github.com/simbody/simbody
https://github.com/matthieu-hackwitharts/Win32_Offensive_Cheatsheet
@khongi
khongi / .zshrc
Created April 23, 2021 07:34
Unraid Zsh with persistent config
# This is your .zshrc, put it in /boot/config/extra/
export ZSH="/root/.oh-my-zsh"
ZSH_THEME="robbyrussell"
DISABLE_UPDATE_PROMPT="true"
plugins=(
zsh-autosuggestions
@Juul
Juul / openwrt_dsa_vlan_config.md
Created April 20, 2021 14:03
Overview of VLAN config on OpenWRT using DSA

This a quick guide to configuring tagged VLAN using DSA on OpenWRT routers with a switch and only a single physical ethernet port.

This was tested on a Xiaomi Redmi AC2100 (MT7621 chipset) running OpenWRT Snapshot from April 19th 2021.

Here's how you make an interface lan3.2 which will send tagged packets on lan port 3. This assumes the lan port 3 interface is called lan3.

config interface 'pub'
        option ifname 'lan3.2'
@technorabilia
technorabilia / portainer_update_template_url.sh
Last active April 11, 2022 07:34
Update Portainer App Templates URL using Portainer API
BASE_URL='192.168.0.115:9000'
USERNAME='admin'
PASSWORD='mypassword'
TEMPLATES_URL='https://raw.githubusercontent.com/portainer/templates/master/templates-2.0.json'
JWT=$(
curl --silent --location --request POST "$BASE_URL/api/auth" \
--header "Content-Type: application/json" \
--data-raw "{
\"password\": \"$PASSWORD\",