Skip to content

Instantly share code, notes, and snippets.

View zoonderkins's full-sized avatar
🏠
Working 👍

Quack~ zoonderkins

🏠
Working 👍
View GitHub Profile
@zoonderkins
zoonderkins / tls-https.md
Last active August 1, 2018 10:08
certbot standalone multiple domain #https #tls
certbot certonly --standalone -d dns.de.blahdns.com -d svr5.ookangzheng.com -d doh.de.blahdns.com

nginx.conf

user www-data;
worker_processes auto;
pid /run/nginx.pid;
@zoonderkins
zoonderkins / tcpdump-dns.md
Last active August 2, 2018 10:06
tcpdump dns #dns
@zoonderkins
zoonderkins / disable-service-on-startup-ubuntu.md
Created August 7, 2018 14:37
Disable services on startup in ubuntu

systemctl disable <service> If you are not using systemd (Ubuntu 14.10 and earlier) use:

update-rc.d -f <service> remove The following command will give you a list of all services on your machine:

service --status-all Example disable Nginx

systemctl disable nginx
@zoonderkins
zoonderkins / blacklist.txt
Created August 8, 2018 10:37 — forked from r0ckarong/blacklist.txt
Pi-Hole Blacklist
ad.flipboard.com
ads.viksaffiliates.com
anzeigen-buchen.sueddeutsche.de
anzeigen.sueddeutsche.de
app-measurement.com
blickonl-ssl.wemfbox.ch
cdn2.teads.tv
cdn.xplosion.de
ciqcol01.ciq.labs.att.com
click2createahero.net
@zoonderkins
zoonderkins / debian-enable-swap.md
Last active March 17, 2022 17:28
Debian enable SWAP #linux

Debian | Ubuntu enable SWAP

swapon --show

Check free memory and disk

df -h
@zoonderkins
zoonderkins / angular4-mosh-firebase-10&11-angular6-angularfire2v5.js
Created August 27, 2018 19:44
angular4-mosh-firebase-10&11-angular6-angularfire2v5
//app.component.html
<ul>
<li *ngFor="let course of (courses$ | async)">
{{course}}
</li>
</ul>
<p>
{{ (course$ | async | json) }}
</p>

新闻w

RHEL 7 发布应该算是比较大的新闻了吧~

人民群众纷纷表示红帽步子太大不要扯着蛋了比较好...

F_XZ: 完全没关心...

猫注意的新功能有 virtio 等 KVM 优化, docker 支持, 以及 ruby 2.0, python 2.7, java 7 之类的吧

@zoonderkins
zoonderkins / secure-ssh.md
Last active November 18, 2018 19:09
Secure SSH tips #linux

Some useful securing SSH on Linux

// Secure ssh with changing port

nano /etc/ssh/sshd_config
Port 2222
...

# Restart sshd service and add port to firewall
@zoonderkins
zoonderkins / I2P OS X.md
Created November 12, 2018 10:11 — forked from aint/I2P OS X.md
Set Up I2P on Mac OS X
  • Install I2P
    • Download I2P
    • java -jar i2pinstall_*.jar
  • Install Java Service Wrapper
    • Download Community Version
    • tar xzf wrapper-*.tar.gz
    • cp wrapper*/bin/wrapper /Applications/i2p/i2psvc
    • cp wrapper*/lib/wrapper.jar /Applications/i2p/lib
    • cp wrapper*/lib/libwrapper.so /Applications/i2p/lib
  • Try to start I2P using /Applications/i2p/i2prouter start or Start I2P Router app
@zoonderkins
zoonderkins / linux-benchmakr.md
Last active November 16, 2018 14:54
Linux common benchmark methods #linux

Disk IO

# Terminal method

hdparm -Tt /dev/sda

time sh -c "dd if=/dev/zero of=ddfile bs=8k count=250000 && sync"; rm ddfile

dd if=/dev/zero of=/tmp/output bs=8k count=10k; rm -f /tmp/output