View # hetzner-snapshot.md

hetzner-snapshot

Shell script to create a snapshot of a Hetzner CX line virtual server.

Install

# script
View all-inkl.md

all-inkl.com Access Logs & Webalizer

Leider ist die Dokumentation der verschiedenen Statistikoptionen bei all-inkl.com ziemlich unvollständig und der Tooltip im KAS wenig hilfreich. Insbesondere welchen Einfluss die verschiedenen Optionen auf die Access Logs nehmen ist komplett undokumentiert. Der Einfluss auf die Access Logs ist dabei aber wichtig um zu verstehen welche Zugriffe in den Webalizer-Statistiken erfasst werden.

Access Logs

  • Logs A: Zugriffe werden in logs/access_log_[Datum].gz des Rootverzeichnisses geloggt.
  • Logs B: Zugriffe werden in logs/access_log_[Datum].gz des Domainpfades geloggt.
View HeadersEqual.pm
# <@LICENSE>
# Copyright 2016 Daniel Rudolf <www.daniel-rudolf.de>
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
View VBoxGuestRun.bat
@echo off & setlocal
if "%~1" == "" (
set ERROR=You must pass a VirtualBox VM name or ID as first argument
goto :error
)
if "%~2" == "" (
set ERROR=You must pass a path to an executable on the guest as second argument
goto :error
)
View PicoDrafts.php
<?php
/**
* Pico Drafts Plugin (example)
*
* This is a example of a "Drafts" plugin for Pico's documentation.
* Pico is a stupidly simple, blazing fast, flat file CMS.
*
* This example plugin basically just removes all pages starting with a `_`
* from Pico's page list. The page will not show up anywhere, however, you
View openwrt-button-hotplug
#!/bin/sh
# Improved uci/hotplug based button handler for OpenWrt
#
# Copy this file to /etc/hotplug.d/button/00-button and make it executable (chmod +x …)
# Add button event sections to /etc/config/system, e.g.
# config button
# option button 'wps'
# option action 'released'
# option handler '/sbin/reboot'
# option min 5
View ogame-retro-live-resources.user.js
// ==UserScript==
// @name OGame Retro Live Resources
// @namespace 960b5e6b7ff3c701d802352d15941d89
// @description Updates resources in OGame's retro universe using JavaScript
// @author Daniel Rudolf <www.daniel-rudolf.de>
// @license GNU GPL version 3.0 <http://opensource.org/licenses/GPL-3.0>
// @include http://ogame1304.de/game/index.php?page=*
// @downloadURL https://gist.github.com/PhrozenByte/9eb16e643369838cd30f/raw/ogame-retro-live-resources.user.js
// @updateURL https://gist.github.com/PhrozenByte/9eb16e643369838cd30f/raw/ogame-retro-live-resources.user.js
// @version 6
View munin-plugin.php
<?php
/**
* Helper functions for Munin plugins written in PHP
* Version 1.1 (build 20160206)
*
* Copyright (C) 2016 Daniel Rudolf <www.daniel-rudolf.de>
*
* This program is free software: you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation, version 3 of the License only.
View letsencrypt-issue.sh
#!/bin/bash
# Issue Let's Encrypt SSL certificates using acme-tiny
# Version 1.3 (build 20170815)
#
# Copyright (C) 2016-2017 Daniel Rudolf <www.daniel-rudolf.de>
#
# This program is free software: you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
# the Free Software Foundation, version 3 of the License only.
#
View MPDO.php
<?php
namespace PhrozenByte\MPDO;
use PDO;
use PhrozenByte\MPDOStatement;
use RuntimeException;
/**
* The MPDO class
*