Skip to content

Instantly share code, notes, and snippets.

View rogerBridge's full-sized avatar
🎯
Focusing

Roger Bridge rogerBridge

🎯
Focusing
View GitHub Profile
@rogerBridge
rogerBridge / after.rules
Last active July 22, 2021 13:16
/etc/ufw/after.rules
#
# rules.input-after
#
# Rules that should be run after the ufw command line added rules. Custom
# rules should be added to one of these chains:
# ufw-after-input
# ufw-after-output
# ufw-after-forward
#
@rogerBridge
rogerBridge / logrusconf.go
Created May 31, 2021 08:50
logrus config
package logconf
import (
"os"
"github.com/sirupsen/logrus"
)
func init() {
// Log as JSON instead of the default ASCII formatter.
@rogerBridge
rogerBridge / config.go
Last active May 28, 2021 13:35
go-aes.go
package encDec
// This is your origin text, it's very important!!!
// IMPORTANT !!!
const origin = ""
var keyString = NewSHA256(origin)