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 / 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

@wcasanova
wcasanova / nmap_examples.md
Created October 9, 2020 18:52 — forked from rsperl/nmap_examples.md
nmap examples
@wcasanova
wcasanova / fix-webcams.sh
Created August 28, 2020 18:02 — forked from shimon/fix-webcams.sh
Linux shell script to disable an internal webcam if an external one is attached, or enable the internal one if not.
#!/bin/bash
# Quick script to disable an internal webcam if an external one is attached, or
# enable the internal one if the external one's not attached.
# by Shimon Rura, 25 Jan 2018. In the public domain.
# To use, run `lsusb` and identify the lines for your internal and external camera devices.
# For example, mine are:
# internal:
@wcasanova
wcasanova / HelloTriangle.cc
Created August 2, 2020 17:57 — forked from Overv/HelloTriangle.cc
Vulkan hello triangle
#include <iostream>
#include <fstream>
#include <vector>
#include <string>
#include <algorithm>
#include <chrono>
#include <functional>
#define GLFW_INCLUDE_VULKAN
#include <GLFW/glfw3.h>

Effective Modern CMake

Getting Started

For a brief user-level introduction to CMake, watch C++ Weekly, Episode 78, Intro to CMake by Jason Turner. LLVM’s CMake Primer provides a good high-level introduction to the CMake syntax. Go read it now.

After that, watch Mathieu Ropert’s CppCon 2017 talk Using Modern CMake Patterns to Enforce a Good Modular Design (slides). It provides a thorough explanation of what modern CMake is and why it is so much better than “old school” CMake. The modular design ideas in this talk are based on the book [Large-Scale C++ Software Design](https://www.amazon.de/Large-Scale-Soft

@wcasanova
wcasanova / kakrc
Created July 9, 2020 15:55 — forked from jwhett/kakrc
Kakrc
colorscheme desertex
###########
# Plugins #
###########
source "%val{config}/plugins/plug.kak/rc/plug.kak"
plug "andreyorst/plug.kak" branch "dev" noload
plug "andreyorst/fzf.kak"
plug "occivink/kakoune-sudo-write"
@wcasanova
wcasanova / postgres-cheatsheet.md
Created July 2, 2020 23:04 — forked from Kartones/postgres-cheatsheet.md
PostgreSQL command line cheatsheet

PSQL

Magic words:

psql -U postgres

Some interesting flags (to see all, use -h or --help depending on your psql version):

  • -E: will describe the underlaying queries of the \ commands (cool for learning!)
  • -l: psql will list all databases and then exit (useful if the user you connect with doesn't has a default database, like at AWS RDS)