Skip to content

Instantly share code, notes, and snippets.

@zen0bit
zen0bit / auto-void.sh
Created August 28, 2025 17:58 — forked from Speyll/auto-void.sh
Short, simple and easy to understand shell scripts to automate Void Linux post-installation with a wayland setup, you can play around with it as you see fit.
#!/bin/sh
# Void Linux Post-Installation Script for Wayland
# Author: Speyll
# Last-update: 20-03-2025
# Enable debugging output and exit on error
set -x
# Add multilib and nonfree repositories
sudo xbps-install -Sy void-repo-nonfree
@zen0bit
zen0bit / bash-cheatsheet.sh
Created January 16, 2025 08:52 — forked from LeCoupa/bash-cheatsheet.sh
Bash CheatSheet for UNIX Systems --> UPDATED VERSION --> https://github.com/LeCoupa/awesome-cheatsheets
#!/bin/bash
#####################################################
# Name: Bash CheatSheet for Mac OSX
#
# A little overlook of the Bash basics
#
# Usage:
#
# Author: J. Le Coupanec
# Date: 2014/11/04
@zen0bit
zen0bit / git-get
Created February 29, 2024 05:09 — forked from rymndhng/git-get
Git Get
#!/bin/bash -x
#
# Clones Git Projects into directory of <projects_dir>/<group>/<repo_name>
#
# Tested with support for Github, Bitbucket & Sourcehut.
#
# By default, clones to $HOME/projects. This can be overriden by setting
# GIT_GET_PROJECTS_DIR to another directory.
#
# Usage:

Demo:

Spoiler warning

Spoiler text. Note that it's important to have a space after the summary tag. You should be able to write any markdown you want inside the <details> tag... just make sure you close <details> afterward.

console.log("I'm a code block!");
Setting up xbps-src
Docs
1: https://wiki.voidlinux.eu/Xbps-src
2: https://github.com/voidlinux/void-packages/blob/master/Manual.md
3: https://github.com/voidlinux/void-packages/blob/master/README.md
clone https://github.com/voidlinux/void-packages.git
$ xbps-install xtools
@zen0bit
zen0bit / sugh.sh
Created December 3, 2021 01:32 — forked from erdincay/sugh.sh
su GitHub (downloading all repositories from a given user)
#!/bin/bash
if [ -z "$1" ]; then
echo "waiting for the following arguments: username + max-page-number"
exit 1
else
name=$1
fi
if [ -z "$2" ]; then
@zen0bit
zen0bit / git-pushing-multiple.rst
Created September 10, 2021 07:17 — forked from rvl/git-pushing-multiple.rst
How to push to multiple git remotes at once. Useful if you keep mirrors of your repo.

Pushing to Multiple Git Repos

If a project has to have multiple git repos (e.g. Bitbucket and Github) then it's better that they remain in sync.

Usually this would involve pushing each branch to each repo in turn, but actually Git allows pushing to multiple repos in one go.

If in doubt about what git is doing when you run these commands, just

@zen0bit
zen0bit / git-pushing-multiple.rst
Created September 10, 2021 07:16 — forked from msztorc/git-pushing-multiple.rst
How to push to multiple git remotes at once. Useful if you keep mirrors of your repo.

Pushing to Multiple Git Repos

If a project has to have multiple git repos (e.g. Bitbucket and Github) then it's better that they remain in sync.

Usually this would involve pushing each branch to each repo in turn, but actually Git allows pushing to multiple repos in one go.

If in doubt about what git is doing when you run these commands, just

@zen0bit
zen0bit / void-install.sh
Created August 28, 2021 22:28
void-install.sh - Simple Void Linux unattended installation script
#!/bin/bash
ROOT=/mnt
DEV=${DEV:-/dev/vda}
BOOTDEV=${DEV}1
LVMDEV=${DEV}2
ROOTDEV=/dev/Main/Root
HOST=${HOST:-void-linux}
REPO=${REPO:-http://repo.voidlinux.com/current}
EXTRAS=${EXTRAS:-"rsync vim tmux socklog-void sv-helper"}
interactive=$1
@zen0bit
zen0bit / install-weston-void-linux.md
Created August 25, 2021 01:46 — forked from adnan360/install-weston-void-linux.md
Basic Guide on how to install and use Weston (Wayland) on Void Linux (without SystemD)

How to Install and Use Weston (Wayland) on Void Linux (without SystemD)

sudo xbps-install weston
sudo usermod -a -G weston-launch `whoami`

Reboot to update the group assignment.

Now we can prepare the config. Let's create the file: