Skip to content

Instantly share code, notes, and snippets.

Avatar
🏠
Working from home

Skid skid9000

🏠
Working from home
View GitHub Profile
@skid9000
skid9000 / truenas-cert-update.sh
Last active February 19, 2023 01:39
Update in TrueNAS an SSL certificate without re-creating it from the WebUI.
View truenas-cert-update.sh
#!/bin/bash
# Author : Skid
# Version : v2023.02.19-01
# Description : Update in TrueNAS CORE an SSL certificate without re-creating it from the WebUI.
# Licence : AGPLv3
#
# Notes :
# This script is provided as is, i am not working for ixSystems, please don't contact me for support.
# For this script to work, you must run it from your TrueNAS CORE server as root, you must have your updated certificate in a accessible location.
View gist:d9e81e7ff2bff39656f6cda6e7f8eae5
### Keybase proof
I hereby claim:
* I am skid9000 on github.
* I am skid9000 (https://keybase.io/skid9000) on keybase.
* I have a public key ASCnTrOvpuTEqSWpmS2ajjnQMWm-CxCA2GuMGEiT54fXPAo
To claim this, I am signing this object:
View sshd_config
# $OpenBSD: sshd_config,v 1.100 2016/08/15 12:32:04 naddy Exp $
# This is the sshd server system-wide configuration file. See
# sshd_config(5) for more information.
Port 44322
AddressFamily any
ListenAddress 0.0.0.0
ListenAddress ::
Protocol 2
HostKey /etc/ssh/ssh_host_ed25519_key
View jail.conf
# See jail.conf(5) man page for more information
[INCLUDES]
before = paths-debian.conf
[DEFAULT]
ignoreip = 127.0.0.1/8
ignorecommand =
bantime = 600
findtime = 600
View rules.v6
# Generated by iptables-save v1.6.0 on Sat Mar 23 14:41:32 2019
*filter
:INPUT DROP [0:0]
:FORWARD DROP [0:0]
:OUTPUT DROP [0:0]
-A INPUT -i lo -j ACCEPT
-A INPUT -p icmp -j ACCEPT
-A INPUT -p ipv6-icmp -j ACCEPT
-A INPUT -m conntrack --ctstate RELATED,ESTABLISHED -j ACCEPT
-A INPUT -p tcp -m tcp --dport 44322 -j ACCEPT
View rules.v4
# Generated by iptables-save v1.6.0 on Sat Mar 23 14:41:32 2019
*filter
:INPUT DROP [0:0]
:FORWARD DROP [0:0]
:OUTPUT DROP [0:0]
-A INPUT -d 255.255.255.255/32 -p udp -j DROP
-A INPUT -i lo -j ACCEPT
-A INPUT -p icmp -j ACCEPT
-A INPUT -m conntrack --ctstate RELATED,ESTABLISHED -j ACCEPT
-A INPUT -p tcp -m tcp --dport 44322 -j ACCEPT
View ip4-edit
#!/usr/bin/env bash
rm /etc/iptables/rules.v4.bak.bak
mv /etc/iptables/rules.v4.bak /etc/iptables/rules.v4.bak.bak
mv /etc/iptables/rules.v4 /etc/iptables/rules.v4.bak
iptables-save > /etc/iptables/rules.v4
nano /etc/iptables/rules.v4
echo 'Applying ...'
iptables-restore -c < /etc/iptables/rules.v4
echo 'Apply complete.'
View ip6-edit
#!/usr/bin/env bash
rm /etc/iptables/rules.v6.bak.bak
mv /etc/iptables/rules.v6.bak /etc/iptables/rules.v6.bak.bak
mv /etc/iptables/rules.v6 /etc/iptables/rules.v6.bak
ip6tables-save > /etc/iptables/rules.v6
nano /etc/iptables/rules.v6
echo 'Applying ...'
ip6tables-restore -c < /etc/iptables/rules.v6
echo 'Apply complete.'
View server_install.sh
#!/usr/bin/env bash
GREEN='\033[0;32m'
RED='\033[0;33m'
NC='\033[0m'
os=$(lsb_release -is)
version=$(lsb_release -rs)
clear
echo -e ${GREEN}
echo -e 'This script will setup your server.'
View EN_IFSCL_MR_Doc.md

Required configuration for : IFSCL / Kolossus Launcher

Introduction

The IFSCL game (Interface Fictionelle du Supercalculateur de Code Lyoko in french / Fiction Interface of Code Lyoko Supercomputer) is available on three operating systems: Windows, MacOS and Linux. The game, since its version 3.6.X, has many significant additions that consume a lot of resources. In the future, a story mode will be added, requiring more and more resources from the machines running the game. Thus, the game is no longer supported by some machines / configurations. The purpose of this guide will be to list the important parameters to be able to play IFSCL properly from cycle 3.6.X.