Skip to content

Instantly share code, notes, and snippets.

@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:

@zen0bit
zen0bit / void.md
Created October 29, 2020 20:16 — forked from dko1905/void.md
A guide to install void linux with encrypted root and unencrypted root, with lvm2. (AES-512, lvm)

Encrypted Void Linux setup w/o encrypted boot

This is a guide for installing Void Linux on an EFI system with non encrypted boot and encrypted root. The guide is based on practical paranoid article and official Void Linux article.

Before you start

I wrote this guide to help myself installing Void Linux w/o encrypted boot. I haven't checked it for grammar errors, so there might be some. I hope it will help you, and good luck. And I know that I use way to many pictures/terminal copy paste.

Disclaimer

I am not responsible for any actions you take! This guide was written 2/7/2020, so the info may be outdated. Please remember to use your own computer's partition names.

Required items

@zen0bit
zen0bit / void-android.sh
Created April 30, 2020 08:26 — forked from ndgnuh/void-android.sh
script to install voidlinux on android/firefoxos devices via adb
#!/bin/sh
# TODO
# - check free disk
# - check return values for every command
V=/data/void
DNS=8.8.8.8
URL=http://xbps.nopcode.org/rootfs/
ROOTFS=void-raspberrypi-rootfs-20191111.tar.xz
@zen0bit
zen0bit / rc.xml
Created February 16, 2020 04:53 — forked from downthecrop/rc.xml
A Better Aero Snap with Openbox
<!-- Window Tiling: Emulates Windows 7 Snap feature JASON CAVETT -->
<keybind key="W-Left">
<action name="UnmaximizeFull"/>
<action name="MaximizeVert"/>
<action name="MoveResizeTo">
<width>50%</width>
</action>
<action name="MoveToEdgeWest"/>
</keybind>
<keybind key="W-Right">
@zen0bit
zen0bit / fucktheskullofsystemd.sh
Created April 1, 2019 09:09
Converting vanilla Arch to Artix openrc or runit - WIP for runit
:
echo Starting operation FUCKTHESKULLOFSYSTEMD
[[ $1 == openrc ]] && init=openrc
[[ $1 == runit ]] && init=runit
[[ $init ]] || { echo "Usage: $0 <openrc|runit>" ; exit 1; }
echo "================="
echo " Init: $init "
@zen0bit
zen0bit / Windows 10 key combos
Created January 8, 2017 06:28 — forked from CHEF-KOCH/Windows 10 key combos
Windows 10 key combos
❖ + Tab Task View
❖ + A Action Center
❖ + C Cortana
❖ + D Shows Desktop
❖ + E Opens (File-)Explorer
❖ + G Xbox-Button for in-game screenshots
❖ + H Share Feature (in apps)
❖ + I Opens the new Win 10 settings dialog
❖ + K Stream feature
❖ + L Lock the current session