Skip to content

Instantly share code, notes, and snippets.

View zoonderkins's full-sized avatar
🏠
Working 👍

Quack~ zoonderkins

🏠
Working 👍
View GitHub Profile
@zoonderkins
zoonderkins / dns.md
Created January 16, 2018 06:30 — forked from roge/dns.md
Public DNS Servers

DNS.md

A list of reasonably reliable DNS servers that I've personally tested to ensure that they fully support DNSSEC and do not hijack NXDOMAIN responses.

*: The servers in this list were last tested November 13, 2017. I make no guarantee that they will continue to function in a reliable and compliant manner in the future.

IPv4

@zoonderkins
zoonderkins / scrap.js
Created January 20, 2018 08:56
[Vanilla JS script scrab hacker news] #javascript
https://news.ycombinator.com/
JSON.stringify([...document.querySelectorAll('td.title:nth-child(3)')].map(el => ({
title: el.querySelector('a').innerText,
url: el.querySelector('a').getAttribute('href')
})), null, 2)
@zoonderkins
zoonderkins / es6+snippet.js
Created January 30, 2018 08:54
ES6,7,8 useful example #javascript
* Object.entries() method returns an array of a given object’s own enumerable property [key, value] pairs.
var fruits = {
apple: 10,
orange: 20,
grapes: 30,
pineapple: 40
}
@zoonderkins
zoonderkins / ios-enable-touch-focus
Created February 25, 2018 05:35
[ios support touch with focus] javascript solution #ios #web #javascript
```javascript
add ontouchstart="" to related div or entire body
<body ontouchstart="">
</body>
```
@zoonderkins
zoonderkins / disable-user-selected-word
Created February 25, 2018 05:36
[disable text copy on mobile] disable text copy #web #javascript
body {
-webkit-user-select: none;
-moz-user-select: none;
-ms-user-select: none;
user-select: none;
}
@zoonderkins
zoonderkins / await-sample.js
Created April 6, 2018 03:18
[Await samples] Some sample for await #javascript
await fetch('https://api.github.com/users/wesbos').then(data => data.json())
OR
await (await fetch('https://api.github.com/users/wesbos')).json()
@zoonderkins
zoonderkins / golang-install-on-debian.md
Last active August 25, 2025 10:48
Install Golang on Debian / Raspberry Pi #linux

Last update at 2025-08-25

Install Golang on Debian / Raspberry Pi

rm -rf /usr/local/go
GOVERSION="1.25.0"
wget "https://golang.org/dl/go${GOVERSION}.linux-amd64.tar.gz" -4
@zoonderkins
zoonderkins / Awesome-monitor-tools-on-ubuntu
Created April 9, 2018 02:36
Aweseome monitoring tools on Ubuntu #linux
1. htop
2. iftop
3. nload
4. ncdu
5. pydf
@zoonderkins
zoonderkins / linux-create-swap
Created April 9, 2018 02:39
Linux create SWAP file #linux
dd if=/dev/zero of=/swapfile count=2048 bs=1M
chmod 600 /swapfile
mkswap /swapfile
swapon /swapfile
echo '/swapfile none swap sw 0 0' >> /etc/fstab
@zoonderkins
zoonderkins / linux-anti-ddos-conf
Created April 9, 2018 02:45
Linux Anti-DDos conf #linux
// nano /etc/sysctl.conf
kernel.printk = 4 4 1 7
kernel.panic = 10
kernel.sysrq = 0
kernel.shmmax = 4294967296
kernel.shmall = 4194304
kernel.core_uses_pid = 1
kernel.msgmnb = 65536
kernel.msgmax = 65536