Skip to content

Instantly share code, notes, and snippets.

View freakst's full-sized avatar

Oleh B. freakst

  • Lviv, Ukraine
View GitHub Profile
@freakst
freakst / proxmox.md
Created December 9, 2024 02:52 — forked from scyto/proxmox.md
my proxmox cluster

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

@freakst
freakst / Makefile.md
Created October 18, 2023 14:49 — forked from subfuzion/Makefile.md
Makefile for Go projects

Go has excellent build tools that mitigate the need for using make. For example, go install won't update the target unless it's older than the source files.

However, a Makefile can be convenient for wrapping Go commands with specific build targets that simplify usage on the command line. Since most of the targets are "phony", it's up to you to weigh the pros and cons of having a dependency on make versus using a shell script. For the simplicity of being able to specify targets that can be chained and can take advantage of make's chained targets,

@freakst
freakst / iterm2.md
Created April 19, 2023 00:35 — forked from squarism/iterm2.md
An iTerm2 Cheatsheet

Tabs and Windows

Function Shortcut
New Tab + T
Close Tab or Window + W (same as many mac apps)
Go to Tab + Number Key (ie: ⌘2 is 2nd tab)
Go to Split Pane by Direction + Option + Arrow Key
Cycle iTerm Windows + backtick (true of all mac apps and works with desktops/mission control)
@freakst
freakst / README.md
Created February 15, 2020 13:18 — forked from magnetikonline/README.md
Setting Nginx FastCGI response buffer sizes.
@freakst
freakst / vm-backup.sh
Created October 15, 2019 02:32 — forked from cabal95/vm-backup.sh
I use this script to backup my QEMU/KVM/libVirt virtual machines. The script requires KVM 2.1+ since it uses the live blockcommit mode. This means the data in the snapshot disk is rolled back into the original instead of the other way around. Script does NOT handle spaces in paths.
#!/bin/bash
#
BACKUPDEST="$1"
DOMAIN="$2"
MAXBACKUPS="$3"
if [ -z "$BACKUPDEST" -o -z "$DOMAIN" ]; then
echo "Usage: ./vm-backup <backup-folder> <domain> [max-backups]"
exit 1
@freakst
freakst / shutdown.log
Created March 11, 2019 15:43
some description
node/gke-utils-cluster-3-backend-pool-8-n1-3458531c-44l0 tainted
@freakst
freakst / shutdown.log
Created March 11, 2019 15:43
some description
node/gke-utils-cluster-3-backend-pool-8-n1-3458531c-6cjq tainted
@freakst
freakst / shutdown.log
Created March 11, 2019 15:43
some description
error: Node gke-utils-cluster-3-backend-pool-8-n1-3458531c-fj9f already has preempted taint(s) with same effect(s) and --overwrite is false
@freakst
freakst / shutdown.log
Created March 11, 2019 12:35
some description
node/gke-utils-cluster-3-backend-pool-8-n1-3458531c-fj9f tainted