Skip to content

Instantly share code, notes, and snippets.

Avatar
👊
Rewriting Foldest

无风引漩 Sciroccogti

👊
Rewriting Foldest
View GitHub Profile
@Sciroccogti
Sciroccogti / winget-others.json
Last active Jul 28, 2021
winget app jsons, use `winget import winget.json` to install essential apps automatically.
View winget-others.json
{
"$schema": "https://aka.ms/winget-packages.schema.2.0.json",
"CreationDate": "2021-07-17T21:44:42.935-00:00",
"Sources": [
{
"Packages": [
{
"PackageIdentifier": "agalwood.Motrix"
},
{
View unsetup.sh
basedir="/usr"
appdir="$basedir/bin"
datadir="$basedir/share/LDCad"
cfgdir="/etc"
cfgfn="$cfgdir/LDCad.cfg"
userdir="<userAppDataDir>/LDCad"
scdir="$basedir/share/applications"
scfn="$basedir/share/applications/LDCad.desktop"
mimebasedir="$basedir/share/mime"
mimedir="$mimebasedir/packages"
@Sciroccogti
Sciroccogti / FiddlerScript.js
Created Sep 19, 2020
使用 Fiddler 对小米手环表盘和 qndxx 进行劫持
View FiddlerScript.js
static function OnBeforeRequest(oSession: Session) {
if(oSession.host.toLowerCase()=="cdn.cnbj1.fds.api.mi-img.com"){
oSession["ui-color"]="yellow";
oSession.host="192.168.1.100";
}
if(oSession.host.toLowerCase()=="dxxsv.cyol.com"){
oSession["ui-color"]="yellow";
var str = oSession.url;
if(str.search(/[0-9]*dxx[0-9]*\.mp4/i) > 0){
oSession["ui-color"]="purple";
@Sciroccogti
Sciroccogti / doc2pdf.py
Last active Aug 20, 2020
turn files into pdf
View doc2pdf.py
##############################################
## Script to convert .doc or .docx to .pdf ##
## Written by Henry Ling ##
##############################################
import os
from time import strftime
from win32com import client
# Counts the number of files in the directory that can be converted
View ppt2mp4.py
import os
from time import strftime
import time
from win32com import client
from tqdm import *
# Counts the number of files in the directory that can be converted
def n_files(directory):
total = 0
@Sciroccogti
Sciroccogti / vlc-qt-interface.md
Last active May 29, 2020
VLC 自定义界面(工具栏编辑器)
View vlc-qt-interface.md

VLC 定制界面的配置文件位于

  • Windows%APPDATA%/vlc/vlc-qt-interface.ini
  • Ubuntu~/.config/vlc/vlc-qt-interface.conf(仅支持 apt 安装的 VLC)

用编辑器打开该配置文件,会看到如下格式:

[General]
geometry="..."
@Sciroccogti
Sciroccogti / curriculum-creeper.py
Created Nov 9, 2019
爬取东南大学旧课程表的小脚本,作为自己第一个投入实战的小爬虫,留个纪念罢了
View curriculum-creeper.py
# coding:utf-8
import requests # 导入网页请求库
import re # 导入正则表达式库
import openpyxl
from bs4 import BeautifulSoup # 导入网页解析库
name_pattern = r'姓名:(.*?)</td>'
name_list = []
tongdian_pattern = '<font class="style8">通信电子线路</font>'
tongyuan_pattern = '<font class="style8">通信原理(双语)</font>'
View 尝试摆脱手机瘾.md

尝试摆脱手机瘾

手机成瘾原因

  1. 依赖于手机的信息流
  2. 企图保持与外界持续沟通的状态\

待更新

解决方法

  1. GTD
  2. 应用锁