Skip to content

Instantly share code, notes, and snippets.

View li-xunhuan's full-sized avatar
🛌
Sleeping

李寻欢 li-xunhuan

🛌
Sleeping
View GitHub Profile
@poeli
poeli / exfat.sh
Created April 5, 2018 21:00
exFAT support on CentOS 7
# ExFAT support on CentOS7
yum install -y http://li.nux.ro/download/nux/dextop/el7/x86_64/nux-dextop-release-0-1.el7.nux.noarch.rpm
yum install exfat-utils fuse-exfat
# mount disk
# $sudo fdisk -l
# $sudo mount /dev/sda1 /media/
#!/usr/bin/env python2
# lrdcq
# usage python2 unwxapkg.py filename
import sys, os
import struct
class WxapkgFile(object):
nameLen = 0
@ipmb
ipmb / ratelimit.nginxconf
Last active May 26, 2024 13:57
Nginx reverse proxy with rate limiting
upstream myapp {
server 127.0.0.1:8081;
}
limit_req_zone $binary_remote_addr zone=login:10m rate=1r/s;
server {
listen 443 ssl spdy;
server_name _;
@edokeh
edokeh / index.js
Last active July 16, 2024 01:43
佛祖保佑,永无 BUG
//
// _oo0oo_
// o8888888o
// 88" . "88
// (| -_- |)
// 0\ = /0
// ___/`---'\___
// .' \\| |// '.
// / \\||| : |||// \
// / _||||| -:- |||||- \