Skip to content

Instantly share code, notes, and snippets.

@Telmo
Telmo / kanal.go
Created February 4, 2016 12:22 — forked from callerobertsson/kanal.go
Golang: Playing with a queue channel
package main
import (
"bufio"
"fmt"
"math/rand"
"os"
"strconv"
"time"
)
@Telmo
Telmo / golang-tls.md
Created May 6, 2016 12:29 — forked from denji/golang-tls.md
Simple Golang HTTPS/TLS Examples

Generated private key

openssl genrsa -out server.key 2048

To generate a certificate

openssl req -new -x509 -key server.key -out server.pem -days 3650

https

@Telmo
Telmo / generate.bash
Created June 27, 2019 15:03 — forked from twolfson/generate.bash
Generate all the unicode/UTF8
#!/usr/bin/env bash
# Generate all non-control unicode characters up to the 3 byte range
# http://stackoverflow.com/questions/5517500/simple-shell-script-for-generating-hex-numbers-of-a-certain-range
# http://www.utf8-chartable.de/
hex_range () {
from="$1"
to="$2"
for i in $(seq "$(printf "%d" "0x$from")" "$(printf "%d" "0x$to")"); do
printf "%02X\n" "$i"
done
@Telmo
Telmo / destiny2_api_intro.py
Created September 3, 2020 08:42 — forked from cortical-iv/destiny2_api_intro.py
Highly annotated introduction to the destiny2 api (Python)
#!/usr/bin/env python3
# -*- coding: utf-8 -*-
"""
Getting Started using the Destiny 2 Api
An annotated guide to some of the public endpoints available for examining a user's
characters, items, and clan using the Destiny 2 API. You will need to use your api key for
this to work. Just insert it as a string where it says <my_api_key> in the beginning.
It is broken into four parts:
0: Imports, variables, and fixed parameters defined

Using a NodeMCU and RXB6 to Publish Doorbell Presses to MQTT

The Problem

I have a Eufy Video doorbell that does a great* job with push notifications, 2K video streaming, and providing basic doorbell functionality; all without a monthy subscription. It comes with a basic 433MHz chime that you can pair and put anywhere in your house. This doesn't really work well with a two story house... it is no where near loud enough to hear it upstairs.

* Despite notifying me that the tree in my front yard is a person when it is windy enough.

@Telmo
Telmo / [email protected]
Created May 1, 2025 10:41 — forked from tsilvs/.vars.env
rclone SystemD service
# Install:
# cp [email protected] ~/.config/systemd/user/ && systemctl --user enable --now rclone-mount@$CLOUD_NAME
# Where $CLOUD_NAME is a section name from rclone.conf
[Unit]
Description=RClone mount: %i
Documentation=man:rclone(1)
After=network.target
Wants=network-online.target
StartLimitIntervalSec=300