Skip to content

Instantly share code, notes, and snippets.

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

JucaRei

:electron:
Focusing
View GitHub Profile
@vncsna
vncsna / bash_strict_mode.md
Created June 6, 2021 01:59 — forked from mohanpedala/bash_strict_mode.md
set -e, -u, -o, -x pipefail explanation

set -e, -u, -o, -x pipefail

The set lines

  • These lines deliberately cause your script to fail. Wait, what? Believe me, this is a good thing.
  • With these settings, certain common errors will cause the script to immediately fail, explicitly and loudly. Otherwise, you can get hidden bugs that are discovered only when they blow up in production.
  • set -euxo pipefail is short for:
set -e
set -u
@Lissy93
Lissy93 / Example 1 - Getting Started - conf.yml
Last active April 12, 2025 02:51
Example Config Files for Dashy
---
# 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
@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]
@CodeSigils
CodeSigils / artix.sh
Last active August 19, 2022 01:45
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 April 11, 2025 09:24
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"