Skip to content

Instantly share code, notes, and snippets.

View Config ark serveur
[ServerSettings]
ActiveTotalConversion=0
ServerPassword=password
ServerAdminPassword=password
RCONEnabled=True
RCONPort=32330
PvEDinoDecayPeriodMultiplier=1.000000
KickIdlePlayersPeriod=1800
PerPlatformMaxStructuresMultiplier=1.000000
ListenServerTetherDistanceMultiplier=1.000000
@gamersalpha
gamersalpha / gist:f27370566023c21af16bf6cebfad434a
Created Nov 6, 2017
Make discord alert works on linux-gsm
View gist:f27370566023c21af16bf6cebfad434a
#lgsm/config-lgsm/arkserver/common.cfg
# Discord Alerts | https://github.com/GameServerManagers/LinuxGSM/wiki/Discord
discordalert="on"
servername="ark-server-ubuntu"
discordwebhook="https://discordapp.com/api/webhooks/3539332633367897009/5t_K4GkuBaR2-69TsKqXmHIya1ck1tirnu_Fst-DUC00dye98eaa_I6uTIcHEsi7a17K"
View Discord request SSH
#!/bin/bash
# LinuxGSM alert_discord.sh function
# Author: Daniel Gibbs
# Contributor: faflfama
# Website: https://gameservermanagers.com
# Description: Sends Discord alert.
json=$(cat <<EOF
View linux-gsm Change map
## Server Start Settings | https://github.com/GameServerManagers/LinuxGSM/wiki/Start-Parameters
ip="0.0.0.0"
port="7777"
queryport="27015"
rconport="27020"
maxplayers="5"
extra_param=" -automanagedmods"
## Server Start Command | https://github.com/GameServerManagers/LinuxGSM/wiki/Start-Parameters#additional-parameters
fn_parms(){
@gamersalpha
gamersalpha / tail.php
Created Oct 2, 2017 — forked from deizel/tail.php
PHP log tail example
View tail.php
<?php
if (isset($_GET['ajax'])) {
session_start();
$handle = fopen('/private/var/log/system.log', 'r');
if (isset($_SESSION['offset'])) {
$data = stream_get_contents($handle, -1, $_SESSION['offset']);
echo nl2br($data);
} else {
fseek($handle, 0, SEEK_END);
$_SESSION['offset'] = ftell($handle);