This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
ROOT=/servers/steam/ark/ShooterGame/Saved | |
DATE=`date +%Y-%m-%d` | |
EURODATE=`date +%d.%m.%Y` | |
BACKUP=$ROOT/SavedArks/$DATE | |
MAP=${1:-TheIsland} | |
# sudo apt-get install lrzip | |
if [ -e /usr/bin/lrzip ]; then |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
require('aws.phar'); | |
use Aws\S3\S3Client; | |
const BUCKET_NAME = '<BUCKET_NAME>'; | |
// Requires the ListBucket, GetObject, GetObjectAcl, PutObject, PutIpConfiguration, PutInventoryConfiguration, DeleteObject, and PutObjectAcl IAM permissions | |
$s3 = S3Client::factory(array( |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#! /bin/sh | |
### BEGIN INIT INFO | |
# Provides: ark-server | |
# Required-Start: $remote_fs $syslog | |
# Required-Stop: $remote_fs $syslog | |
# Default-Start: 2 3 4 5 | |
# Default-Stop: 0 1 6 | |
# Short-Description: Example initscript | |
# Description: This file should be used to construct scripts to be | |
# placed in /etc/init.d. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
PWD=`pwd` | |
if [[ -z "$1" || ! -d "$1" ]]; then | |
echo "No damagelog directory provided or damagelog directory does not exist." | |
exit | |
fi | |
LAST_MONTH=$((`date +%m` - 1)) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
PWD=`pwd` | |
if [[ -z "$1" || ! -d "$1" ]]; then | |
echo "No logs directory provided or logs directory does not exist." | |
exit | |
fi | |
LAST_MONTH=$((`date +%m` - 1)) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
const DEBUG = false; | |
const BANNER_PATH = '/gametracker'; | |
function convert_banner($url) { | |
// create curl resource | |
$ch = curl_init(); | |
// set url | |
curl_setopt($ch, CURLOPT_URL, $url); |
NewerOlder