Skip to content

Instantly share code, notes, and snippets.

David Jardin SniperSister

Block or report user

Report or block SniperSister

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
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
View keybase.md

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:

You can’t perform that action at this time.