Skip to content

Instantly share code, notes, and snippets.

View Serrin's full-sized avatar

Ferenc Czigler Serrin

  • The Walt Disney Company
  • Budapest
  • 07:24 (UTC +01:00)
View GitHub Profile
@Serrin
Serrin / DNS Servers.md
Created July 8, 2023 17:39
DNS Servers (IPv4, IPv6, DNS Over HTTPS)
Provider IPv4 IPv6 DNS Over HTTPS DNSSEC
CleanBrowsing
  • 185.228.168.9
  • 185.228.169.9
  • 2a0d:2a00:1::2
  • 2a0d:2a00:2::2
https://doh.cleanbrowsing.org/doh/security-filter/ Yes
Cloudflare
  • 1.1.1.1
  • 1.0.0.1
  • 2606:4700:4700::1111
  • 2606:4700:4700::1001
https://1.1.1.1/dns-query Yes
Google DNS
  • 8.8.8.8
  • 8.8.4.4
  • 2001:4860:4860::8888
  • 2001:4860:4860::8844
https://dns.google.com/resolve Yes
Hurricane Electric
  • 74.82.42.42
  • 2001:470:20::2
Omnispring
  • 208.111.1.1
  • 208.111.1.2
Yes
[Private Internet Access](https://helpdesk.privateinternetaccess.com/hc/en-us/articles/219460397-How-to-change-DNS-settings
@Serrin
Serrin / force-ctrl-c-v.md
Created May 13, 2023 18:19 — forked from Gustavo-Kuze/force-ctrl-c-v.md
Enable copy and paste in a webpage from the browser console
javascript:(function(){
  allowCopyAndPaste = function(e){
  e.stopImmediatePropagation();
  return true;
  };
  document.addEventListener('copy', allowCopyAndPaste, true);
  document.addEventListener('paste', allowCopyAndPaste, true);
  document.addEventListener('onpaste', allowCopyAndPaste, true);
})(); 
@Serrin
Serrin / Homoglyphs.md
Created February 18, 2023 18:31 — forked from StevenACoffman/Homoglyphs.md
Unicode Look-alikes

Unicode Character Look-Alikes

Original Letter Look-Alike(s)
a а ạ ą ä à á ą
c с ƈ ċ
d ԁ ɗ
e е ẹ ė é è
g ġ
h һ
@Serrin
Serrin / CountryCodes.json
Created January 24, 2023 20:19 — forked from anubhavshrimal/CountryCodes.json
Country and Dial or Phone codes in JSON format
[
{
"name": "Afghanistan",
"dial_code": "+93",
"code": "AF"
},
{
"name": "Aland Islands",
"dial_code": "+358",
"code": "AX"
@Serrin
Serrin / russia-ddos.md
Created March 8, 2022 11:38 — forked from sergeyzenchenko/russia-ddos.md
Russia DDOS list
@Serrin
Serrin / css_colors.js
Created March 2, 2022 08:40 — forked from bobspace/css_colors.js
All of the CSS Color names as an array in javascript.
// CSS Color Names
// Compiled by @bobspace.
//
// A javascript array containing all of the color names listed in the CSS Spec.
// The full list can be found here: https://www.w3schools.com/cssref/css_colors.asp
// Use it as you please, 'cuz you can't, like, own a color, man.
const CSS_COLOR_NAMES = [
"AliceBlue",
"AntiqueWhite",
@Serrin
Serrin / statuscode.js
Created March 2, 2022 08:39 — forked from 2pai/statuscode.js
Respond Code HTTP
const STATUS_CODES = {
100: 'Continue',
101: 'Switching Protocols',
102: 'Processing', // RFC 2518, obsoleted by RFC 4918
103: 'Early Hints',
200: 'OK',
201: 'Created',
202: 'Accepted',
203: 'Non-Authoritative Information',
204: 'No Content',
@Serrin
Serrin / async-foreach.js
Created February 12, 2022 12:52 — forked from jhwheeler/async-foreach.js
JavaScript: async/await with forEach()
const waitFor = (ms) => new Promise(r => setTimeout(r, ms))
const asyncForEach = (array, callback) => {
for (let index = 0; index < array.length; index++) {
await callback(array[index], index, array)
}
}
const start = async () => {
await asyncForEach([1, 2, 3], async (num) => {
await waitFor(50)
@Serrin
Serrin / yuvrgb.md
Created November 28, 2021 21:13 — forked from yohhoy/yuvrgb.md
RGB <=> YCbCr(YPbPr) color space conversion
Y  = a * R + b * G + c * B
Cb = (B - Y) / d
Cr = (R - Y) / e
BT.601 BT.709 BT.2020
a 0.299 0.2126 0.2627
b 0.587 0.7152 0.6780
@Serrin
Serrin / youtube-hide-videos.js
Last active July 23, 2021 22:29
Youtube hide videos from the subscriptions page (https://www.youtube.com/feed/subscriptions)
[...document.querySelectorAll(".style-scope .ytd-menu-renderer")]
.filter((v) => v.className === "style-scope ytd-menu-renderer")
//.slice(0,50) // change here to hide more videos or comment this line to hide all
.forEach( (v,i,a) => {
console.log((i + 1) + " / " + a.length);
v.click();
//[...document.querySelectorAll(".style-scope .ytd-menu-service-item-renderer")]
//.filter( (v) => v.innerHTML === "Hide" )
// //.forEach((v)=>v.click());