Skip to content

Instantly share code, notes, and snippets.

Avatar
🛡️
making the world more secure

Daniel Ruf DanielRuf

🛡️
making the world more secure
View GitHub Profile
@DanielRuf
DanielRuf / what-forces-layout.md
Created Dec 17, 2019 — forked from paulirish/what-forces-layout.md
What forces layout/reflow. The comprehensive list.
View what-forces-layout.md

What forces layout / reflow

All of the below properties or methods, when requested/called in JavaScript, will trigger the browser to synchronously calculate the style and layout*. This is also called reflow or layout thrashing, and is common performance bottleneck.

Element

Box metrics
  • elem.offsetLeft, elem.offsetTop, elem.offsetWidth, elem.offsetHeight, elem.offsetParent
  • elem.clientLeft, elem.clientTop, elem.clientWidth, elem.clientHeight
  • elem.getClientRects(), elem.getBoundingClientRect()
View dependents.txt
@absolunet/gulp-include
@ag_dubs/live-server
@ajhyndman/relay
@akzhan/gulp-juice
@algolia/cli
@apify/ps-tree
@appirio/demo-scoped-pkg
@appirio/salesforce
@atsushi_suzuki/gulp-tsconfig
@atsushi_suzuki/gulp-tsconfig
View keybase.md

Keybase proof

I hereby claim:

  • I am danielruf on github.
  • I am danielruf_ue (https://keybase.io/danielruf_ue) on keybase.
  • I have a public key ASCDIKNBkMAiqfWVzYo0LS0nnv61GA-faky06u1JolPTyQo

To claim this, I am signing this object:

View keybase.md

Keybase proof

I hereby claim:

  • I am danielruf on github.
  • I am danielruf (https://keybase.io/danielruf) on keybase.
  • I have a public key ASDWkxw8EN_Jq6h7BlmaZ_D2OiDrCwQOD7zyPGSg37GpbAo

To claim this, I am signing this object:

View gist:8b3c478d4d270acb8dae
6G Beta
[ 6G Blacklist (beta) ]
Since releasing the 5G Blacklist earlier this year, malicious server scans and bad requests have surged with more novel attacks than I’ve seen since first getting into this stuff six years ago. In other words, now is the time to beef up security and lock things down. If you’re into monitoring your server and knowing your traffic, you may be observing the same recent spike in malicious activity. In response to these attacks, I’ve been secretly working on the next generation of G-series blacklist, the inevitable 6G Firewall.
Featured in this jam-packed post:
The 6G Firewall – beta version
Development strategy (building the 6G)
Front Line: Request strings
@DanielRuf
DanielRuf / URLScannerTest.php
Last active Oct 18, 2015
URL Scanner test files
View URLScannerTest.php
<?php
include 'phpMussel.php';
class URLScannerTest extends PHPUnit_Framework_TestCase {
public function testURLScanner_base64() {
$a = phpMussel('urlscanner_tests/base64.txt');
$this->assertEquals(2, $a);
}
public function testURLScanner_base64_2() {
@DanielRuf
DanielRuf / phpMussel Benchmark.jmx
Last active Aug 29, 2015
JMeter phpMussel Web Test Plan
View phpMussel Benchmark.jmx
<?xml version="1.0" encoding="UTF-8"?>
<jmeterTestPlan version="1.2" properties="2.8" jmeter="2.13 r1665067">
<hashTree>
<TestPlan guiclass="TestPlanGui" testclass="TestPlan" testname="phpMussel Benchmark" enabled="true">
<stringProp name="TestPlan.comments"></stringProp>
<boolProp name="TestPlan.functional_mode">false</boolProp>
<boolProp name="TestPlan.serialize_threadgroups">false</boolProp>
<elementProp name="TestPlan.user_defined_variables" elementType="Arguments" guiclass="ArgumentsPanel" testclass="Arguments" testname="Benutzer definierte Variablen" enabled="true">
<collectionProp name="Arguments.arguments"/>
</elementProp>
View pyramid_pdepend.svg
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
You can’t perform that action at this time.