This file contains hidden or 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
# Script saves TYPO3 Directory inclusive | |
# Database | |
# | |
# @param dbname | |
# @param dbuser | |
# @param dbpassword | |
# @param backupdir | |
# @param backupDir | |
# SET Variables |
This file contains hidden or 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 | |
# SET Variables | |
NOW="$(date +"%d-%m-%Y_%H-%M-%S")" | |
ROOT_PATH="/home/www/p177910/html" | |
DIRECTORY_TO_SAVE="$ROOT_PATH/typo3" | |
BACKUP_TO_DIRECTORY="$ROOT_PATH/backup" | |
LOGFILE="$ROOT_PATH/backup/log/yourlogfile.log" | |
USER=who | |
DB_USER="" |
This file contains hidden or 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
plugin.tx_powermail { | |
settings { | |
setup { | |
prefill { | |
datum = TEXT | |
datum.data = date:U | |
datum.strftime = %d.%m.%Y | |
} | |
} | |
} |
This file contains hidden or 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
TCEMAIN.permissions { | |
# User der Besitzer der Seite ist | |
userid = 3 | |
# Usergroup die Besitzer der Seite ist | |
groupid = 1 | |
# Wenn individuelle Zugriffsrechte gesetzt werden sollen | |
#user = show, editcontent, edit, delete, new | |
#group = show, editcontent, edit, delete, new | |
} |
This file contains hidden or 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
Fuck fuck fuck |
This file contains hidden or 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
UPDATE TABLE | |
SET COL = REPLACE(url, 'domain1.com', 'domain2.com') |
This file contains hidden or 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
RewriteEngine on | |
RewriteCond %{HTTP:Accept-Language} (de) [NC] | |
RewriteCond %{REMOTE_ADDR} !=80.81.2.190 | |
RewriteCond %{REMOTE_ADDR} != | |
RewriteCond %{REMOTE_ADDR} != | |
RewriteRule .* http://www.URL.de/ [R,L] |
This file contains hidden or 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
USAGE: | |
<a onclick="alert('Google Analytics wurde deaktiviert');" href="javascript:gaOptout()">Google Analytics deaktivieren</a> | |
The Script needs to be included in all pages. | |
<script type="text/javascript"> | |
// Set to the same value as the web property used on the site | |
var gaProperty = 'UA-{GA_ID}-x'; | |
// Disable tracking if the opt-out cookie exists. |
This file contains hidden or 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
# Don't hint these as folders | |
rewrite ^/(content|site|kirby)$ /error last; | |
# block content | |
rewrite ^/content/(.*).(txt|md|mdown)$ /error last; | |
# block all files in the site and kirby folder from being accessed directly | |
rewrite ^/(site|kirby)/(.*)$ /error last; | |
# removes trailing slashes (prevents SEO duplicate content issues) |
This file contains hidden or 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
rsync -avzbe ssh [email protected]:/remote/directory/path /local/directory/path |
OlderNewer