Skip to content

Instantly share code, notes, and snippets.

View tuxity's full-sized avatar

Kévin tuxity

  • Earth
  • 17:43 (UTC +02:00)
View GitHub Profile
#!/bin/bash
# socket you need to connect to
SCGI_SOCKET=127.0.0.1:5001
# list of tracker message to take into account
TODELETE=("Tracker: [Failure reason \"Torrent non trouve sur le Tracker\"]")
#function to find the torrent message in the array TODELETE
findMessage() {
stream {
log_format basic '$remote_addr [$time_local] '
'$protocol $status $bytes_sent $bytes_received '
'$session_time';
access_log /var/log/nginx/access.log basic;
error_log /var/log/nginx/error.log debug;
include /etc/nginx/stream.conf.d/*.conf;
test-server.fathosting.io=10.33.78.68:9987
[client.admin]
key = AQBDhVZZwDKRBxAAgrjaoPMkYMiiXjkBBTwghg==
caps mds = "allow *"
caps mon = "allow *"
caps osd = "allow *"

Generate an SSH key

New standars recommands ed25519 over RSA as it tends to be faster and safer for more time.

Without security key

ssh-keygen -t ed25519 -C [email protected]
col[width="55%"] {
width: 75%;
}
col[width="20%"] {
width: 10%;
}
col[width="25%"] {
width: 15%;
}