Skip to content

Instantly share code, notes, and snippets.

View JucaRei's full-sized avatar
:electron:
Focusing

JucaRei

:electron:
Focusing
View GitHub Profile
@FreddieOliveira
FreddieOliveira / docker.md
Last active October 16, 2025 15:58
This tutorial shows how to run docker natively on Android, without VMs and chroot.

Docker on Android 🐋📱

Edit 🎉

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.


Summary

@unrooted
unrooted / initSystemsCheatSheet.md
Created December 31, 2020 11:58
init systems cheat sheet

Manage services in systemd, openRC and runit

systemd

  • list all services: systemctl list-unit-files
  • list running services status: systemctl list-units
  • list failed services: systemctl --failed
  • list available services: systemctl --all
  • start a service: systemctl start [SERVICE_NAME]
  • stop a service: systemctl stop [SERVICE_NAME]
@plembo
plembo / debianvmvirtinst.md
Last active July 24, 2025 17:24
Install a Debian VM using virt-install

Installing a Debian VM with virt-install on KVM (libvirtd)

This turned out to be easier than I thought it would, especially after struggling with Ubuntu.

Both procedures use a common debian.env file to hold environment variables applied in the script.

When installing Debian always be sure to select an apt mirror when prompted, if you don't you'll regret it.

Environment variables

In a file, debian.env:

@CodeSigils
CodeSigils / artix.sh
Last active May 28, 2025 11:49
Artix - ZFS - OpenRc and Refind bootloader
#!/usr/bin/env bash
## TITLE: Install and setup basic Artix - ZFS - OpenRc - rEFInd
## TODO: Make proper install scripts from this gist
## EFI SETUP: https://wiki.archlinux.org/index.php/EFI_system_partition
## ARTIX: https://wiki.artixlinux.org/Main/InstallationOnZFS
## REFIND: https://www.rodsbooks.com/refind/installing.html#linux
## INSTALL: https://wiki.artixlinux.org/Main/Installation
## ARCHZFS: https://www.youtube.com/watch?v=kPNcRSSaYQo
@eoli3n
eoli3n / root-podman-wayland.sh
Last active July 19, 2025 19:19
Run an application with dbus and wayland sockets in a rootless podman container
# Install docker or podman package on your distro (podman doesn't need a daemon like dockerd to work). All args are exactly same, just replace ``podman`` with ``docker`` in command if you want to.
sudo pacman -S podman
# Run an archlinux container with dbus and wayland sockets.
sudo podman run \
--volume "$XDG_RUNTIME_DIR/$WAYLAND_DISPLAY":/tmp/wayland-0 \
--device /dev/dri \
--volume /run/user/1000/bus:/tmp/bus \
--rm -it archlinux /bin/bash
@tur1ngb0x
tur1ngb0x / qt-theme-fix.md
Last active August 14, 2023 07:40
Fixing theming issues on QT apps on any desktop environment

Fixing theming issues on QT apps on any desktop environment

Install Breeze package (qt theme, gtk theme, styles, icons)

Arch

sudo pacman -S breeze breeze-gtk

Debian

@gustavohenrique
gustavohenrique / lxd-snippets.md
Last active July 18, 2024 14:05
Basic commands to run LXD containers

install

sudo snap install lxd && lxd init

Init

lxd init --preseed <<EOF
@oofnikj
oofnikj / answerfile
Last active September 25, 2025 05:43
Install Docker on Termux
KEYMAPOPTS="us us"
HOSTNAMEOPTS="-n alpine"
INTERFACESOPTS="auto lo
iface lo inet loopback
auto eth0
iface eth0 inet dhcp
hostname alpine
"
TIMEZONEOPTS="-z UTC"
@afmiguez
afmiguez / wsl-kvm.sh
Last active November 17, 2024 19:18
Script to enable KVM in WSL2
#Fully based on https://boxofcables.dev/accelerated-kvm-guests-on-wsl-2/
if [ -z "$1" ]
then
echo "Must supply your Windows 10 username"
exit
fi
WIN_USERNAME=$1
#package updates and installations