Skip to content

Instantly share code, notes, and snippets.

View rdnt's full-sized avatar

Anastasios Papalyras rdnt

View GitHub Profile
@girorme
girorme / worker-pool.go
Last active May 8, 2024 18:24
worker pool using go channels + waitGroup
package main
import (
"flag"
"fmt"
"net/http"
"sync"
"threadsync/httpclient"
"time"
)
// Highlight bracket matchers with blue pulsing color
atom-text-editor .bracket-matcher .region {
border-bottom: 2px solid #528bff;
&:before {
content: '';
bottom: -2px;
display: block;
animation: pulse-bracket .5s infinite alternate;
position: absolute;
width: 100%;
@rdnt
rdnt / README.md
Last active May 8, 2025 10:02
GPG master & subKeys generation and usage on Git & Github (for GnuPG v2.1 or later)

This guide covers creating a master keypair (private and public key, along with an automatically generated encryption subKey), creation of subKeys from that master key to use for signing, and using said keys on Git and Github.
Passphrases are optional but strongly encouraged.

1. Create a master keypair:

  • Type gpg --full-generate-key and enter following settings:
  • Algorithm: RSA and RSA
  • Key size: 4096 bits
  • Duration: 0 (infinite; does not expire)
  • Fill in your personal info (Comment is username)
  • Enter passphrase if applicable
@benferse
benferse / nord-cascadia
Created May 28, 2019 00:59
An arctic, north-bluish clean and elegant Windows Terminal color scheme.
{
"name": "Nord",
"foreground": "#D8DEE9",
"background": "#2E3440",
"black": "#3B4252",
"red": "#BF616A",
"green": "#A3BE8C",
"yellow": "#EBCB8B",
"blue": "#81A1C1",
"purple": "#B48EAD",
@rdnt
rdnt / Atom Stylesheet.less
Last active December 4, 2019 08:27
SHT Atom Custom Theme OLD
// Highlight bracket matchers with blue pulsing color
atom-text-editor .bracket-matcher .region {
border-bottom: 2px solid #528bff;
&:before {
content: '';
bottom: -2px;
display: block;
animation: pulse-bracket .5s infinite alternate;
position: absolute;
width: 100%;
@henfiber
henfiber / KB-Buying-guide-EU.md
Last active November 26, 2025 12:36
Buying keyboards and keyboard components from EU

Europe

  • SkinFlint : Price comparison site which has some nice filtering options per switch type etc. Searches for offers in UK, Germany, Poland and Austria
  • mykeyboard.eu : Keyboards, keycaps and accessories. Based in Belgium.
  • candykeys.com : European Store selling Vortex, Leopold, KBP, Anne Pro keyboards, keycap sets and components (ISO + ANSI). Based in Germany, ships to EU.
  • falba.tech : custom wooden bamboo cases, and some acrylic and carbon ones. Switch packs (65 browns at 48EUR). Other parts for the GH60, Atreus, ErgoDox. Also Microcontrollers, diodes, leds etc.
  • 42keebs.eu - Mostly PCBs, tools and accessories. Located in Czech Republic.
  • KEYGEM : Switches, Keycaps, lubes, cables, DIY kits and deskmats. Based in Germany, ships to the EU and worldwide.
  • [Eloquent Clicks - Custom Mechanical Keyboard Store](https://www.eloquen
@fortytw2
fortytw2 / determinism.go
Last active September 15, 2024 19:52
shutdown
package main
type Server struct {
shutdown chan struct{}
close chan struct{}
}
func NewServer() *Server {
s := &Server{
shutdown: make(chan struct{}, 0),
# Certs are for local testing.
certs := api.test api01.test api02.test api03.test \
server.test server01.test server02.test server03.test \
client.test client1.test client2.test client3.test
.PHONY: all
all: | $(foreach c,$(certs),$(addprefix certs/,$(c)).crt)
# destroy private CA key immediately after make completes so it can be
# trusted for local dev.
test -f ca/ca.key && shred -uz -n 1024 ca/ca.key || true
@teknoraver
teknoraver / unixhttpc.go
Last active November 26, 2025 20:43
HTTP over Unix domain sockets in golang
package main
import (
"context"
"flag"
"fmt"
"io"
"net"
"net/http"
"os"
@tduarte
tduarte / publish-ghpages.md
Last active October 5, 2025 09:29
If you need to force push an subtree
git checkout master # you can avoid this line if you are in master...
git subtree split --prefix dist -b gh-pages # create a local gh-pages branch containing the splitted output folder
git push -f origin gh-pages:gh-pages # force the push of the gh-pages branch to the remote gh-pages branch at origin
git branch -D gh-pages # delete the local gh-pages because you will need it: ref