Skip to content

Instantly share code, notes, and snippets.

Xiuyu Li nickleefly

Block or report user

Report or block nickleefly

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
nickleefly /
Last active Jul 22, 2019
shadowsocks v2ray-plugin nginx with docker-compose
export CF_Key="sdfsdfsdfljlbjkljlkjsdfoiwje"
export CF_Email=""
~/ --issue -d '' -d '*' --dns dns_cf -k ec-256
~/ --issue --dns dns_cf -d
nickleefly /
Last active Jun 4, 2019
openwrt on newwifi Y1


  • [lenovo_y1_v1][1]
  • [hiwifi hc5861][8]
  • [openwrt hiwifi][9]

newwifi is MTK board(MediaTek MT7620A), find the builds for ramips

How to install

nickleefly / interview.txt
Created Feb 18, 2013
Interview With Eliot Horowitz – CTO Of 10gen / MongoDB In this interview, we talk with Eliot Horowitz, founder of 10gen, which is the company that created MongoDB. What's MongoDB? Well, it's an open source, document oriented, schema free database designed for massive scale and performance. If that got your attention, then I invite you to read on…
View interview.txt
The evolution of various data models in databases
Advantages of object-oriented databases in terms of horizontal scaling
Handling issues when columns are added or deleted between application versions
Suitability of MongoDB for the cloud
OS support and usage with MongoDB
The company (10gen) wrapped around MongoDB
Community involvement in the development of MongoDB
Scott Swigart: To start, can you introduce yourself, 10gen, and the role of open source behind it?
nickleefly / Freenode
Created May 21, 2019 — forked from yeyewangwang/Freenode
Freenode Nickserv Commands
View Freenode

Freenode IRC




nickleefly / karabiner.json
Last active May 14, 2019
karabiner elements ~/.config/karabiner/karabiner.json
View karabiner.json
"global": {
"check_for_updates_on_startup": true,
"show_in_menu_bar": true,
"show_profile_name_in_menu_bar": false
"profiles": [
"complex_modifications": {
"parameters": {
nickleefly /
Last active Jan 10, 2019
从服务器检索信息时出错 [DF-DFERH-01]

login to openwrt ssh

sed -i '$a conf-dir=/etc/dnsmasq.d' /etc/dnsmasq.conf
mkdir /etc/dnsmasq.d/
cat >>/etc/dnsmasq.d/custom.conf<<EOF

restart dnsmasq

nickleefly /
Last active Dec 19, 2018
nginx google ngx_http_google_filter_module
# create nginx user
sudo adduser --system --home /nonexistent --shell /bin/false --no-create-home --disabled-login --disabled-password --gecos "nginx user" --group nginx
sudo chown nginx:nginx /var/log/nginx/access.log /var/log/nginx/error.log
# check if neccesary files exist
cat /etc/systemd/system/
cat /etc/logrotate.d/nginx
cat /etc/init.d/nginx
ls -l /etc/nginx/
View filter-branch
git filter-branch --env-filter '
if [ "$GIT_COMMITTER_EMAIL" = "" ]

Vagrant Docker

If you are build a saas, using VMs and management tools. You will find vagrant is useful for additional features.

But Virtual machines take too much time to load. Now there is a new trending called using docker. Docker is written in go, if you haven't heard of, you should probably go to check it out. In this article I am going to run a docker container in vagrant virtual machine

What is vagrant

Vagrant is a tool for building complete development environments. With an easy-to-use workflow and focus on automation, Vagrant lowers development environment setup time, increases development/production parity, and makes the "works on my machine" excuse a relic of the past.

nickleefly /
Last active Aug 29, 2018
setup osx brew install
# brew list
brew install bash-completion
brew install nodejs
brew install wget
brew install unicodechecker
brew install ipv6toolkit
brew install ack
brew install the_silver_searcher
brew install wifi-password
brew install tmux
You can’t perform that action at this time.