Skip to content

Instantly share code, notes, and snippets.

View Tronde's full-sized avatar

Joerg Kastning Tronde

View GitHub Profile
@moriwaka
moriwaka / README.md
Last active November 18, 2025 14:46
PDF Document Downloader from docs.redhat.com

Usage:

```
$ mkdir RHEL9Doc
$ cd RHEL9Doc
$ fetchdoc.sh https://docs.redhat.com/en/documentation/red_hat_enterprise_linux/9
```

Prerequirement: curl, GNU Parallel

2024-11-21: fix for docs.redhat.com update

@cregx
cregx / How-to-use-yubikey5-and-keepassxc.md
Last active January 21, 2026 16:33
How to use YubiKey 5 and KeePassXC

YubiKey 5 and KeePassXC

This manual was last checked for validity on February 05, 2024.

Introduction

This guide outlines the process of setting up YubiKey 5 in conjunction with KeepassXC. Users who prioritize securing and managing their passwords through a password manager might have the need to enhance access security as much as possible. In this context, the deployment of both solutions, YubiKey 5 and KeepassXC, becomes relevant.

For this guide, the following prerequisites must be met:

  • Ideally, two YubiKeys 5. In essence, only one YubiKey is required. However, if you wish to have a backup YubiKey, you will naturally need two YubiKeys. Information about the available YubiKeys from the manufacturer can be found on this website: https://www.yubico.com/quiz/
@Greelan
Greelan / letsencrypt_notes.sh
Last active November 1, 2025 14:45 — forked from lachesis/letsencrypt_notes.sh
Set up Let’s Encrypt certificate using acme.sh as non-root user
# How to use acme.sh to set up Let's Encrypt, with the script being run
# mostly without root permissions
# See https://github.com/Neilpang/acme.sh for more
# These instructions use the domain "EXAMPLE.COM" as an example
# These instructions:
# - work on Ubuntu 18.04 and 20.04 with nginx
# - use CloudFlare DNS validation
#!/bin/bash
# variables
LOGFILE="/var/log/nginx/access.log"
LOGFILE_GZ="/var/log/nginx/access.log.*"
RESPONSE_CODE="200"
# functions
filters(){
grep -w $RESPONSE_CODE \
@andreicristianpetcu
andreicristianpetcu / ansible-summary.md
Created May 30, 2016 19:25
This is an ANSIBLE Cheat Sheet from Jon Warbrick

An Ansible summary

Jon Warbrick, July 2014, V3.2 (for Ansible 1.7)

Configuration file

intro_configuration.html

First one found from of

@corychainsman
corychainsman / Raspberry_Pi_Water_Sensor
Last active May 28, 2024 12:55
Raspberry Pi Water Sensor - Incredibly vague schematic here: http://fritzing.org/projects/raspberry-pi-water-sensor/
#!/usr/bin/python
#########
# About #
#########
# This script uses a Raspberry Pi to sense for the presense or absense of water.
# If there is water, an email is sent and a buzzer goes off.
# When it's dry again, another email is sent, and the buzzer turns off.