Skip to content

Instantly share code, notes, and snippets.

Avatar

David Jardin SniperSister

View GitHub Profile
View dbcargofont.css
@font-face{
font-family: DBHead;
src: url(/resource/crblob/4821032/22e9a212465eb531379a126e31f9e9ec/dbhea07-webfont-woff-data.woff) format("woff"),url(/resource/crblob/4821034/1741755acb15761a1c5638dc8b8262e6/dbhea07-webfont-ttf-data.ttf) format("truetype");
font-weight: 700;
font-style: normal
}
@font-face{
font-family: DBHead;
src: url(/resource/crblob/4821036/f01408f4ff9337b8098133947231e3e8/dbhead-regular-webfont-woff-data.woff) format("woff"),url(/resource/crblob/4821038/983e757c3fb889b880ca00bfdd3d6a1c/dbhead-regular-webfont-ttf-data.ttf) format("truetype");
View swagger.yaml
openapi: 3.0.1
info:
title: ASMP
description: Application Server Management Protocol server
termsOfService: http://asmp.io/terms/
contact:
email: apiteam@asmp.io
license:
name: Apache 2.0
url: http://www.apache.org/licenses/LICENSE-2.0.html
@SniperSister
SniperSister / script.js
Last active Dec 25, 2018
PhocaFilterScript Vanilla JS
View script.js
document.addEventListener("DOMContentLoaded", () => {
function phFilterQuote(str) {
return str.replace(/[-\[\]{}()*+!<=:?.\/\\^$|#\s,]/g, "\\$&");
};
document.getElementById("phFilterOptions").addEventListener("input", (event) => {
let tV = event.currentTarget.value;
if (tV.length > 0) {
document.querySelectorAll('#configTabs li, #configContent div.tab-pane').forEach((elem) => {elem.classList.add('active')});
View readmedia.php
<?php
/**
* @version 1.0.0
* @package Readmedia
* @copyright Copyright (C) 2018 David Jardin - djumla GmbH
* @license GNU GPLv3 <http://www.gnu.org/licenses/gpl.html>
* @link http://www.djumla.de
*/
/* Initialize Joomla framework */
View gist:96bbf89a579f763884ceb0b434d73b36
# SPECIFIC: Block #submit #validate #process #pre_render #post_render #element_validate #after_build #value_callback parameters
SecRule REQUEST_FILENAME "(index\.php|\/$)" "chain,id:003294,t:lowercase,t:none,t:utf8toUnicode,t:urlDecodeUni,t:urldecode,block"
SecRule REQUEST_METHOD "^(GET|POST|HEAD)$" chain
SecRule ARGS_NAMES|REQUEST_COOKIES_NAMES "^\#(submit|validate|pre_render|post_render|element_validate|after_build|value_callback|process)$|\[(?:\'|\")?#(submit|validate|pre_render|post_render|element_validate|after_build|value_callback|process)"
# GENERIC: Block all parameters starting with #
SecRule REQUEST_FILENAME "(index\.php|\/$)" "chain,id:003309,t:lowercase,t:none,t:utf8toUnicode,t:urlDecodeUni,t:urldecode,block"
SecRule REQUEST_METHOD "^(GET|POST|HEAD)$" chain
@SniperSister
SniperSister / links.txt
Created Feb 3, 2018
Show me your Tools Joomlacamp 2018
View links.txt
View gist:c858fdb350cd17793db1a0e43ed49122
<?php
$dom = new DOMDocument();
$dom->loadHTML("<legend>Optional</legend>", LIBXML_HTML_NOIMPLIED + LIBXML_HTML_NODEFDTD);
$dom2 = new DOMDocument();
$dom2->loadXML("<div></div>");
$result = $dom2->importNode($dom->firstChild, true);
View gist:e5dd71101fe64292494aa118385cd10d
http://www.jabev.de/
http://www.joomladay.de/8-historie/11-mamboday-2005
https://www.gesetze-im-internet.de/ao_1977/__52.html
http://www.jabev.de/ueber-den-verein/satzung
http://jandbeyond.org/archive/52-j-and-beyond-2010.html
https://www.finanzverwaltung.nrw.de/de/eckdaten/kontaktdaten-aachen-stadt
http://www.vereinsbesteuerung.info/leitfaden_ust.htm#1.
https://www.gesetze-im-internet.de/ao_1977/__65.html
https://association.contao.org/
http://www.jabev.de/images/20160610162402-anonymisiert.pdf
@SniperSister
SniperSister / gist:aa14a9876f89b2be7042
Created Apr 17, 2015
GZIP Komprimierung aktivieren
View gist:aa14a9876f89b2be7042
# GZIP Content
###################################
# Insert filter
SetOutputFilter DEFLATE
# Netscape 4.x has some problems...
BrowserMatch ^Mozilla/4 gzip-only-text/html
# Netscape 4.06-4.08 have some more problems
BrowserMatch ^Mozilla/4\.0[678] no-gzip
# MSIE masquerades as Netscape, but it is fine
# BrowserMatch \bMSIE !no-gzip !gzip-only-text/html
You can’t perform that action at this time.