Skip to content

Instantly share code, notes, and snippets.

View zxpower's full-sized avatar

Reinholds Zviedris zxpower

View GitHub Profile
@zxpower
zxpower / dual-boot.md
Created September 6, 2025 14:16 — forked from shimeoki/dual-boot.md
Windows 11 + Arch Linux dual-boot (systemd-boot) installation guide with encrypted partitions (BitLocker and LUKS respectively) and Secure Boot (UEFI)

My Windows 11 + Arch Linux dual-boot installation

Caution

All actions are at your own risk! This has been tested by me, but does not guarantee your success.

Read everything at least once before actually following the guide. If something goes wrong, stop immediately. Consider starting from the beginning.

About the guide

@zxpower
zxpower / signoff
Created May 17, 2024 08:55 — forked from dhh/signoff
#!/usr/bin/env bash
# Abort sign off on any error
set -e
# Start the benchmark timer
SECONDS=0
# Repository introspection
OWNER=$(gh repo view --json owner --jq .owner.login)
@zxpower
zxpower / windows_hardening.cmd
Created September 20, 2022 15:13 — forked from ricardojba/windows_hardening.cmd
A Windows hardening script
::##########################################################################################################################
::
:: This script can ruin your day, if you run it without fully understanding what it does, you don't know what you are doing,
::
:: OR BOTH!!!
::
:: YOU HAVE BEEN WARNED!!!!!!!!!!
::
:: This script is provided "AS IS" with no warranties, and confers no rights.
:: Feel free to challenge me, disagree with me, or tell me I'm completely nuts in the comments section,
@zxpower
zxpower / base64encode.py
Created June 14, 2022 14:14
Simple Python script to base64encode a string
import base64
import argparse
data = ""
def encode(string):
# Standard Base64 Encoding
encodedBytes = base64.b64encode(string.encode("utf-8"))
return str(encodedBytes, "utf-8")
@zxpower
zxpower / yaml-splitter.py
Created May 20, 2022 16:12
Little Python script to split one big YAML manifest into multiple documents
import yaml
from yaml.loader import SafeLoader
import argparse
dry_run = False
zeros = '000'
output_dir = ''
def yaml_as_python(val):
### Keybase proof
I hereby claim:
* I am zxpower on github.
* I am zxpower (https://keybase.io/zxpower) on keybase.
* I have a public key ASB9OPywElMxR9dCoAHqC38nwnzy4fwh4ZqYMCt9_UnRoQo
To claim this, I am signing this object: