Skip to content

Instantly share code, notes, and snippets.

View wootar's full-sized avatar
💭
Just go to my gitlab account

. wootar

💭
Just go to my gitlab account
  • toilet flushing
  • yo mama's house
View GitHub Profile
@wootar
wootar / fucktheskullofsystemd.sh
Created April 9, 2022 11:25 — forked from artixnous/fucktheskullofsystemd.sh
Fast convert systemd Arch to OpenRC Artix
#!/bin/bash
# nous,2019-2020
# How to use
# wget https://tiny.cc/fucksystemd
# chmod +x fucksystemd
# sudo ./fucksystemd
# Test Arch ISO installation:
# cfdisk /dev/sda
@wootar
wootar / how2getroot.md
Created April 9, 2022 05:20
How to get root via docker

WARNING: Please do not abuse this trick

So your like me right? You've removed yourself from sudo or wheel group while trying to add yourself to the docker group

And you wanna keep your uptime or don't wanna connect cables to fix it on your homeserver, so here's the guide

Step 1: run docker run --rm -it -v /:/rootfs busybox:1.35.0

If you run docker as root or via a service, you can do ANYTHING on the rootfs in the container