Skip to content

Instantly share code, notes, and snippets.

<servers>
<server>
<port></port>
<djpass></djpasss>
<ftpuser></ftpuser>
<ftppass></ftppass>
</server>
<server>
<port></port>
<djpass></djpasss>
<?php
abstract class Vpfw_DataMapper_Abstract {
protected $dataObjectHolders;
protected $database;
protected $tableInformation;
public function __construct(Vpfw_DataBase_Interface $database, Vpfw_Config_TableInformation $tableInformation) {
$this->database = $database;
$this->tableInformation = $tableInformation;
$this->initializeDataObjectHolders();
@peaceman
peaceman / minecraft-backup.sh
Created March 10, 2011 14:12
backup scripts with additional functionality for map generation
#!/bin/bash
#########################################################################
# Backup script for minecraft servers with SCP to another site. #
# Stops and starts specified minecraft server for 100% backups. #
# Supports multiple minecraft servers on the same machine #
# #
# Author #
# Pierre Christoffersen, www.nahaz.se #
# Feel free to redistribute, change or improve, but leave original #
# authors and contributers in comments. #
#!/bin/bash
# This script should handle the automatic backup and map generation
# of a Minecraft server.
#
# Steps of the process:
# - Stop the Minecraft server if it runs
# - Copy the whole Minecraft directory to /tmp
# - Start the Minecraft server with the specified parameters
# - Compress and transfer the data to a backuphost
# - Start map generation and transfer the pictures to a webhost
#include <stdio.h>
#include <string>
#include <iostream>
#include <conio.h>
std::string genHtmlForm(std::string formAction, int position, std::string* beschriftung, int anzahl) {
std::string toReturn = "<html><body><form action=\"" + formAction + "\" method=\"post\">";
toReturn += "<table align=\"";
switch (position) {
case 1:
#include <iostream>
#include <conio.h>
class ArbeitsplatzPC {
private:
std::string macAdresse;
char netz;
bool checknetz(char netz);
bool checkMac(std::string macAddress);
bool checkHex(char magic);
#include <iostream>
#include <fstream>
#include <conio.h>
const std::string inputFileName = "h:/namen.txt";
const std::string outputFileName = "h:/logins.txt";
int main() {
std::ifstream inputFile(inputFileName.c_str(), std::fstream::in);
std::ofstream outputFile(outputFileName.c_str(), std::fstream::out);
/*
* File: Main.cpp
* Author: peaceman
*
* Created on 13. April 2011, 07:55
*/
#include <conio.h>
#include <iostream>
#include <string>
/*
* File: main.cpp
* Author: NaegeleNi
*
* Created on 15. April 2011, 13:10
*/
#include <fstream>
#include <sstream>
#include <iostream>
/*
* File: main.cpp
* Author: NaegeleNi
*
* Created on 15. April 2011, 13:57
*/
#include <iostream>
#include <sstream>
#include <fstream>
#include <vector>