Skip to content

Instantly share code, notes, and snippets.

View nirui's full-sized avatar
Slow to respond

R+ nirui

Slow to respond
View GitHub Profile
package main
import (
"crypto/aes"
"crypto/cipher"
"fmt"
)
func decrypt(key, nonce, buf []byte, bufPadLength int) {
block, err := aes.NewCipher(key[:])

Keybase proof

I hereby claim:

  • I am nirui on github.
  • I am nirui (https://keybase.io/nirui) on keybase.
  • I have a public key whose fingerprint is B412 2F2C 5F8F 6807 43C3 273B 82AE 11AD 1E5E 8729

To claim this, I am signing this object:

package main
import "testing"
import "sync"
type obj struct {
test string
}
type obj2 struct {
// This program and script allows you to map the dns request to [domain].<lan-hostname>.svc.lan to <lan-hostname>.
//
// 1. Setup the OpenWrt. File /etc/config/dhcp
//
// config dnsmasq
// ....
// list server '/svc.lan/127.0.0.1#5333'
// list rebind_domain 'svc.lan'
//
// 2. Init.d Script: /etc/init.d/dnsf.sh
# Modified based on https://blog.creekorful.com/2019/10/how-to-install-traefik-2-docker-swarm/
# Hope it helps :)
version: '3'
services:
reverse-proxy:
image: traefik:v2.4.3
command:
This file has been truncated, but you can view the full file.
f0VMRgIBAQAAAAAAAAAAAAIAPgABAAAA4AO/AAAAAABAAAAAAAAAAAAAAAAAAAAAAAAAAEAAOAAD
AAAAAAAAAAEAAAAGAAAAAAAAAAAAAAAAAEAAAAAAAAAAQAAAAAAAABAAAAAAAAAgoGEAAAAAAAAQ
AAAAAAAAAQAAAAUAAAAAAAAAAAAAAACwoQAAAAAAALChAAAAAAALaB0AAAAAAAtoHQAAAAAAABAA
AAAAAABR5XRkBgAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAIAAAA
AAAAACLSR+5VUFghNBQOFgAAAACYIFsA6A8sAJABAAB/AAAADgAAADwHAD+RRYRgEAcAGsAnsUct
V6A4PS7/ppjiznL5kJMm4KZspP4iTrIN0QY1g4PV1RMtsIMP5KGHeYlpwTVufv1tODpOkbgq5jYq
8agrtDHeHUPqfYoWIZpTnsrGsiFdMtRWOG7eUA0KUFbbWIlNGu7gCiNM8gR3ns0wFFI9CACe4CoA
KQwNAA5JVAA8BwAAblhILCnvF5iU0oZ7rZm50v0i6b7dTddxAoG+0i5q/WHdY+1/ogsMFHwYPv/l
AJ2PHvHm6gw5YnT0Ig0c8sEq/7mkG5x2T1i3hglW7L3iFjbyUlqfqBQEji0Qhb80A+nOI1iNvC9p
6X9A0HNdu3TOFswv4fQQft28oYO/yfkwIUwH1nEOwLZ9iMlI8PbIZ/nEV2IrIhhahCMsqiMPSwGA