Skip to content

Instantly share code, notes, and snippets.

View Yimura's full-sized avatar
🎯
Always fixing stuff, raaaaagh

Andreas Maerten Yimura

🎯
Always fixing stuff, raaaaagh
  • PwC Belgium
  • OnGameTick();
  • 00:44 (UTC +01:00)
View GitHub Profile
@Yimura
Yimura / sys-btrfs.txt
Last active May 28, 2024 18:55 — forked from urwx/sys-btrfs.txt
Arch Linux Encrypted LVM Luks Btrfs Guide (EFI)
Arch Linux Encrypted LVM Luks Btrfs Guide (EFI)
# Wipe disk with random data (optional)
badblocks -c 10240 -s -w -t random -v /dev/sda
# Partition
parted -a minimal /dev/sda
- mklabel gpt
- unit Mib
- mkpart ESP fat32 0% 512
- set 1 boot on
- mkpart primary ext4 512 100%
@Yimura
Yimura / iterate_windows_drive_letters.cpp
Created October 19, 2023 13:49
Simple C++ program that gets all the available local driver letters and recursively goes over all the folders present under it.
#include <Windows.h>
#include <iostream>
#include <filesystem>
#include <string_view>
#include <vector>
int main()
{
char drives_available[MAX_PATH];
@Yimura
Yimura / main.cpp
Last active October 19, 2023 21:57
Unfinished registry wrapper to fetch and write registry keys.
#include "xcommon.hpp"
#include "reg_helper.hpp"
int main(int argc, const char **argv)
{
try
{
const auto internet_options = reg_helper<KEY_QUERY_VALUE | KEY_SET_VALUE>(HKEY_CURRENT_USER, "Software\\Microsoft\\Windows\\CurrentVersion\\Internet Settings");
auto proxy_enabled = internet_options.get_value<int>("ProxyEnable");