Skip to content

Instantly share code, notes, and snippets.

chaeplin chaeplin

  • South Korea
Block or report user

Report or block chaeplin

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
chaeplin /
Created Sep 12, 2017 — forked from joemiller/
shell: quick linux scripts for showing network bandwidth or packets-per-second
if [ -z "$1" ]; then
echo usage: $0 network-interface
echo e.g. $0 eth0
echo shows packets-per-second
chaeplin /
Created Sep 7, 2017 — forked from tdack/
Bridge Mosquitto MQTT broker to MQTT broker to use with
# Connection name
connection adafruit
# Secure SSL/TLS
# adjust path as approriate to point to directory with PEM encoded .crt CA files
bridge_capath /etc/ssl/certs/
# Insecure
chaeplin / Vagrantfile
Created Sep 7, 2017 — forked from EvianZhow/Vagrantfile
Cross-compile Vagrant box for EdgeRouter
View Vagrantfile
Vagrant.configure(2) do |config| = "ubuntu/trusty64"
config.vm.provider "virtualbox" do |vb|
vb.memory = "1024"
config.vm.provision "shell", inline: <<-SHELL
chaeplin /
Created Aug 20, 2017 — forked from devStepsize/
POST a JSON payload to a Slack Incoming Webhook using Python requests
This is an example of how to send data to Slack webhooks in Python with the
requests module.
Detailed documentation of Slack Incoming Webhooks:
import json
import requests
View Nginx C10K Configuration
# /etc/init/nginx.conf - add this below the "respawn" line (line 7)
limit nofile 50000 50000
# /etc/sysctl.conf - add this to the bottom of the file
fs.file-max = 50000
net.core.somaxconn = 65536
net.ipv4.tcp_max_tw_buckets = 1440000
# /etc/security/limits.conf - add this to the bottom of the file
www-data soft nofile 50000
chaeplin /
Created Mar 1, 2017 — forked from guillaumevincent/
A simple guide to install PyQt5 on Mac OS X 10.9 (Maverick) and use python 3.4 on a virtualenv.

Guide to install PyQt5 on Mac OS X with python 3.4 virtualenv


A simple guide to install PyQt5 on Mac OS X 10.9 (Maverick) and use python 3.4 on a virtualenv.


  • xcode 5.1.1
  • python 3.4.0
  • Qt libraries 5.2.1
#!/usr/bin/env python
import os
import sys
import math
import random
NSECONDS = 5*3600
NNODES = 4000
chaeplin /
Created Feb 7, 2017 — forked from KartikTalwar/
Rsync over SSH - (40MB/s over 1GB NICs)

The fastest remote directory rsync over ssh archival I can muster (40MB/s over 1gb NICs)

This creates an archive that does the following:

rsync (Everyone seems to like -z, but it is much slower for me)

  • a: archive mode - rescursive, preserves owner, preserves permissions, preserves modification times, preserves group, copies symlinks as symlinks, preserves device files.
  • H: preserves hard-links
  • A: preserves ACLs
chaeplin / nginx.conf
Created Jan 10, 2017 — forked from jrom/nginx.conf
nginx hack for multiple conditions
View nginx.conf
if ($request_uri = /) {
set $test A;
if ($host ~* {
set $test "${test}B";
if ($http_cookie !~* "auth_token") {
set $test "${test}C";
# I, the copyright holder of this work, hereby release it into the public
# domain. This applies worldwide.
# If this is not legally possible:
# I grant any entity the right to use this work for any purpose, without any
# conditions, unless such conditions are required by law.
from tools import *
You can’t perform that action at this time.