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
nickleefly / acme.md
Last active Jul 22, 2019
shadowsocks v2ray-plugin nginx with docker-compose
View acme.md
export CF_Key="sdfsdfsdfljlbjkljlkjsdfoiwje"
export CF_Email="xxxx@sss.com"
~/.acme.sh/acme.sh --issue -d 'example.com' -d '*.example.com' --dns dns_cf -k ec-256
~/.acme.sh/acme.sh --issue --dns dns_cf -d subdomain.example.com
@nickleefly
nickleefly / readme.md
Last active Jun 4, 2019
openwrt on newwifi Y1
View readme.md

Resources:

  • [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
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
nickleefly / Freenode IRC.md
Created May 21, 2019 — forked from yeyewangwang/Freenode IRC.md
Freenode Nickserv Commands
View Freenode IRC.md

Freenode IRC

Connect

/server chat.freenode.net

Nick

@nickleefly
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
nickleefly / google-play.md
Last active Jan 10, 2019
从服务器检索信息时出错 [DF-DFERH-01]
View google-play.md

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
address=/services.googleapis.cn/216.58.197.195
EOF

restart dnsmasq

@nickleefly
nickleefly / command.sh
Last active Dec 19, 2018
nginx google ngx_http_google_filter_module
View command.sh
# 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/multi-user.target.wants/nginx.service
cat /etc/logrotate.d/nginx
cat /etc/init.d/nginx
ls -l /etc/nginx/
View filter-branch
#!/bin/sh
git filter-branch --env-filter '
an="$GIT_AUTHOR_NAME"
am="$GIT_AUTHOR_EMAIL"
cn="$GIT_COMMITTER_NAME"
cm="$GIT_COMMITTER_EMAIL"
if [ "$GIT_COMMITTER_EMAIL" = "your@email.to.match" ]
View vagrant-docker-ssh.md

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
nickleefly / brew-install.sh
Last active Aug 29, 2018
setup osx brew install
View brew-install.sh
# 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.