Skip to content

Instantly share code, notes, and snippets.

View tatumroaquin's full-sized avatar
🐢
steadily walking with my knowledge

Tatum Roaquin tatumroaquin

🐢
steadily walking with my knowledge
  • Australia
  • 17:48 (UTC +11:00)
View GitHub Profile

Dashy in LXC Container Proxmox

Create Container

  1. Choose ubuntu template
  • (Options > Features > keyctl=1
  • (Options > Features > nesting=1
  1. Boot OS, update and upgrade

Install docker

@tatumroaquin
tatumroaquin / pipewire-void.md
Created October 12, 2022 10:07
Pipewire configuration in Void Linux

Making Pipewire Work In Void Linux

Prerequisites

  1. Install this tool to set $XDG_RUNTIME_DIR automatically
xbps-install -S dumb_runtime_dir

or

@tatumroaquin
tatumroaquin / macosvm.md
Created October 2, 2022 02:19
Install MacOS inside VirtualBox

change cpu and device key

cd "C:\Program Files\Oracle\VirtualBox" VBoxManage.exe modifyvm "MacOS Big Sur" --cpuidset 00000001 000106e5 00100800 0098e3fd bfebfbff VBoxManage setextradata "MacOS Big Sur" "VBoxInternal/Devices/efi/0/Config/DmiSystemProduct" "iMac11,3" VBoxManage setextradata "MacOS Big Sur" "VBoxInternal/Devices/efi/0/Config/DmiSystemVersion" "1.0" VBoxManage setextradata "MacOS Big Sur" "VBoxInternal/Devices/efi/0/Config/DmiBoardProduct" "Iloveapple" VBoxManage setextradata "MacOS Big Sur" "VBoxInternal/Devices/smc/0/Config/DeviceKey" "ourhardworkbythesewordsguardedpleasedontsteal(c)AppleComputerInc" VBoxManage setextradata "MacOS Big Sur" "VBoxInternal/Devices/smc/0/Config/GetKeyFromRealSMC" 1 VBoxManage modifyvm "MacOS Big Sur" --cpu-profile "Intel Xeon X5482 3.20GHz"

@tatumroaquin
tatumroaquin / minidlna.md
Created September 26, 2022 08:02
My custom configuration of MiniDLNA Media Server

MiniDLNA Arch Linux

DLNA (Digital Living Network Aliance), is collection of interoperability guidelines which set the protocols for multimedia communication

install minidlna

sudo pacman -S minidlna

configure minidlna

MongoDB Standalone Config

MongoDB Resource Specification

  1. LXC Container
  2. Minimum 2 CPU Cores (2 threads are needed to run the TTL Monitor.)
  3. 10GB HDD

1. Create admin user

@tatumroaquin
tatumroaquin / wsl2-usbipd-kernel.md
Last active November 12, 2024 17:20
WSL2 custom kernel for usb support

WSL2 USB/IP Kernel Build

At the time of writing WSL 2 does not have official support for interfacing with USB type devices. To solve this, a fork of the usbip project is modified by Microsoft to allow virtual connectivity between USB devices on a host via the USB/IP protocol.

Though it is recommended to use the usbip from a Windows 11 host, there is a way to build a custom WSL2 Kernel in Windows 10 with usbip driver support enabled for USB Mass Storage devices.

This is a supplementary guide which allows for a more linear step by step instruction to eliminate the confusion introduced by the official documentation.

Install USB/IP Client

@tatumroaquin
tatumroaquin / mysql-errors.md
Created June 11, 2022 00:18
common mysql errors and fixes

MySQL Errors and Fixes

su: warning: cannot change directory to /nonexistent: No such file or directory

sudo systemctl stop mysql.service
sudo usermod -d /var/lib/mysql/ mysql
sudo systemctl start mysql.service
  • common problem in WSL2 installation of MySQL DBMS, mysql user not granted permissions to its home folder
@tatumroaquin
tatumroaquin / compiler.sh
Last active May 17, 2022 04:43
compiler script for xelatex documents
#!/usr/bin/env zsh
if [ -e "$1" ] ; then
file=$(readlink -f "$1")
dir=${file%/*}
base=${file##*/}
name=${base%.*}
ext=${file##*.}
else
name=`basename "$0"`
@tatumroaquin
tatumroaquin / t470-battery-care.md
Created March 6, 2022 02:05
Control Charging Thresholds for Thinkpad T470

TP T470 Charging Threshold

Method 1 - COMM Package

install necessary packages

sudo pacman -S tpacpi-bat

modify config file

sudo nvim /etc/conf.d/tpacpi

# modify the values of start and stop threshold a number between 1-99