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
SELECT * | |
FROM asdfg_posts | |
WHERE post_content LIKE '%href="wiki%'; | |
SELECT * | |
FROM asdfg_posts | |
WHERE post_content LIKE '%href="/wiki%'; | |
UPDATE asdfg_posts | |
SET post_content = replace(post_content, 'href="wiki', 'href="/wiki') |
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
# Block semalt.com | |
if ($http_referer ~* "semalt\.com") { | |
return 444; | |
} |
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
SetEnvIfNoCase Referer buttons-for-website.com spammer=yes | |
SetEnvIfNoCase Referer semalt.com spammer=yes | |
Order allow,deny | |
Allow from all | |
Deny from env=spammer |
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
Options +FollowSymLinks | |
RewriteEngine On | |
RewriteRule ^sitemap.xml$ index.php?option=com_xmap&view=xml&tmpl=component&id=1 [L] |
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
SetEnvIfNoCase Referer buttons-for-website.com spammer=yes | |
SetEnvIfNoCase Referer semalt.com spammer=yes | |
Order allow,deny | |
Allow from all | |
Deny from env=spammer |
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 | |
/** | |
* replace space by underscore in given pattern | |
* written by Github user @pjdevries | |
* | |
* run from command line | |
* $ php unspace-anchor-names.php name-input-file > name-output-file | |
* | |
*/ | |
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 | |
/** | |
* get Meta Tags from weblinks | |
* | |
* input for this script is data.txt | |
* data.txt contains weblinks. Every line a new weblink. | |
* | |
* use this php script from command line | |
* $ cat data.txt|while read LINE;do php ./getMetaTags.php $LINE>>output.csv | |
* |
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
/kennisbank/item/php_sessies /kennisbank/item/Gebruik_van_PHP_sessies | |
/kennisbank/item/php_session_start /kennisbank/item/Gebruik_van_PHP_sessies | |
/kennisbank/item/php_sqlite /kennisbank/cat/PHP | |
/kennisbank/item/php_traagheid /kennisbank/item/Website_debuggen:_snelheidsproblemen_oplossen | |
/kennisbank/item/php_veiligheid /kennisbank/item/PHP_scripts_veiliger_maken | |
- left: origin | |
- right: redirect url | |
check if origin exists |
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
// convert filenames to lowercase | |
$ for i in $(find . -type f -name "*[A-Z]*");do mv $i $(echo $i | tr A-Z a-z);done |
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
This Gist is to show you how I made the agenda view on http://oeteldonk.org/agenda | |
It's a template override on the com_content category blog view. | |
No third party extensions. Only Joomla! with a template override | |
COPY | |
components/com_content/views/category/tmpl/blog.xml | |
TO | |
templates/<your-template>/html/com_content/category/agenda.xml |
OlderNewer