Skip to content

Instantly share code, notes, and snippets.

Edward Chu chuyik

Block or report user

Report or block chuyik

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
@chuyik
chuyik / install.sh
Last active Sep 17, 2019
Bandwagon(搬瓦工) CentOS 7 安装 shadowsocks-libev 和 kcptun
View install.sh
######################
## shadowsocks-libev
######################
# install dependencies
yum install epel-release -y
yum install gcc gettext autoconf libtool automake make pcre-devel asciidoc xmlto udns-devel libev-devel -y
# install shadowsocks-libev
cd /etc/yum.repos.d/
@chuyik
chuyik / README.md
Last active Sep 4, 2019
macOS 给 Git(Github) 设置代理(HTTP/SSH)
View README.md
@chuyik
chuyik / .pylint
Last active Jun 17, 2019
Recommended PyLint Configuration
View .pylint
# Based on:
# https://github.com/kpreid/shinysdr/blob/master/pylintrc
[MASTER]
# XXX should be changed to your project folder
# see http://stackoverflow.com/a/37238692/3828891 for explanation
init-hook='base_dir="XXX"; import sys,os,re; _re=re.search(r".+\/" + base_dir, os.getcwd()); project_dir = _re.group() if _re else os.path.join(os.getcwd(), base_dir); sys.path.append(project_dir)'
[MESSAGES CONTROL]
# Find available symbolic names in:
@chuyik
chuyik / install_tls.sh
Last active Jun 13, 2019
CentOS 7 Nginx(OpenResty) Let’ s Encrypt SSL 证书安装配置
View install_tls.sh
# install certbot
yum install certbot
# create cert folder
mkdir -p /usr/local/openresty/nginx/html/.well-known/acme-challenge
# configure nginx
```nginx
location ^~ /.well-known/acme-challenge/ {
default_type "text/plain";
@chuyik
chuyik / export_keynote.scpt
Created Mar 8, 2019
Keynote Presenter Notes Exporter 演讲者注释导出脚本
View export_keynote.scpt
--==============================
-- Send Keynote Text to Desktop Markdown File
-- Writted By: Richard Dooling https://github.com/RichardDooling/
-- Based on
-- Send Keynote Presenter Notes to Evernote
-- Version 1.0.1
-- Written By: Ben Waldie <ben@automatedworkflows.com>
-- http://www.automatedworkflows.com
-- Version 1.0.0 - Initial release
@chuyik
chuyik / nginx.service
Created May 4, 2017
OpenResty Centos 7 启动脚本配置
View nginx.service
# OpenResty 默认安装在 /usr/local/openresty
# 该文件应该放在 /usr/lib/systemd/system/nginx.service
# 放好后请运行:
# - systemctl enable nginx.service
# - systemctl start nginx.service
# 然后之后就可以用 service nginx [start/reload/stop] 等命令了
[Unit]
Description=The nginx HTTP and reverse proxy server
After=syslog.target network.target remote-fs.target nss-lookup.target
@chuyik
chuyik / install.sh
Last active Oct 12, 2018
rsync like git
View install.sh
rsync --info=progress2 \
-a -c --progress \
--delete \
--delete-excluded --exclude=".git/" \
/path/to/folder/. /newpath/to/folder/
@chuyik
chuyik / README.md
Last active Aug 2, 2018
Install and Config Rust
View README.md
@chuyik
chuyik / omit.js
Created Jul 25, 2018
Test _.omit performance
View omit.js
const speedy = require('speedy')
const _ = require('lodash')
/**
==================
Test Result
==================
Node v10.1.0
V8 v6.6.346.27-node.6
@chuyik
chuyik / index.bash
Created Jun 4, 2018
Centos 6 curl SSL problem
View index.bash
# use this to debug git fetch
export GIT_CURL_VERBOSE=1
# use aliyun mirror to install new packages
wget -O /etc/yum.repos.d/Alibaba.repo http://mirrors.aliyun.com/repo/Centos-6.repo
yum update nss curl
You can’t perform that action at this time.