Skip to content

Instantly share code, notes, and snippets.

View nickleefly's full-sized avatar

Xiuyu Li nickleefly

  • Shanghai
View GitHub Profile
nickleefly /
Last active July 16, 2023 07:11
remove matching twitter followers


  • 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 / helix-config.toml
Created February 9, 2023 04:01
config/helix/config.toml helix config
theme = "monokai_pro"
line-number = "relative"
mouse = false
bufferline = "always"
insert = "bar"
normal = "block"
nickleefly /
Created March 9, 2021 07:27
fetch yahoo finance data
from yahoofinancials import YahooFinancials
import pprint
import ssl
_create_unverified_https_context = ssl._create_unverified_context
except AttributeError:
# Legacy Python that doesn't verify HTTPS certificates by default
nickleefly / eventemitter.js
Created April 20, 2020 06:42
class MyEventEmitter {
constructor() {
this._events = {};
on(name, listener) {
if (!this._events[name]) {
this._events[name] = [];
nickleefly /
Last active December 26, 2022 14:09
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 / Freenode
Created May 21, 2019 09:02 — forked from yeyewangwang/Freenode
Freenode Nickserv Commands




nickleefly /
Last active January 10, 2019 03:24
从服务器检索信息时出错 [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 December 19, 2018 08:48
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/
nickleefly / karabiner.json
Last active May 14, 2019 07:16
karabiner elements ~/.config/karabiner/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 /
Created December 20, 2017 05:44 — forked from jamesramsay/
Gmail: delete old emails automatically

Gmail: delete old emails automatically

Automatically deletes old emails that match the specified label.

Get started

  • Create a new Google Apps Script at
  • Overwrite the placeholder with the javascript below
  • Update the following constants:
  • LABEL_TO_DELETE: the label that should be have old messages deleted