Skip to content

Instantly share code, notes, and snippets.

@morphykuffour
morphykuffour / i3-swallow.py
Created August 16, 2021 21:40 — forked from windwp/i3-swallow.py
i3-swallow used to swallow a terminal window in i3
#!/usr/bin/env python3
#-----------------------------------------------
# used to swallow a terminal window in i3
#
# INSTALL
# Install python 3 and install i3ipc libary
# pip3 install i3ipc
# download this scrript and put it to your i3 config folder and run
@morphykuffour
morphykuffour / LXCBindMount.md
Created January 8, 2022 15:45 — forked from ajmassi/LXCBindMount.md
Create a bind mount from a Proxmox host on an unprivileged lxc container

Proxmox Assign Bind Mount To Unprivileged Container

In order for the LXC container to have full access the proxmox host directory, a subgid is set as owner of a host directory, and an ACL is used to ensure permissions.

Bind Mount dataset to LXC

Add the following line to /etc/pve/lxc/<CT_ID>.conf

mp0:/mount/point/on/host,mp=/mount/point/on/lxc

Create group on host

In the default Proxmox configuration, unpriviliged container subgids will have the prefix "10" followed by the expected 4-digit gid.

@morphykuffour
morphykuffour / install-nix-no-root.sh
Created November 2, 2022 03:44 — forked from jfroche/install-nix-no-root.sh
Nix install without root access
function install_nix() {
set -x
local -r bindir="${HOME}/bin"
local -r proot_url="https://github.com/proot-me/proot/releases/download/v5.3.0/proot-v5.3.0-x86_64-static"
local -r nixdir="${HOME}/mnt/nix"
local -r nixver="2.5.1"
local -r arch="x86_64"
local -r os="linux"
local -r nix_url="https://releases.nixos.org/nix/nix-${nixver}/nix-${nixver}-${arch}-${os}.tar.xz"
local -r nix_cli_dir=nix-${nixver}-${arch}-${os}