Skip to content

Instantly share code, notes, and snippets.

@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);
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(){
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
@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 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 / debug-dnsmasq.sh
Created Jan 2, 2018 — forked from shuhaowu/debug-dnsmasq.sh
Debug dnsmasq by logging its queries
View debug-dnsmasq.sh
#!/bin/bash
echo 'log-queries' > /etc/dnsmasq.conf
service network-manager restart
tail -f /var/log/syslog
@gamersalpha
gamersalpha / GameUserSettings.ini
Created Nov 3, 2018
ARk survival evolved game configuration serveur
View GameUserSettings.ini
[ServerSettings]
AllowFlyerCarryPvE=False
AllowThirdPersonPlayer=True
AlwaysNotifyPlayerLeft=True
AlwaysNotifyPlayerLeft=True
AutoSavePeriodMinutes=15.000000
ClampResourceHarvestDamage=False
DifficultyOffset=0.200000
DisableStructureDecayPvE=False
alwaysNotifyPlayerJoined=True
@gamersalpha
gamersalpha / twotwo-wayland.sh
Last active Jan 27, 2019 — forked from SteveClement/twotwo-wayland.sh
Enlightenment 22 build script for Ubuntu/Debian with Wayland support.
View twotwo-wayland.sh
#!/bin/bash
# vi: ts=4:sw=4:et
#
# twotwo.sh
# This script allows you to install/update Enlightenment 22 git version on
# Ubuntu 18.04 or Debian buster (testing), or remove E22 git from your system.
# ********************************************************************
# * This version builds enlightenment with wayland. *
# * That means this requires a very recent Ubuntu or Debian version. *
# * This may not work properly! You've been warned! *
View gist:9c79faaf335f0ad1adf0071208e9e8df
[ServerSettings]
AllowFlyerCarryPvE=False
allowThirdPersonPlayer=True
alwaysNotifyPlayerLeft=True
AutoSavePeriodMinutes=15.000000
ClampResourceHarvestDamage=False
DifficultyOffset=1
DisableStructureDecayPvE=False
DontAlwaysNotifyPlayerJoined=False
EnablePvPGamma=False
View ARk config
[ServerSettings]
PreventDownloadSurvivors=False
PreventDownloadSurvivors=0
PreventDownloadItems=False
PreventDownloadItems=0
PreventDownloadDinos=False
PreventDownloadDinos=0
PreventUploadSurvivors=False
PreventUploadItems=False
PreventUploadDinos=False