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 | |
// +----------------------------------------------------------------------+ | |
// | Copyright (c) 2012 DasLampe <[email protected]> | | |
// | Encoding: UTF-8 | | |
// +----------------------------------------------------------------------+ | |
if(!preg_match("/^piwik$!", $_SERVER['SERVER_NAME'])) { | |
$url = $_SERVER['SERVER_NAME']; | |
if(substr_count($url, '.') >= 2) | |
{ |
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 | |
############################################# | |
# license: CC-NC http://www.tldrlegal.com/l/CC-NC | |
# author: DasLampe <[email protected]> | |
# Description: Small script to download multiple files (e.g. series), when you only have an directory Listing. | |
# This script search recursivly for files without text/html mime-type & download this. | |
# If required create folders to arrange files. | |
############################################# | |
url=$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 | |
# This file is licensed under the DO WHAT THE FUCK YOU WANT TO PUBLIC LICENSE Version 2, December 2004 | |
# See http://www.wtfpl.net/txt/copying/ | |
password='' | |
mail='' | |
date=$(date +%m_%d_%Y%H_%M_%S) | |
if [ ! -d /backup/sql -o ! -w /backup/sql ]; 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
#!/bin/bash | |
################################################### | |
#### (c) DasLampe <[email protected]> 2013 | |
#### Description: Read m3u file and create an 7z archiv with all files. | |
#### Important: Replace ^M in line 40 with special character! | |
#### | |
#### Licence Information: | |
#### 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, either version 3 of the License, or any later version. |
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 | |
// +----------------------------------------------------------------------+ | |
// | Copyright (c) 2010 DasLampe <[email protected]> | | |
// | Encoding: UTF-8 | | |
// +----------------------------------------------------------------------+ | |
class IMAP | |
{ | |
var $sock; | |
var $host; | |
var $port; |
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
ssh [email protected] 'dd if=/dev/sdX | gzip -c | gpg -r [userid] -e' | pv | cat > ~/image_sdaX.gz.gpg |
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 | |
# | |
# Port Knocking server configuration. It closes all ports but the webserver one. | |
# When the correct sequence of ports is detected (1000. 2000. 3000. 4000), the | |
# SSH port is opened for 5 seconds to allow connections. | |
# | |
# Erase all the rules | |
iptables -F |
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 | |
######################################################## | |
#Copright: 2012, DasLampe <[email protected]> | |
#Original Source: https://gist.github.com/gists/3934414/ | |
# | |
#Licence Information: | |
#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, either version 3 of the License, or any later version. | |
#This program is distributed in the hope that it will be useful, |
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
/********Code based on https://gist.github.com/907604 ********* | |
The code find email addresses and proteceds for bots. | |
Make the addresses clickable with webtoolkit.base64.js and the following code (JQuery requiered): | |
$('a').each(function() { | |
var href, mailaddress; | |
href = $(this).attr('href'); | |
if(href.search(/mailto:/) != -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
/**HTML CODE | |
<div class="edit_content_options"><a class="edit_link">Edit</a></div> | |
<div> | |
<div>Edit block, with event</div> | |
</div>*/ | |
function find_parent(current_block) | |
{ | |
var parent, searchblock, edit_option; | |
NewerOlder