Skip to content

Instantly share code, notes, and snippets.

View LiaoGuoYin's full-sized avatar

Coin LiaoGuoYin

View GitHub Profile
@LiaoGuoYin
LiaoGuoYin / cronsreenshot.go
Created August 31, 2023 08:52
capture the whole screen regularly.
package main
import (
"fmt"
"image/png"
"log"
"os"
"path/filepath"
"time"
@LiaoGuoYin
LiaoGuoYin / vs_code_context_menus.reg
Created July 21, 2023 10:58 — forked from brandon93s/vs_code_context_menus.reg
Add context menu options for Visual Studio Code installed via scoop
Windows Registry Editor Version 5.00
; Open files
[HKEY_CLASSES_ROOT\*\shell\Open with VS Code]
@="Edit with VS Code"
"Icon"="C:\\Users\\Brandon\\scoop\\apps\\vscode\\current\\Code.exe,0"
[HKEY_CLASSES_ROOT\*\shell\Open with VS Code\command]
@="\"C:\\Users\\Brandon\\scoop\\apps\\vscode\\current\\Code.exe\" \"%1\""
@LiaoGuoYin
LiaoGuoYin / FakeAiPao.py
Last active March 5, 2021 03:37
The final update for AiPao. You can test it on your own, and it may be invalid at any time.
# -*- coding: UTF-8 -*-
# 如果你觉得它帮助到你了,可以移步: https://liaoguoyin.com/donation
#
# 需求:
# 1. 创建并读取本地 code.txt
# 2. 检查 IMEICode 状态,问询是否开始
# 3. 跑步账号个数
# 4. 跑步结果
import os
import requests
@LiaoGuoYin
LiaoGuoYin / ShopXO.py
Created July 1, 2020 01:53
A Python script for crawling the goods list of ShopXO.
"""
A Python script for crawling the goods list of ShopXO.
@author: LiaoGuoYin
"""
import json
import requests
from lxml import etree
@LiaoGuoYin
LiaoGuoYin / FxPlot.py
Created May 25, 2020 03:56
一个利用 matplotlib,绘制基本初等函数图像、画定点,并输出图片的小工具
#!/usr/bin/python
# -*- coding: UTF-8 -*-
import matplotlib.pyplot as plt
import numpy as np
from math import exp, pi
# Author: LiaoGuoYin
# Blog: https://liaoguoyin.com
# 使用前记得 pip3 install matplotlib numpy
@LiaoGuoYin
LiaoGuoYin / DespretedSelectCourses.py
Last active March 2, 2021 13:14
辽工大教务在线选课捡漏 Python 脚本
#!/usr/bin/python
# -*- coding: UTF-8 -*-
import requests
from lxml import etree
# Author: LiaoGuoYin
# Blog: https://liaoguoyin.com
# (despreted) 辽工大教务在线选课捡漏 Python 脚本,教务系统完全更新,本脚本完全废弃。新版简单,思路移步 selectCourses.py
@LiaoGuoYin
LiaoGuoYin / recursiveRemoveFiles.py
Created September 17, 2019 16:10
通配符匹配删除指定后缀文件
# -*- coding: utf-8 -*-
import glob
import os
def files(curr_dir = '.', ext = '*.txt'):
"""当前目录下,所有 变量ext 结尾的文件"""
for i in glob.glob(os.path.join(curr_dir, ext)):
yield i
def all_files(rootdir, ext):
@LiaoGuoYin
LiaoGuoYin / EnshiFakeSignature
Last active January 9, 2024 05:59
恩施人才App Python签到脚本
# -*- coding: utf8 -*-
# Author: LiaoGuoYin
# 使用方法:
# 1. 修改 user 中的用户名密码
# 2. 去 https://lbs.qq.com/tool/getpoint/index.html 通过签到地址名来获取对应的经纬度,替换 payload 中 sdd,sjd,swd 字段值
# 3. 运行脚本
# 《浅层逆向恩施人才App,并实现自动签到脚本》文章存档: https://liaoguoyin.com/2019/07/24/EnShiAppFakeSignature.html
import requests