Skip to content

Instantly share code, notes, and snippets.

View sensoria-pro's full-sized avatar
🎯
Focusing

Tony Gilman sensoria-pro

🎯
Focusing
View GitHub Profile
@sensoria-pro
sensoria-pro / SSH daemon configuration
Created February 25, 2024 17:19
SSH daemon configuration example
# This is the sshd server system-wide configuration file. See
# sshd_config(5) for more information.
# This sshd was compiled with PATH=/usr/local/bin:/usr/bin:/bin:/usr/games
# The strategy used for options in the default sshd_config shipped with
# OpenSSH is to specify options with their default value where
# possible, but leave them commented. Uncommented options override the
# default value.
Host *.com
StrictHostKeyChecking no
User user_root
ForwardAgent yes
IdentityFile /Users/username/.ssh/id_rsa
IdentitiesOnly yes
UserKnownHostsFile=/dev/null
UseKeychain yes
AddKeysToAgent yes
ServerAliveInterval 60
@sensoria-pro
sensoria-pro / Simple factory pattern
Created May 23, 2024 13:42
Simple factory pattern, example simple distributed config
package main
import (
"fmt"
"net/http"
)
// Конфигурация сервера
type ServerConfig interface {
GetPort() string