Skip to content

Instantly share code, notes, and snippets.

@jceloria
jceloria / gpg-ssh-setup.md
Created June 13, 2025 10:44 — forked from mcattarinussi/gpg-ssh-setup.md
A setup guide to use a personal gpg key for ssh authentication

GPG - SSH setup

Generating the master key

Here we create the master key. We want only Certify capability: we use the master key only to create the subkeys, Sign - Encrypt - Authenticate capabilities will be assigned to the subkeys.

Run the following command to start the master key generation process. Select the set your own capabilities creation process (type 8)

  ▶ gpg --full-generate-key --expert

gpg (GnuPG) 2.2.9; Copyright (C) 2018 Free Software Foundation, Inc.

@jceloria
jceloria / omada-certs.sh
Created March 6, 2025 17:04
update Omada controller certificates
#!/usr/bin/env bash
SELF=${0##*/} SDIR=${0%/*}
# -------------------------------------------------------------------------------------------------------------------- #
: '
The MIT License (MIT)
Copyright © 2024 by John Celoria.
@jceloria
jceloria / ttn-lw-stack.yml
Created July 2, 2020 18:47
The Things Stack deployment configuration
# Identity Server configuration
is:
# Email configuration
email:
sender-name: 'The Things Stack'
sender-address: 'noreply@lora.<redacted>'
network:
name: 'The Things Stack'
console-url: 'https://lora.<redacted>/console'
identity-server-url: 'https://lora.<redacted>/oauth'
@jceloria
jceloria / docker-compose.yaml
Created July 2, 2020 18:33
The Things Stack docker-compose configuration
#
# Ansible managed
#
version: "3.7"
secrets:
ca.pem:
file: /root/.acme.sh/<redacted>/ca.cer
cert.pem:
@jceloria
jceloria / docker-compose.yaml
Created July 2, 2020 17:32
The Things Stack docker-compose configuration
#
# Ansible managed
#
version: "3.7"
secrets:
ca.pem:
file: /root/.acme.sh/<redacted>.org/ca.cer
cert.pem:
@jceloria
jceloria / ttn-lw-stack.yml
Created July 2, 2020 17:30
The Things Stack deployment configuration
#
# Ansible managed
#
version: "3.7"
secrets:
ca.pem:
file: /root/.acme.sh/<redacted>.org/ca.cer
cert.pem:
@jceloria
jceloria / sun2.yaml
Last active June 23, 2020 14:35
HA sun2 package
---
# #################################################################################################################### #
# #################################################################################################################### #
sensor:
# ------------------------------------------------------------------------------------------------------------------ #
- platform: sun2
entity_namespace: sun2
monitored_conditions:
@jceloria
jceloria / wd
Last active July 6, 2021 13:10
write down time stamped notes from the command line
#!/usr/bin/env python
# -*- coding: utf-8 -*-
# -------------------------------------------------------------------------------------------------------------------- #
"""
Write Down, take quick notes from the command line
The MIT License (MIT)
Copyright © 2019 by John Celoria.
@jceloria
jceloria / calendar.yaml
Created March 27, 2019 13:43
HA calendar package
---
# ############################################################################ #
# ############################################################################ #
calendar:
# -------------------------------------------------------------------------- #
- platform: caldav
url: !secret ha_caldav_url
username: !secret ha_caldav_user
#
# Ansible managed
#
version: "2"
services:
nzbget:
environment:
- PUID=110000