Skip to content

Instantly share code, notes, and snippets.

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

JucaRei

:electron:
Focusing
View GitHub Profile
@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 March 11, 2025 20: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

@soanvig
soanvig / linux-programs.md
Last active January 21, 2024 22:28
Linux nice programs

GNU Alternatives

  1. top/htop -> bpytop, bottom
  2. ps -> procs
  3. cat -> bat
  4. sed -> sad
  5. find -> fd
  6. du -> ncdu -> gdu

Nice programs

@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 July 2, 2025 22:40
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
@mjlbach
mjlbach / gccEmacs.md
Last active December 6, 2023 10:34
Installing gccEmacs (native-comp) with Nix

WARNING: THIS GIST IS OUT OF DATE AND NO LONGER RELEVANT

  • Native-comp was enabled by default in nixpgks
  • Pgtk is not enabled by default, for that you can either override the derivation or use emacsPgtk from the nix-community emacs overlay if you don't want to build it yourself

Nix

Adding the overlay and configuring cachix

@walkermalling
walkermalling / luks-encrypted-root-on-nixos.org
Last active April 5, 2025 13:06
Nix Setup with LUKS encrypted root

Setting up NixOs with LUKS encrypted root

Here are my working notes on getting a system up and running.

WARNING: You can run into a hidden problem that will prevent a correct partition setup and /etc/nixos/configuration.nix from working: if you are setting up a UEFI system, then you need to make sure you boot into the NixOS installation from the UEFI partition of the bootable media. You may have to enter your BIOS boot selection menu to verify this. For example, if you setup a NixOS installer image on a flash drive, your BIOS menu may display several boot options from that flash drive: choose the one explicitly labeled with “UEFI”.

References

I used these resources: