Skip to content

Instantly share code, notes, and snippets.

@gamersalpha
gamersalpha / tail.php
Created October 2, 2017 19:43 — forked from deizel/tail.php
PHP log tail example
<?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);
## 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(){
#!/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 November 6, 2017 20:02
Make discord alert works on linux-gsm
#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"
[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 January 2, 2018 21:01 — forked from shuhaowu/debug-dnsmasq.sh
Debug dnsmasq by logging its queries
#!/bin/bash
echo 'log-queries' > /etc/dnsmasq.conf
service network-manager restart
tail -f /var/log/syslog
@gamersalpha
gamersalpha / GameUserSettings.ini
Created November 3, 2018 09:55
ARk survival evolved game configuration serveur
[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 January 27, 2019 09:21 — forked from SteveClement/twotwo-wayland.sh
Enlightenment 22 build script for Ubuntu/Debian with Wayland support.
#!/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! *
@gamersalpha
gamersalpha / gist:9c79faaf335f0ad1adf0071208e9e8df
Created August 16, 2019 18:55
Config Files for Ark Serveur
[ServerSettings]
AllowFlyerCarryPvE=False
allowThirdPersonPlayer=True
alwaysNotifyPlayerLeft=True
AutoSavePeriodMinutes=15.000000
ClampResourceHarvestDamage=False
DifficultyOffset=1
DisableStructureDecayPvE=False
DontAlwaysNotifyPlayerJoined=False
EnablePvPGamma=False
[ServerSettings]
PreventDownloadSurvivors=False
PreventDownloadSurvivors=0
PreventDownloadItems=False
PreventDownloadItems=0
PreventDownloadDinos=False
PreventDownloadDinos=0
PreventUploadSurvivors=False
PreventUploadItems=False
PreventUploadDinos=False