Skip to content

Instantly share code, notes, and snippets.

View malyzeli's full-sized avatar

Jiří Zelinka malyzeli

  • Prague, Czech Republic
View GitHub Profile
@malyzeli
malyzeli / port-forwarding-inside-local-network.md
Last active May 17, 2025 20:05
Port forwarding inside local network

Port forwarding inside local network

Problem introduction

This guide is meant to solve the issue when using TrueNAS Scale apps with Nginx Proxy Manager, which is not running on default HTTP(S) ports because those are already used by TrueNAS web interface.

_In case of isolated TrueNAS instance it's possible to change web interface ports so Nginx proxy can use HTTP(S) defaults, but that configuration

@malyzeli
malyzeli / 00-update.sh
Last active December 30, 2022 01:23
Xubuntu setup scripts
apt update
@malyzeli
malyzeli / output.js
Last active May 5, 2020 01:06
Material-UI Create Color Styles
const output = {
textError: {
color: "#b00020",
"&:hover": {
backgroundColor: "rgba(176, 0, 32, 0.04)",
"@media (hover: none)": { backgroundColor: "transparent" },
},
},
textWarning: {
color: "#cc6600",
@malyzeli
malyzeli / apt-list.sh
Last active November 10, 2019 16:16
List explicitly installed packages on Ubuntu
# Filters packages installed by system using logs from `/var/log/installer/initial-status.gz`
# source: https://unix.stackexchange.com/a/80520
comm -13 \
<(gzip -dc /var/log/installer/initial-status.gz | sed -n 's/^Package: //p' | sort) \
<(comm -23 \
<(dpkg-query -W -f='${Package}\n' | sed 1d | sort) \
<(apt-mark showauto | sort) \
)
@malyzeli
malyzeli / docker-aliases.sh
Last active May 10, 2021 14:31
Docker shell aliases
alias dps="sudo docker ps -a --format \"table {{.Names}}\t{{.Status}}\t{{.Ports}}\""
alias dpi="sudo docker ps -a --format \"table {{.Names}}\t{{.ID}}\t{{.Image}}\""
# sorting
#> dps | sort
#> dps | sort -k 2