Skip to content

Instantly share code, notes, and snippets.

View nickleefly's full-sized avatar

Xiuyu Li nickleefly

  • Shanghai
View GitHub Profile
@nickleefly
nickleefly / mongodb-download.md
Created March 11, 2013 12:36
download mongodb videos

Run the following commands and you'll be downloading in secs. view sourceprint?

git clone git://github.com/nonsleepr/edu_10gen_dl.git
vi config.py // change email and password in the config file.
// Also set domain to 'education.10gen.com'
sudo apt-get install python-bs4
sudo apt-get install python-mechanize
python edu_10gen.py
@nickleefly
nickleefly / initialize_basic_user.yml
Created September 11, 2017 07:53
ansible playbook setup user
---
- hosts: linode
remote_user: root
vars:
NORMAL_USER_NAME: 'yourusername'
tasks:
- name: Make sure we have a 'wheel' group
group:
name: wheel
state: present
@nickleefly
nickleefly / readme.md
Last active July 16, 2023 07:11
remove matching twitter followers

README

  • This script will check each of the user from user_list if the user in the followers_list it will remove the user from your followers

  • For that first it will block the matching user one by one and then unblock them. If you are following your matching followers, you won't be subscribed to them anymore once you run this job.

  • Install tweepy module using pip. To install tweepy run below command in your terminal.

  • pip install tweepy

@nickleefly
nickleefly / helix-config.toml
Created February 9, 2023 04:01
config/helix/config.toml helix config
theme = "monokai_pro"
[editor]
line-number = "relative"
mouse = false
bufferline = "always"
[editor.cursor-shape]
insert = "bar"
normal = "block"
@nickleefly
nickleefly / acme.md
Last active December 26, 2022 14:09
shadowsocks v2ray-plugin nginx with docker-compose
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 May 28, 2022 12:06
openwrt on newwifi Y1

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 / Freenode IRC.md
Created May 21, 2019 09:02 — forked from yeyewangwang/Freenode IRC.md
Freenode Nickserv Commands

Connect

/server chat.freenode.net

Nick

@nickleefly
nickleefly / brew-install.sh
Last active December 13, 2021 21:05
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
@nickleefly
nickleefly / register.py
Last active November 14, 2021 07:29
When you install python for all user, this problem will occurs, if you select install python for current, there is no issue. Save this file in your D disk for example, go to cmd run 'python register.py', then you will be able to install easy_install then go to C:\Python27\Scripts run easy_install.exe -U bottle
#
# script to register Python 2.0 or later for use with win32all
# and other extensions that require Python registry settings
# written by Joakim Loew for Secret Labs AB / PythonWare
#
# source:
# http://www.pythonware.com/products/works/articles/regpy20.htm
#
# modified by Valentine Gogichashvili as described in http://www.mail-archive.com/distutils-sig@python.org/msg10512.html
@nickleefly
nickleefly / stock.py
Created March 9, 2021 07:27
fetch yahoo finance data
from yahoofinancials import YahooFinancials
import pprint
import ssl
try:
_create_unverified_https_context = ssl._create_unverified_context
except AttributeError:
# Legacy Python that doesn't verify HTTPS certificates by default
pass
else: