Skip to content

Instantly share code, notes, and snippets.

const cloudflareIpURLv4 = 'https://www.cloudflare.com/ips-v4'
const cloudflareIpURLv6 = 'https://www.cloudflare.com/ips-v6'
addEventListener('fetch', (event) => {
return event.respondWith(handleRequest())
})
/**
*
* @param url
@bitbybit
bitbybit / xorg.conf
Created March 25, 2018 00:08
NVIDIA GeForce FX 5200 and NEC LCD1701 (1280×1024)
Section "Monitor"
Identifier "Monitor0"
VendorName "Monitor Vendor"
ModelName "Monitor Model"
Option "DDC" "False"
DisplaySize 338 271
HorizSync 30.0 - 83.0
VertRefresh 56.0 - 76.0
Modeline "1280x1024_60" 108.88 1280 1360 1496 1712 1024 1025 1028 1060 -HSync +Vsync
EndSection
@bitbybit
bitbybit / temp-email.txt
Last active January 23, 2024 10:53
List of temporary email services
0815.ru
0815.su
10minutemail.com
20mail.it
20minutemail.com
a45.in
anonbox.net
anonymbox.com
antispam.de
armyspy.com
@bitbybit
bitbybit / barcode-country.js
Created June 17, 2013 14:34
Barcode country detection. Returns country code in ISO 3166-2 from barcode.
// https://github.com/Dremora/barcode-lookup/blob/gh-pages/barcode.js
var barcode_country = function (code) {
code = parseInt(code.substr(0, 3), 10);
if ((0 <= code && code <= 19)) {
return 'US,CA';
} /*else if ((20 <= code && code <= 29)) {
return 'Restricted distribution (MO defined)';
}*/ else if ((30 <= code && code <= 39)) {
return 'US';
@bitbybit
bitbybit / dnsbl-check.php
Created June 10, 2013 12:22
DNSBL IP checking
<?
$email = 'your@email';
$dnsbl_check = array(
"bl.spamcop.net",
"list.dsbl.org",
"sbl.spamhaus.org",
"xbl.spamhaus.org",
"cbl.abuseat.org",
"zen.spamhaus.org",