Skip to content

Instantly share code, notes, and snippets.

View woopstar's full-sized avatar

Andreas Krüger woopstar

View GitHub Profile
@woopstar
woopstar / energi-data-service-2023
Last active October 18, 2022 08:03
energi-data-service 2023 pris template
Kilder:
https://energinet.dk/Om-nyheder/Nyheder/2022/09/06/Energinet-justerer-tarif
https://www.voreselnet.dk/-/media/vores-elnet/dokumenter/samlet/priser/vores-elnet_prisblad_-differentieret_nettariffer_1-jan-2023.ashx?la=da&hash=F16E3CF53FC01591F387E70C252E04183AF1D2C1
https://www.elbiil.dk/opladning/aendring-i-elafgiften
https://elspotpris.dk/
Udgifterne er regnet ud fra:
- Vores Elnet - Gruppe C - som net leverandør
- Hustand med varmepumpe og nedsat elafgift
@woopstar
woopstar / arch-linux.txt
Last active December 12, 2022 18:27
Efficient UEFI Encrypted Root and Swap Arch Linux Installation Procedure with an ENCRYPTED BOOT using KDE Plasma 5
# This guide will be using LVM on LUKS, see https://wiki.archlinux.org/index.php/Dm-crypt/Encrypting_an_entire_system#LVM_on_LUKS
# Download the archlinux-*.iso image from https://www.archlinux.org/download/ and its GnuPG signature.
# Use gpg --verify to ensure your archlinux-*.iso is exactly what the Arch developers intended. For example:
$ gpg -v archlinux-2019.11.01-x86_64.iso.sig
# Burn the archlinux-*.iso to a 1+ Gb USB stick. On Mac, do something like:
$ diskutil unmountDisk /dev/disk4
$ sudo dd bs=4m of=/dev/rdisk4 if=archlinux-2020.01.01-x86_64.iso

Keybase proof

I hereby claim:

  • I am woopstar on github.
  • I am woopstar (https://keybase.io/woopstar) on keybase.
  • I have a public key ASDGcRdMxx6KxpcROZHdzdZGkBfadkrCfaPEdRw9VAERlwo

To claim this, I am signing this object:

@woopstar
woopstar / remove-gpg-user.sh
Created November 2, 2018 13:15 — forked from glogiotatidis/remove-gpg-user.sh
Git-crypt remove user.
#!/bin/bash
#
# Script to remove GPG key from git-crypt
#
# It will re-initialize git-crypt for the repository and re-add all keys except
# the one requested for removal.
#
# Note: You still need to change all your secrets to fully protect yourself.
# Removing a user will prevent them from reading future changes but they will
# still have a copy of the data up to the point of their removal.
#cloud-config
ssh_authorized_keys:
- ssh-rsa AAAAB3NzaC1yc2EAAAADAQABAAACAQCyVPmsLbWVQBWwVqFvDHFKLjmpIEsH2srRv+BGC8+O3EdyE4gwYnRtRNhALlQ1pADYh9VKNKTZqFzIiYFBvKuA2LIeJtBIwuMBjkJsN/pqDBkaFeV7H65aAIQn+a8csB7tvR09qxKKxTYdge9CJ1yiiQaCOu+6iObAeyKRvKoILl7yH92k0ARIA4KyGeOYOwxMYiWpL7QG4e8idmOwFaR+RV7nxZVPCw2oxRunu9+yw/39cRjLHqs6JwPzvvuTpJamxtqedBI4LGVeAONDUOcJWxtd1bZ68twRuXtFKRwuwYPSCRS51OihpPXOSnEy0UdzEo7cdL9zfMxUOGIIN5T1Rn3x8viB2bkaFIleNfg6W4igAiA2P86PPU8GdZZO3mhzfOdZS31sQAqaMoEnQdyaUUhaQ0SSPFEBL0xhAAGgvxZqJ8dmR+2zyhlkCXg347Eg4YrODfJKCMXhZYqc6eW7btMyo9vvr+t1YfrEJjmHwmTg82WC0kckOKeE7OhFCp25ANvdRmr6NpwlhYBbBtVh+m2TxnyWFlkvoKF7rTrshLfRFlcLKBUC0mktkkA5hxGybpKnO1bVVGykAQ3mR3jtjOR9je1XVLkIT5J/8S8cQUfsYqWqYhi3aoPB0e1IaMM2GzXF7GFKUhlG/QkvJLB335t0VDT+O1iVScyfFu1MIQ== cardno:000606334268
@woopstar
woopstar / yubikey-reset.sh
Created July 29, 2017 18:50 — forked from pkirkovsky/yubikey-reset.sh
Utility for resetting a Yubikey to factory defaults using gpg-connect-agent. This will wipe out any stored keys and reset PINs to default values.
gpg-connect-agent <<EOF
/hex
scd serialno
scd apdu 00 20 00 81 08 40 40 40 40 40 40 40 40
scd apdu 00 20 00 81 08 40 40 40 40 40 40 40 40
scd apdu 00 20 00 81 08 40 40 40 40 40 40 40 40
scd apdu 00 20 00 81 08 40 40 40 40 40 40 40 40
scd apdu 00 20 00 83 08 40 40 40 40 40 40 40 40
scd apdu 00 20 00 83 08 40 40 40 40 40 40 40 40
scd apdu 00 20 00 83 08 40 40 40 40 40 40 40 40
@woopstar
woopstar / bamboo_delete_disabled_branches.sh
Created January 6, 2017 09:51 — forked from sguillope/bamboo_delete_disabled_branches.sh
Script to delete all disabled branches of a Bamboo build plan.
#!/bin/bash -u
# Deletes all disabled branches of a Bamboo build plan
# -----------------------------------------------------------------------------
# Syntax:
# $0 {planKey}
# -----------------------------------------------------------------------------
# Purpose: Bamboo does not automatically delete plan branches when the
# corresponding branch in the repository gets deleted. Because Bamboo fails
# to pull from it, it disables the branch but keep it around forever.
# This script goes through all branches of a build plan and delete the ones