Skip to content

Instantly share code, notes, and snippets.

View SniperSister's full-sized avatar

David Jardin SniperSister

View GitHub Profile

Keybase proof

I hereby claim:

  • I am snipersister on github.
  • I am snipersister (https://keybase.io/snipersister) on keybase.
  • I have a public key whose fingerprint is 99A9 2AFD E419 59C9 3768 C917 C123 138A 516B FF8D

To claim this, I am signing this object:

@SniperSister
SniperSister / gist:aa14a9876f89b2be7042
Created April 17, 2015 15:43
GZIP Komprimierung aktivieren
# 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
@SniperSister
SniperSister / gist:e5dd71101fe64292494aa118385cd10d
Created September 16, 2016 16:20
Linkliste David gegen Goliath
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
<?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);
@SniperSister
SniperSister / links.txt
Created February 3, 2018 15:48
Show me your Tools Joomlacamp 2018
# 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 / script.js
Last active December 25, 2018 11:07
PhocaFilterScript Vanilla 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')});
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
@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");