Skip to content

Instantly share code, notes, and snippets.

View jarkko-hautakorpi's full-sized avatar

Jarkko jarkko-hautakorpi

View GitHub Profile
const tikkurilaRalColors = [
{
"name": "RAL 1000 Green beige",
"url": "https:\/\/tikkurila.fi\/varit\/green-beige-ral-1000",
"hex": "#CBBB89",
"rgb": "rgb(203, 187, 137)"
},
{
"name": "RAL 1001 Beige",
"url": "https:\/\/tikkurila.fi\/varit\/beige-ral-1001",
@jarkko-hautakorpi
jarkko-hautakorpi / index.php
Created November 3, 2024 14:27
googleadservices.com capture and redirect to bypass ads tracking
<?php
// Use the Redirector Chrome plugin to redirect to your local site.
// Catch AD URLs like https://www.googleadservices.com/pagead/aclk?sa=L&ai=CPeysfenknZ5HpCCI2yiM0PtbaegA...
// Check if 'adurl' parameter exists in the URL query string
if (isset($_GET['adurl'])) {
$adUrl = $_GET['adurl'];
// Basic validation to ensure it's a HTTP/HTTPS URL
if (preg_match('/^(http|https):\/\//', $adUrl)) {
// Redirect browser to the extracted ad URL
@jarkko-hautakorpi
jarkko-hautakorpi / access.log_failregexp_1.jpg
Last active December 25, 2024 19:33
Creating new fail2ban filter regular expressions
access.log_failregexp_1.jpg