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
@ECHO OFF | |
CLS | |
ECHO The server started: %time:~0,5% %date:~1% | |
:SERVERLOOP | |
SET BINDIR=%~dp0 | |
CD /D "%BINDIR%" | |
"%ProgramFiles(x86)%\Java\jre6\bin\java.exe" -Xincgc -Xmx1G -jar C:\games\minecraft\minecraft_server.jar nogui | |
ECHO Server crashes and restarted %time:~0,5% %date:~1% | |
ECHO. | |
GOTO SERVERLOOP |
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
#!/usr/bin/perl | |
open(SUBREDDIT, "<subreddits.txt"); | |
my(@data) = <SUBREDDIT>; | |
@data = sort(@data); | |
my($line); | |
foreach $line (@data) | |
{ |
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
#!/usr/bin/env perl | |
use strict; | |
use warnings; | |
use JSON; | |
use WWW::Mechanize; | |
die "Usage: $0 subreddit [...]\n" unless @ARGV; | |
my $mech = WWW::Mechanize->new(autocheck=>0); |
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 | |
// Grab the data. | |
$page = @file_get_contents("http://tshock.co/count.php"); | |
// A little error handling. | |
if($page == FALSE) | |
{ | |
echo "Cannot retrieve data, exiting."; | |
die (); |
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 | |
# Remote FTP Configuration | |
USER="username" | |
PASSWD="password" | |
HOST="123.123.123.13" | |
# Remote FTP path to store the compressed backups. | |
RMDIR="/backups/mysql" | |
# Local configuration |
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
#!/usr/local/bin/bash | |
for i in {631..731} | |
do | |
echo Downloading Map $i | |
wget -q "http://www.silentspy.net/utility/dayz/mission-generator/loop/dayz_$i.Chernarus.pbo" | |
done |
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 | |
# | |
# A very simple script to used to work with "swaks" to send white-label test messages | |
# to clients. | |
# | |
# Written by Karl Baillie | |
# kb@sub6.com | |
# 15/11/2011 | |
# |
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
#!/usr/bin/perl | |
# use 'swaks --help' to view documentation for this program | |
# | |
# Homepage: http://jetmore.org/john/code/swaks/ | |
# Online Docs: http://jetmore.org/john/code/swaks/latest/doc/ref.txt | |
# http://jetmore.org/john/code/swaks/faq.html | |
# Announce List: send mail to updates-swaks@jetmore.net | |
# Project RSS: http://jetmore.org/john/blog/c/swaks/feed/ | |
# Google+: https://plus.google.com/u/0/110270727761256449657 |
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 | |
# Web backup script | |
# by Dan Miller | |
# http://www.danmiller.co.uk | |
### Begin Configuration ### | |
EMAIL="you@email.com" # Email address to send the backup report to. (sendmail must be installed) | |
WEBPATH="/data/www" # No trailing slash |
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 | |
# Configurables | |
SD_URL="http://changeme.serverdensity.com" | |
AGENT_KEY="changeme" | |
# Core - DO NOT CHANGE | |
CONFIGFILE="/etc/sd-agent/config.cfg" | |
wget -q https://www.serverdensity.com/downloads/boxedice-public.key -O- | sudo apt-key add - |
OlderNewer