Run a nix container with podman, with the container destination mounted as /mnt
:
DEST=~/containers/nixos
mkdir -p $DEST/{dev,proc,etc/nixos}
podman run -v $DEST:/mnt -it --rm --cap-add SYS_ADMIN docker.io/nixos/nix:latest
# Example docker-compose.yml for plex. | |
version: "2" | |
services: | |
plex: | |
image: plexinc/pms-docker:plexpass | |
runtime: nvidia | |
container_name: "plex" | |
restart: always | |
hostname: "MY-PLEX" | |
volumes: |
#!/usr/bin/env zsh | |
playlistUrl="$1"; | |
numParallelDownloads="${2:-5}"; | |
numParallelFragments="${3:-5}"; | |
[[ -z "$playlistUrl" ]] && echo 'i need a url to a yt playlist please.' >&2 && exit 1; | |
[[ "$numParallelDownloads" =~ '^[^0-9]+$' ]] && echo "expected parameter 2 to be the number of parallel downloads, got '$numParallelDownloads'." >&2 && exit 1; | |
[[ "$numParallelFragments" =~ '^[^0-9]+$' ]] && echo "expected parameter 3 to be the number of parallel fragments, got '$numParallelFragments'." >&2 && exit 1; |
{ pkgs, ... }: | |
# Based on https://wiki.archlinux.org/title/Nftables#Working_with_Docker | |
let | |
dockerHostName = "dockernet"; | |
hostip = "${pkgs.util-linux}/bin/nsenter --target 1 --net -- ${ip}"; | |
ip = "${pkgs.iproute2}/bin/ip"; | |
dockerNsSetupScript = pkgs.writeShellScript "docker-netns-setup" '' |
O roteador Askey RTF3507VW-N1 fornecido pela Vivo tem vários problemas:
dnsmasq
?) bugado:
ao fazer a mesma requisição DNS duas vezes seguidas, a primeira resposta
vem correta, porém na seguinte temos:
The set
lines
set -euxo pipefail
is short for:set -e
set -u
--- | |
# Page meta info, like heading, footer text and nav links | |
pageInfo: | |
title: Dashy | |
description: Welcome to your new dashboard! | |
navLinks: | |
- title: GitHub | |
path: https://github.com/Lissy93/dashy | |
- title: Documentation | |
path: https://dashy.to/docs |
All packages, except for Tini have been added to termux-root. To install them, simply pkg install root-repo && pkg install docker
. This will install the whole docker suite, left only Tini to be compiled manually.
systemctl list-unit-files
systemctl list-units
systemctl --failed
systemctl --all
systemctl start [SERVICE_NAME]
systemctl stop [SERVICE_NAME]