Skip to content

Instantly share code, notes, and snippets.

View ryanbekhen's full-sized avatar
🇮🇩
Indonesia

ACHMAD IRIANTO EKA PUTRA ryanbekhen

🇮🇩
Indonesia
View GitHub Profile
@ryanbekhen
ryanbekhen / docker-compose.yaml
Created February 13, 2023 07:19 — forked from natcl/docker-compose.yaml
Docker Compose Syslog Example
version: '2'
services:
nodered:
image: nodered/node-red-docker:0.17.5
restart: always
environment:
- TZ=America/Montreal
logging:
driver: syslog
options:
@ryanbekhen
ryanbekhen / main.go
Created February 12, 2023 00:14 — forked from hnakamur/main.go
A go example to stop a worker goroutine when Ctrl-C is pressed (MIT License)
package main
import (
"fmt"
"os"
"os/signal"
"time"
"golang.org/x/net/context"
)
@ryanbekhen
ryanbekhen / rsa_util.go
Created August 13, 2022 21:18 — forked from miguelmota/rsa_util.go
Golang RSA encrypt and decrypt example
package ciphers
import (
"crypto/rand"
"crypto/rsa"
"crypto/sha512"
"crypto/x509"
"encoding/pem"
"log"
)