Skip to content

Instantly share code, notes, and snippets.

View tribhuwan-kumar's full-sized avatar

tribhuwan tribhuwan-kumar

View GitHub Profile
@tribhuwan-kumar
tribhuwan-kumar / luks-setup.md
Created December 7, 2025 03:53
install arch linux with luks encryption
sudo wipefs -a /dev/sdX
sudo sgdisk -Z /dev/sdX


sudo sgdisk /dev/sdX \
  -n1:0:+512M -t1:ef00 \
  -n2:0:-32G  -t2:8300 \             # 32GB swap
  -n3:0:0     -t3:8200
@tribhuwan-kumar
tribhuwan-kumar / exew.rs
Last active June 13, 2025 14:19
launch application and gets its pid - rust
// it's an example file
use windows::{
core::PCWSTR,
Win32::{
Foundation::{CloseHandle, HWND, HANDLE},
UI::Shell::{
ShellExecuteExW, SHELLEXECUTEINFOW, SEE_MASK_NOASYNC, SEE_MASK_NOCLOSEPROCESS,
},
System::Threading::GetProcessId,
UI::WindowsAndMessaging::SW_SHOWNORMAL,