Skip to content

Instantly share code, notes, and snippets.

View Schwitzd's full-sized avatar
😍

Schwitzd Schwitzd

😍
View GitHub Profile
@Schwitzd
Schwitzd / mikrotik-UpdateContainerImage
Last active August 13, 2024 17:12
MikroTik script to update a single container
# Base container info
:local containerName "lego"
:local containerID [/container find comment~("" . $containerName)]
:log info "Starting container $containerName image update process..."
# Read container settings from the existing container
:local containerVeth [/container/get $containerID interface]
:local containerImage [/container/get $containerID tag]
:local containerEnvList [/container/get $containerID envlist]
:local containerMounts [/container/get $containerID mounts]
# Exports
export ZSH=/usr/share/oh-my-zsh
export ZSH_THEME=""
export ZSH_AUTOSUGGEST_HIGHLIGHT_STYLE='fg=60'
export EDITOR="vim"
export VAULT_ADDR=http://127.0.0.1:8200
# Man pages in Monokai-style
export LESS_TERMCAP_mb=$'\e[1;35m'
export LESS_TERMCAP_md=$'\e[1;33m'
@Schwitzd
Schwitzd / Hugo-PaperMod-CustomCSS.css
Last active May 12, 2024 06:28
Hugo-PaperMod-CustomCSS
a:hover {
color: rgb(161, 137, 186);
}
a.anchor:hover {
color: rgb(161, 137, 186) !important;
}
svg {
transition: transform 0.3s ease;
@Schwitzd
Schwitzd / vbox-guest-uefi.md
Last active May 20, 2024 16:40 — forked from reillysiemens/signing-vbox-kernel-modules.md
VirtualBox Guest Additions with UEFI & Secure Boot

VirtualBox Guest Additions with UEFI & Secure Boot

This guide provides instructions for installing VirtualBox Guest Additions in an environment where UEFI and Secure Boot are enabled. Additionally, it includes steps for signing VirtualBox Kernel Modules to ensure compatibility.

First setup

  1. Install VirtualBox Guest Additions
    sudo apt install -y build-essential dkms linux-headers-$(uname -r)

sudo /mnt/cdrom/VBoxLinuxAdditions.run --nox11

@Schwitzd
Schwitzd / .vimrc
Last active September 13, 2023 15:38
.vimrc
"" Basic behavior
set number " Show line numbers
set wrap " Wrap lines
set encoding=utf-8 " Set encoding to UTF-8
set wildmenu " Visual autocomplete for command menu
set lazyredraw " Redraw screen only when we need to
set showmatch " Highlight matching parentheses / brackets [{()}]
set laststatus=2 " Always show statusline (even with only single window)
set ruler " Show line and column number of the cursor on right side of statusline
set visualbell " Blink cursor on error, instead of beeping
@Schwitzd
Schwitzd / uBlock-filters.txt
Last active May 15, 2025 18:38
My personal uBlock Origin filters
! Title: Schwitzd Blocklist
! https://www.reddit.com/r/uBlockOrigin/wiki/solutions/
! www.corriere.it
corriere.it##.fullWide.wall-modal.tp-modal
corriere.it##.tp-active.tp-backdrop
corriere.it##.privacy-cp-wall
corriere.it##html,body:style(overflow: auto !important; position: static !important;)
corriere.it##.mediumWide.wall-modal.tp-modal
corriere.it###pno_manina_2024_inline