Skip to content

Instantly share code, notes, and snippets.

View wcasanova's full-sized avatar
🏠
Working from home

Walter C wcasanova

🏠
Working from home
  • CL, Stgo
View GitHub Profile
@wcasanova
wcasanova / arch_linux_installation_guide.md
Created March 16, 2025 19:19 — forked from mjkstra/arch_linux_installation_guide.md
A modern, updated installation guide for Arch Linux with BTRFS on an UEFI system
@wcasanova
wcasanova / archlinux-qemu-kvm.md
Created March 16, 2025 19:19 — forked from tatumroaquin/archlinux-qemu-kvm.md
QEMU-KVM Installation for Arch Linux

QEMU-KVM in Arch Linux

Check Virtualization Support

lscpu | grep -i Virtualization
  • VT-x for Intel
  • AMD-Vi for AMD

Ensure that your kernel includes KVM modules

@wcasanova
wcasanova / get-ogs-games.sh
Created February 12, 2025 18:50 — forked from Chewt/get-ogs-games.sh
Download all sgf files for a user from online-go.com
#!/usr/bin/bash
#
# This program will download all games on online-go.com for a specified user
BASE='https://online-go.com/'
API='api/v1'
# Get username and ID
echo 'What is your OGS Username? '
read USERNAME
@wcasanova
wcasanova / ogatak-install.sh
Created February 12, 2025 18:50 — forked from Chewt/ogatak-install.sh
Ogatak installation script (linux)
#!/bin/bash
# install script to make installing ogatak easier
REPO_URL="https://api.github.com/repos/rooklift/ogatak/releases/latest"
CONFIG_URL="https://raw.githubusercontent.com/sanderland/katrain/refs/heads/master/katrain/KataGo/analysis_config.cfg"
# Use curl to fetch the JSON data for the latest release
RELEASE_DATA=$(curl -s -H "Accept: application/json" "$REPO_URL" 2>/dev/null)
# Extract the URL of the latest release using jq
@wcasanova
wcasanova / 90-kensington-expert-trackball-remap.hwdb
Created October 12, 2024 23:54 — forked from filviu/90-kensington-expert-trackball-remap.hwdb
Remapping Kensington Expert Trackball Buttons with wayland
# Button remap for Kensington Expert Wireless Trackball to:
# BACK MIDDLE
# O
# LEFT RIGHT
# save this file under '/etc/udev/hwdb.d/90-kensington-expert-trackball-remap.hwdb'
# run `sudo systemd-hwdb update` and reboot
#
# source: https://askubuntu.com/questions/1145057/remapping-mouse-buttons-to-keyboard-keys
# and: https://gist.github.com/dnlvgl/d16fd822bc90dcdaaae262a76fad884e
#
@wcasanova
wcasanova / ubuntu_update_booting_kernel.md
Created September 4, 2024 02:31 — forked from chaiyujin/ubuntu_update_booting_kernel.md
Ubuntu: Install Kernel and Set GRUB Default Kernel

Ubuntu: Install Kernel and Set GRUB Default Kernel

Install Kernel

Install the default kernel:

sudo apt install linux-generic

Set GRUB Default Kernel

  1. Find entrance from /boot/grub/grub.cfg
    • Get the $menuentry_id_option:
@wcasanova
wcasanova / proxmox.md
Created March 16, 2024 01:24 — forked from scyto/proxmox.md
proxmox cluster proof of concept

ProxMox Cluster - Soup-to-Nutz

aka what i did to get from nothing to done.

note: these are designed to be primarily a re-install guide for myself (writing things down helps me memorize the knowledge), as such don't take any of this on blind faith - some areas are well tested and the docs are very robust, some items, less so). YMMV

Purpose of Proxmox cluster project

Required Outomces of cluster project

Semantic Commit Messages

See how a minor change to your commit message style can make you a better programmer.

Format: <type>(<scope>): <subject>

<scope> is optional

Example

@wcasanova
wcasanova / CRC.pl
Created June 18, 2022 19:51 — forked from protospork/CRC.pl
script for crc checking/tagging files, windows or linux
#!C:\perl\perl\bin
# sudo apt-get install libmodern-perl-perl libstring-crc32-perl
use Modern::Perl;
use String::CRC32;
my $sil = 0;
my $debugmode = 0;
my $start = time;
my @files;
@wcasanova
wcasanova / postgres cheatsheet.md
Created January 23, 2021 17:25 — forked from apolloclark/postgres cheatsheet.md
postgres cheatsheet

Postgres Cheatsheet

This is a collection of the most common commands I run while administering Postgres databases. The variables shown between the open and closed tags, "<" and ">", should be replaced with a name you choose. Postgres has multiple shortcut functions, starting with a forward slash, "". Any SQL command that is not a shortcut, must end with a semicolon, ";". You can use the keyboard UP and DOWN keys to scroll the history of previous commands you've run.

Setup

installation, Ubuntu

http://www.postgresql.org/download/linux/ubuntu/ https://help.ubuntu.com/community/PostgreSQL