Skip to content

Instantly share code, notes, and snippets.

View ajfriesen's full-sized avatar

Andrej Friesen ajfriesen

View GitHub Profile
@ajfriesen
ajfriesen / apcupsd.conf
Created September 5, 2023 07:52
APC config file
# /etc/apcupsd/apcupsd.conf
## apcupsd.conf v1.1 ##
#
# "apcupsd" POSIX config file
#
# Note that the apcupsd daemon must be restarted in order for changes to
# this configuration file to become active.
#
@ajfriesen
ajfriesen / sql-sheet.md
Created December 3, 2022 20:26
[SQL Cheat Sheet]

PostgreSQL

Show databases \l

Drop database

DROP DATABASE database

@ajfriesen
ajfriesen / test.txt
Last active December 9, 2022 14:26
test
https://github.com/jellyfin/jellyfin
https://github.com/home-assistant/core
https://github.com/home-assistant/operating-system
https://github.com/umami-software/umami
https://github.com/TryGhost/Ghost
https://github.com/syncthing/syncthing
https://github.com/OctoPrint/OctoPrint
https://github.com/pfsense/pfsense
https://github.com/opnsense/core
https://github.com/AnalogJ/scrutiny
@ajfriesen
ajfriesen / git-cheat-sheet.md
Last active December 8, 2022 11:36
[Git Cheat Sheet] #cheatsheet #git

Stash with name

git stash push -m "Whatever"

Undo last commit commit but keep changes

git reset HEAD~1

git reset HEAD^

@ajfriesen
ajfriesen / vim-cheat-sheet.md
Last active December 18, 2022 22:55
[VIM Cheat Sheat] Just a collection for my self #cheatsheet

Delete everything below the current line

dG

Delete the current line

d

Write and Quit

@ajfriesen
ajfriesen / links.md
Last active March 2, 2023 00:24
[Links for Dev and Ops] #links Links I like to share to coworkers and friends
@ajfriesen
ajfriesen / kubernetes-secrets.md
Last active October 6, 2022 11:49
[Extract and decode Kubernetes Secret] Without jq #kubernetes #secrets

We have an example secret with 3 data objects:

  • identity
  • identity.pub
  • known_hosts

kubectl get secrets flux-system -o json

@ajfriesen
ajfriesen / helm.md
Created October 6, 2022 09:46
[Helm tipps] Some helm snippets #helm

List all available chart version in a chart repo

helm search repo hashicorp/vault -l
@ajfriesen
ajfriesen / flux.md
Last active October 6, 2022 10:31
[flux] Tipps and tricks with flux #flux

Force reconcile against git repo

flux reconcile ks flux-system --with-source

Show all flux resources

flux get all -A