misc cleanups

This commit is contained in:
Steffen Vogel 2022-08-19 23:59:53 +02:00
parent 94cd7efbed
commit 71eb82932c
32 changed files with 90 additions and 256 deletions

View file

@ -9,28 +9,13 @@
# It uses the 'btrfs send' and 'btrfs receive' commands.
# Its not intended for simple snapshots in a single filesystem enviroment.
#
# @copyright 2013 Steffen Vogel
# @copyright 2021, Steffen Vogel
# @license http://www.gnu.org/licenses/gpl.txt GNU Public License
# @author Steffen Vogel <info@steffenvogel.de>
# @link http://www.steffenvogel.de
##
##
# This script 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, either version 3 of the License, or
# any later version.
#
# This script is distributed in the hope that it will be useful,
# but WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
# GNU General Public License for more details.
#
# You should have received a copy of the GNU General Public License
# along with this script. If not, see <http://www.gnu.org/licenses/>.
# @author Steffen Vogel <post@steffenvogel.de>
# @link https://www.steffenvogel.de
##
# TODO: delete old snapshots in destination fs
# TODO: print statistics of send | receive pipe (speed & size)
# TODO: delete old snapshots in source and destination fs
function usage {
echo "Usage: $(basename $0) SOURCE [DEST]"

View file

@ -2,24 +2,10 @@
##
# Backup mySQL databases in separate sql dumps
#
# @copyright 2013 Steffen Vogel
# @copyright 2021, Steffen Vogel
# @license http://www.gnu.org/licenses/gpl.txt GNU Public License
# @author Steffen Vogel <info@steffenvogel.de>
# @link http://www.steffenvogel.de
##
##
# This script 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, either version 3 of the License, or
# any later version.
#
# This script is distributed in the hope that it will be useful,
# but WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
# GNU General Public License for more details.
#
# You should have received a copy of the GNU General Public License
# along with this script. If not, see <http://www.gnu.org/licenses/>.
# @author Steffen Vogel <post@steffenvogel.de>
# @link https://www.steffenvogel.de
##
set -e

View file

@ -1,9 +1,11 @@
#!/bin/bash
##
# Backup remote machines via restic (pull)
#
# @copyright 2021, Steffen Vogel
# @license http://www.gnu.org/licenses/gpl.txt GNU Public License
# @author Steffen Vogel <post@steffenvogel.de>
# @link http://www.steffenvogel.de
# @link https://www.steffenvogel.de
##
set -e

View file

@ -17,24 +17,10 @@
# sudo ssh-keygen
# sudo cat /root/.ssh/id_dsa.pub | ssh user@remote 'cat >> /root/.ssh/authorized_keys'
#
# @copyright 2013 Steffen Vogel
# @copyright 2021, Steffen Vogel
# @license http://www.gnu.org/licenses/gpl.txt GNU Public License
# @author Steffen Vogel <info@steffenvogel.de>
# @link http://www.steffenvogel.de
##
##
# This script 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, either version 3 of the License, or
# any later version.
#
# This script is distributed in the hope that it will be useful,
# but WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
# GNU General Public License for more details.
#
# You should have received a copy of the GNU General Public License
# along with this script. If not, see <http://www.gnu.org/licenses/>.
# @author Steffen Vogel <post@steffenvogel.de>
# @link https://www.steffenvogel.de
##
function usage {

View file

@ -2,24 +2,10 @@
##
# Changestation script for lastfmproxy
#
# @copyright 2012 Steffen Vogel
# @copyright 2021, Steffen Vogel
# @license http://www.gnu.org/licenses/gpl.txt GNU Public License
# @author Steffen Vogel <info@steffenvogel.de>
# @link http://www.steffenvogel.de
##
##
# This script 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, either version 3 of the License, or
# any later version.
#
# This script is distributed in the hope that it will be useful,
# but WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
# GNU General Public License for more details.
#
# You should have received a copy of the GNU General Public License
# along with this script. If not, see <http://www.gnu.org/licenses/>.
# @author Steffen Vogel <post@steffenvogel.de>
# @link https://www.steffenvogel.de
##
wget http://87.230.33.74:2944/$1

View file

@ -5,7 +5,7 @@
# @copyright 2021, Steffen Vogel
# @license http://www.gnu.org/licenses/gpl.txt GNU Public License
# @author Steffen Vogel <post@steffenvogel.de>
# @link http://www.steffenvogel.de
# @link https://www.steffenvogel.de
##
# default options

View file

@ -6,24 +6,10 @@
# This script creates a temporary symlink and redirects the supplied filename to
# the temporary one.
#
# @copyright 2013 Steffen Vogel
# @copyright 2021, Steffen Vogel
# @license http://www.gnu.org/licenses/gpl.txt GNU Public License
# @author Steffen Vogel <info@steffenvogel.de>
# @link http://www.steffenvogel.de/
##
##
# This script 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, either version 3 of the License, or
# any later version.
#
# This script is distributed in the hope that it will be useful,
# but WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
# GNU General Public License for more details.
#
# You should have received a copy of the GNU General Public License
# along with this script. If not, see <http://www.gnu.org/licenses/>.
# @author Steffen Vogel <post@steffenvogel.de>
# @link https://www.steffenvogel.de
##
ARGS=$@

View file

@ -1,25 +1,11 @@
#!/bin/bash
##
# reconnect avm fritzbox router
# Reconnect AVM Fritzbox router
#
# @copyright 2012 Steffen Vogel
# @copyright 2021, Steffen Vogel
# @license http://www.gnu.org/licenses/gpl.txt GNU Public License
# @author Steffen Vogel <info@steffenvogel.de>
# @link http://www.steffenvogel.de
##
##
# This script 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, either version 3 of the License, or
# any later version.
#
# This script is distributed in the hope that it will be useful,
# but WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
# GNU General Public License for more details.
#
# You should have received a copy of the GNU General Public License
# along with this script. If not, see <http://www.gnu.org/licenses/>.
# @author Steffen Vogel <post@steffenvogel.de>
# @link https://www.steffenvogel.de
##
curl 'http://fritz.box:49000/upnp/control/WANIPConn1' \

View file

@ -5,7 +5,7 @@
# @copyright 2021, Steffen Vogel
# @license http://www.gnu.org/licenses/gpl.txt GNU Public License
# @author Steffen Vogel <post@steffenvogel.de>
# @link http://www.steffenvogel.de
# @link https://www.steffenvogel.de
##
FILTER=$(mktemp)

View file

@ -1,4 +1,12 @@
#!/bin/bash
##
# Setup policy routing
#
# @copyright 2021, Steffen Vogel
# @license http://www.gnu.org/licenses/gpl.txt GNU Public License
# @author Steffen Vogel <post@steffenvogel.de>
# @link https://www.steffenvogel.de
##
GW_IF=bond0

View file

@ -1,4 +1,12 @@
#!/bin/bash
##
# Opens all LUKS volumes
#
# @copyright 2021, Steffen Vogel
# @license http://www.gnu.org/licenses/gpl.txt GNU Public License
# @author Steffen Vogel <post@steffenvogel.de>
# @link https://www.steffenvogel.de
##
# Set IFS to a newline:
IFS="

View file

@ -2,25 +2,14 @@
##
# dhclient wrapper to update your dns
#
# @copyright 2013 Steffen Vogel
# @copyright 2021, Steffen Vogel
# @license http://www.apache.org/licenses/LICENSE-2.0 Apache License 2.0
# @author Steffen Vogel <post@steffenvogel.de>
# @link http://www.steffenvogel.de
# @link https://www.steffenvogel.de
#
# Add this file to /etc/dhcp/dhclient-exit-hooks.d/nsupdate
# to update your dns autmatically when you get a new DHCP/IP lease from your ISP
##
##
# 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
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS,
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express
# or implied. See the License for the specific language governing
# permissions and limitations under the License.
##
NS=/usr/local/bin/nsupdate.sh
key=/etc/bind/dhcp.key

View file

@ -2,23 +2,7 @@
##
# Bind9 nsupdate wrapper
#
# @copyright 2013 Andrew Leonard
# @license http://www.apache.org/licenses/LICENSE-2.0 Apache License 2.0
# @author Andrew Leonard <sysadmin@andyleonard.com>
# @author Steffen Vogel <post@steffenvogel.de>
# @link http://www.steffenvogel.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
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS,
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express
# or implied. See the License for the specific language governing
# permissions and limitations under the License.
##
# @link https://www.steffenvogel.de
function usage {

View file

@ -5,7 +5,7 @@
# @copyright 2021, Steffen Vogel
# @license http://www.gnu.org/licenses/gpl.txt GNU Public License
# @author Steffen Vogel <post@steffenvogel.de>
# @link http://www.steffenvogel.de
# @link https://www.steffenvogel.de
##
print_hosts() {

View file

@ -5,7 +5,7 @@
# @copyright 2021, Steffen Vogel
# @license http://www.gnu.org/licenses/gpl.txt GNU Public License
# @author Steffen Vogel <post@steffenvogel.de>
# @link http://www.steffenvogel.de
# @link https://www.steffenvogel.de
##
PARENT=""

View file

@ -2,26 +2,10 @@
##
# SDDNS update script
#
# @copyright 2013 Steffen Vogel
# @copyright 2021, Steffen Vogel
# @license http://www.gnu.org/licenses/gpl.txt GNU Public License
# @author Steffen Vogel <post@steffenvogel.de>
# @link http://www.steffenvogel.de
##
##
# This file is part of sddns
#
# sddns 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, either version 3 of the License, or
# any later version.
#
# sddns is distributed in the hope that it will be useful,
# but WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
# GNU General Public License for more details.
#
# You should have received a copy of the GNU General Public License
# along with sddns. If not, see <http://www.gnu.org/licenses/>.
# @link https://www.steffenvogel.de
##
# default options

View file

@ -4,24 +4,10 @@
#
# for automated syncronisation of my home directory
#
# @copyright 2012 Steffen Vogel
# @copyright 2021, Steffen Vogel
# @license http://www.gnu.org/licenses/gpl.txt GNU Public License
# @author Steffen Vogel <info@steffenvogel.de>
# @link http://www.steffenvogel.de
##
##
# This script 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, either version 3 of the License, or
# any later version.
#
# This script is distributed in the hope that it will be useful,
# but WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
# GNU General Public License for more details.
#
# You should have received a copy of the GNU General Public License
# along with this script. If not, see <http://www.gnu.org/licenses/>.
# @author Steffen Vogel <post@steffenvogel.de>
# @link https://www.steffenvogel.de
##
# Hostname or IP address of remote box

View file

@ -5,7 +5,7 @@
# @copyright 2021, Steffen Vogel
# @license http://www.gnu.org/licenses/gpl.txt GNU Public License
# @author Steffen Vogel <post@steffenvogel.de>
# @link http://www.steffenvogel.de
# @link https://www.steffenvogel.de
##
set +x

View file

@ -5,7 +5,7 @@
# @copyright 2021, Steffen Vogel
# @license http://www.gnu.org/licenses/gpl.txt GNU Public License
# @author Steffen Vogel <post@steffenvogel.de>
# @link http://www.steffenvogel.de
# @link https://www.steffenvogel.de
##
tv_grab_eu_epgdata --output /srv/Data/Emby/epgdata.xml

View file

@ -5,7 +5,7 @@
# @copyright 2021, Steffen Vogel
# @license http://www.gnu.org/licenses/gpl.txt GNU Public License
# @author Steffen Vogel <post@steffenvogel.de>
# @link http://www.steffenvogel.de
# @link https://www.steffenvogel.de
##
# Set IFS to a newline:

View file

@ -1,25 +1,11 @@
#!/bin/bash
##
# reconnect zyxel prestige router
# Reconnect Zyxel Prestige Router
#
# @copyright 2012 Steffen Vogel
# @copyright 2021, Steffen Vogel
# @license http://www.gnu.org/licenses/gpl.txt GNU Public License
# @author Steffen Vogel <info@steffenvogel.de>
# @link http://www.steffenvogel.de
##
##
# This script 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, either version 3 of the License, or
# any later version.
#
# This script is distributed in the hope that it will be useful,
# but WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
# GNU General Public License for more details.
#
# You should have received a copy of the GNU General Public License
# along with this script. If not, see <http://www.gnu.org/licenses/>.
# @author Steffen Vogel <post@steffenvogel.de>
# @link https://www.steffenvogel.de
##
IP=192.168.1.1

View file

@ -50,8 +50,8 @@ for ($i = 3; $i < 14; $i++) {
echo '</select></form>
<div id="copy">&copy; Steffen Vogel<br />
<a href="mailto:info@steffenvogel.de">info@steffenvogel.de</a><br />
<a href="http://www.steffenvogel.de">http://www.steffenvogel.de</a><br />
<a href="mailto:post@steffenvogel.de">post@steffenvogel.de</a><br />
<a href="https://www.steffenvogel.de">https://www.steffenvogel.de</a><br />
Based on Micha\'s Javascript & CSS frontend</div>
</div>
</body>

View file

@ -1,9 +1,9 @@
## Proof-of-concept to show different methods to load executables in the Linux kernel
#
# @copyright 2016 Steffen Vogel
# @copyright 2021, Steffen Vogel
# @license http://www.gnu.org/licenses/gpl.txt GNU Public License
# @author Steffen Vogel <post@steffenvogel.de>
# @link http://www.steffenvogel.de
# @link https://www.steffenvogel.de
#########################################################################################
TARGETS = demo-interpreter demo-binfmt_misc proxy proxy-static

View file

@ -3,7 +3,7 @@
* @copyright 2016 Steffen Vogel
* @license http://www.gnu.org/licenses/gpl.txt GNU Public License
* @author Steffen Vogel <post@steffenvogel.de>
* @link http://www.steffenvogel.de
* @link https://www.steffenvogel.de
*/
#include <stdio.h>

View file

@ -1,9 +1,9 @@
/** Proof-of-concept to show different methods to load executables in the Linux kernel
*
* @copyright 2016 Steffen Vogel
* @copyright 2021, Steffen Vogel
* @license http://www.gnu.org/licenses/gpl.txt GNU Public License
* @author Steffen Vogel <post@steffenvogel.de>
* @link http://www.steffenvogel.de
* @link https://www.steffenvogel.de
*/
#include <linux/elf.h>

View file

@ -358,7 +358,7 @@ else {
</p>
<footer>
<p>by <a href="http://www.steffenvogel.de">Steffen Vogel</a> - <a href="http://dev.0l.de/tools/campus">help</a></p>
<p>by <a href="https://www.steffenvogel.de">Steffen Vogel</a> - <a href="http://dev.0l.de/tools/campus">help</a></p>
</footer>
</div>
</body>

View file

@ -2,7 +2,7 @@
/**
* Keygen for CKFinder
* tested successfully with version 1.4.1.1
* written by Steffen Vogel (info@steffenvogel.de)
* written by Steffen Vogel (post@steffenvogel.de)
* reverse engenering by Micha Schwab & Steffen Vogel
*/
?>

View file

@ -1,26 +1,11 @@
<?php
/**
* github migration script
* Github migration script
*
* @author Steffen Vogel <info@steffenvogel.de>
* @copyright Copyright (c) 2011, Steffen Vogel
* @author Steffen Vogel <post@steffenvogel.de>
* @copyright 2021, Steffen Vogel
* @license http://opensource.org/licenses/gpl-license.php GNU Public License
*/
/*
*
* This script 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, either version 3 of the License, or
* any later version.
*
* This script is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
*
* You should have received a copy of the GNU General Public License
* along with this script. If not, see <http://www.gnu.org/licenses/>.
*/
// Configuration
$rootDir = getcwd();

View file

@ -28,8 +28,8 @@
<option value="5">5</option>
<option value="6">6</option>
</select></div>
<div style="margin-top: 25px;" >Code &amp; Erl&auml;uterungen auf <a href="http://www.steffenvogel.de/">http://www.steffenvogel.de</a></div>
<div style="float: right; font-size: 90%;" >&copy; Steffen Vogel<br /><a href="mailto:info@steffenvogel.de">info@steffenvogel.de</a><br /><a href="http://www.steffenvogel.de">http://www.steffenvogel.de</a><br /><br />Slider by Erik Arvidsson @ <a href="http://webfx.eae.net/dhtml/slider/slider.html" >WebFx</a></div>
<div style="margin-top: 25px;" >Code &amp; Erl&auml;uterungen auf <a href="https://www.steffenvogel.de/">https://www.steffenvogel.de</a></div>
<div style="float: right; font-size: 90%;" >&copy; Steffen Vogel<br /><a href="mailto:post@steffenvogel.de">post@steffenvogel.de</a><br /><a href="https://www.steffenvogel.de">https://www.steffenvogel.de</a><br /><br />Slider by Erik Arvidsson @ <a href="http://webfx.eae.net/dhtml/slider/slider.html" >WebFx</a></div>
<script type="text/javascript">
var int;

View file

@ -5,22 +5,9 @@ Plugin URI: http://0l.de/projects/wordpress/plugins/linkpreview
Description: Place an overview of your post embedded links below your post
Version: 0.1
Author: Steffen Vogel
Author URI: http://www.steffemvogel.de
Copyright 2010 Steffen Vogel (info@steffenvogel.de)
This program is free software; you can redistribute it and/or modify
it under the terms of the GNU General Public License, version 2, as
published by the Free Software Foundation.
This program is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
GNU General Public License for more details.
You should have received a copy of the GNU General Public License
along with this program; if not, write to the Free Software
Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
Author URI: https://www.steffenvogel.de
Author Mail: post@steffenvogel.de
Copyright: 2021, Steffen Vogel
*/
/* Use the admin_menu action to define the custom boxes */

View file

@ -6,7 +6,7 @@
* @copyright 2021, Steffen Vogel
* @license http://www.gnu.org/licenses/gpl.txt GNU Public License
* @author Steffen Vogel <post@steffenvogel.de>
* @link http://www.steffenvogel.de
* @link https://www.steffenvogel.de
* @package
* @category
* @since

View file

@ -89,7 +89,7 @@ function check() {
}
alert('Alright! Welcome on board!');
window.location.href = 'http://www.steffenvogel.de';
window.location.href = 'https://www.steffenvogel.de';
}
function intro(step) {