Skip to content

Instantly share code, notes, and snippets.

View d-rk's full-sized avatar
🏠
Working from home

d-rk

🏠
Working from home
View GitHub Profile
@d-rk
d-rk / aegis-backup-convert.sh
Created February 22, 2024 19:55
Convert encrypted aegis backup to keepassxc compatible csv file
# download decrypt script
curl -L https://raw.githubusercontent.com/beemdevelopment/Aegis/master/docs/decrypt.py > decrypt.py
# copy encrypted backup
scp host:/path/to/backup/aegis-backup-20231122-082604.json aegis-backup.json
# decrypt backup
python3 decrypt.py --input aegis-backup.json --output aegis-backup-decrypted.json
# convert to keepassxc compatible csv file
@d-rk
d-rk / README.md
Last active January 26, 2024 06:30 — forked from MaxMatti/README.md
Open all links to MS Teams in Google Calendar with the Teams PWA
@d-rk
d-rk / sops-gpg.sh
Created June 1, 2022 18:41
sops/gpg key-pair generation
# generate a key pair
# 1. choose RSA
# 2. make sure the key does not expire
# 3. don't use a passphrase
gpg --full-generate-key
# export private key in ascii format
gpg --output ci.private.key --armor --export-secret-key your-mail@gmail.com
# export public key in ascii format
@d-rk
d-rk / slack-notify-plugin-updates.sh
Created September 28, 2020 14:44
check for jenkins plugin updates an publish the result via slack
#!/bin/bash
# #############
# CONFIGURATION
webhook_url="xxx"
channel="Jenkins"
pretext="**Jenkins Plugin Check**"
icon_url="https://www.jenkins.io/images/logos/general/256.png"
export JENKINS_USER_ID=xxx
@d-rk
d-rk / docker-compose.yml
Last active May 30, 2020 13:55
‘docker-compose.yml‘ for a kafka cluster with three brokers. The brokers are accessible from inside docker as kafka1:9092, kafka2:9092, kafka3:9092 and from docker host as localhost:19092,localhost:29092,localhost:39092:
version: "3.7"
services:
zookeeper:
image: confluentinc/cp-zookeeper:5.4.0
hostname: zookeeper
container_name: zookeeper
ports:
- "2181:2181"
environment:
ZOOKEEPER_CLIENT_PORT: 2181