Skip to content

Instantly share code, notes, and snippets.

Avatar

Issa gamersalpha

  • Atlantis
View GitHub Profile
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);