Skip to content

Instantly share code, notes, and snippets.

View Serrin's full-sized avatar

Ferenc Czigler Serrin

  • Budapest
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 / endStringWithThreeDots.js
Last active June 10, 2023 18:49 — forked from i-havr/endStringWithThreeDots.js
Функція повертає скорочений до заданої кількості символів рядок із трьома крапками у кінці.
// https://gist.github.com/i-havr/deae1ca8874c01d0ccc1e396714af687
// v0
const LIMIT = 30;
const endStringWithThreeDots = (str) => {
if (str.length <= LIMIT) {
return str;
} else {
@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
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@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)