Skip to content

Instantly share code, notes, and snippets.

View qianlifeng's full-sized avatar
🎯
Focusing

qianlifeng qianlifeng

🎯
Focusing
View GitHub Profile
@qianlifeng
qianlifeng / Wox.Plugin.Script.IPGeolocation.py
Created December 13, 2025 07:03
Wox.Plugin.Script.IPGeolocation
#!/usr/bin/env python3
# {
# "Id": "8b8a1b35-3d9e-4d7d-9f2e-3b1d0b7f9e10",
# "Name": "IP Geolocation",
# "Author": "qianlifeng",
# "Version": "1.0.0",
# "MinWoxVersion": "2.0.0",
# "Description": "Show local/public IPs and query geolocation via ip-api.com",
# "Icon": "emoji:📍",
# "TriggerKeywords": ["ip"],
@qianlifeng
qianlifeng / Wox.Plugin.Script.60s.py
Last active December 13, 2025 05:52
Wox.Plugin.Script.60s
#!/usr/bin/env python3
# {
# "Id": "6f920562-1570-4e63-991b-0b39e7d4a2e9",
# "Name": "每日 60 秒新闻",
# "Author": "qianlifeng",
# "Version": "1.0.1",
# "MinWoxVersion": "2.0.0",
# "Description": "基于 https://60s.viki.moe/v2/60s 的每日新闻展示",
# "Icon": "base64:data:image/jpeg;base64,/9j/2wCEAAgGBgcGBQgHBwcJCQgKDBQNDAsLDBkSEw8UHRofHh0aHBwgJC4nICIsIxwcKDcpLDAxNDQ0Hyc5PTgyPC4zNDIBCQkJDAsMGA0NGDIhHCEyMjIyMjIyMjIyMjIyMjIyMjIyMjIyMjIyMjIyMjIyMjIyMjIyMjIyMjIyMjIyMjIyMv/AABEIADAAMAMBIgACEQEDEQH/xAGiAAABBQEBAQEBAQAAAAAAAAAAAQIDBAUGBwgJCgsQAAIBAwMCBAMFBQQEAAABfQECAwAEEQUSITFBBhNRYQcicRQygZGhCCNCscEVUtHwJDNicoIJChYXGBkaJSYnKCkqNDU2Nzg5OkNERUZHSElKU1RVVldYWVpjZGVmZ2hpanN0dXZ3eHl6g4SFhoeIiYqSk5SVlpeYmZqio6Slpqeoqaqys7S1tre4ubrCw8TFxsfIycrS09TV1tfY2drh4uPk5ebn6Onq8fLz9PX29/j5+gEAAwEBAQEBAQEBAQAAAAAAAAECAwQFBgcICQoLEQACAQIEBAMEBwUEBAABAncAAQIDEQQFITEGEkFRB2FxEyIygQgUQpGhscEJIzNS8BVictEKFiQ04SXxFxgZGiYnKCkqNTY3ODk6Q0RFRkdISUpTVFVWV1hZWmNkZWZnaGlqc3R1dnd4eXqCg4SFhoeIiYqSk5SVlpeYmZqio6Slpqeoqaqys7S1tre4ubrCw8TFxsfIycrS09TV
@qianlifeng
qianlifeng / Wox.Plugin.Script.RecentFile.py
Last active December 12, 2025 13:31
Wox.Plugin.Script.RecentFile
#!/usr/bin/env python3
# {
# "Id": "d4cf7d41-5cc2-4c21-8ee6-fbd6ca950c6a",
# "Name": "Recent Files",
# "Author": "qianlifeng",
# "Version": "1.0.0",
# "MinWoxVersion": "2.0.0",
# "Description": "List recently used files.",
# "Icon": "emoji:🕘",
# "TriggerKeywords": ["recent"],
#!/usr/bin/env python3
# {
# "Id": "25cb95b8-af4c-4ccb-82d6-38843a9999c1",
# "Name": "UUID Generator",
# "Author": "qianlifeng",
# "Version": "1.0.0",
# "MinWoxVersion": "2.0.0",
# "Description": "Generate various types of UUIDs",
# "Icon": "emoji:🆔",
# "TriggerKeywords": ["uuid"],
@qianlifeng
qianlifeng / DefaultKeyBinding.dict
Last active December 22, 2018 13:13
Mac Keybinding
// /Users/qianlifeng/Library/KeyBindings/DefaultKeyBinding.dict
// Actions: http://xahlee.info/kbd/osx_keybinding_action_code.html
{
"\UF729" = moveToBeginningOfLine:; // home
"\UF72B" = moveToEndOfLine:; // end
"$\UF729" = moveToBeginningOfLineAndModifySelection:; // shift-home
"$\UF72B" = moveToEndOfLineAndModifySelection:; // shift-end
"^a" = selectAll:; // ctrl-A
"^v" = paste:; // ctrl-V
}
@qianlifeng
qianlifeng / mitm.py
Created July 26, 2018 07:24
mitm.it 修改返回结果
from mitmproxy import flowfilter
from mitmproxy import ctx
class Intercept:
def response(self, flow):
if flow.request.url == "https://www.zbg.com/exchange/fund/controller/website/fundwebsitecontroller/getpayoutcoinrecord":
flow.response.text = r'xxxxxx'
addons = [
@qianlifeng
qianlifeng / shell.sh
Created July 31, 2015 11:33
SSH打隧道
ssh -C -f -N -R 3304:192.168.8.4:3306 test.fcgylapp.cn
@qianlifeng
qianlifeng / .tmux.conf
Last active July 24, 2016 08:21
tmux配置
#-- base settings --#
set -g default-terminal "screen-256color"
set -g display-time 3000
set -g escape-time 0
set -g history-limit 65535
set -g base-index 1
set -g pane-base-index 1
# modify prefix to activate tmux
set-option -g prefix C-a
# Your init script
#
# Atom will evaluate this file each time a new window is opened. It is run
# after packages are loaded/activated and after the previous editor state
# has been restored.
#
# An example hack to log to the console when each text editor is saved.
#
# atom.workspace.observeTextEditors (editor) ->
# editor.onDidSave ->
@qianlifeng
qianlifeng / ShareFoldeToEveryone
Last active August 29, 2015 14:24
共享文件夹给所有用户
#用例:某个目录是git目录,大家都需要向此目录提交commit
#新建用户组
groupadd git
#将用户加入用户组
sudo usermod -a -G git lqian
#将要共享的文件夹设置成此用户组
sudo chgrp -R git /var/www