Skip to content

Instantly share code, notes, and snippets.

View Sciroccogti's full-sized avatar
🧱
working hard for living

张逸帆 Sciroccogti

🧱
working hard for living
View GitHub Profile
@Sciroccogti
Sciroccogti / README.md
Last active July 17, 2024 15:09
winget app jsons, use `winget import winget.json` to install essential apps automatically.

cmds

Upgrade all packages:

winget upgrade -u -r # 将所有可用的包更新为最新的应用程序(r),即使无法确定其当前版本(u)

Ignore a package:

winget pin add --id Mozilla.Thunderbird --blocking
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 September 19, 2020 13:58
使用 Fiddler 对小米手环表盘和 qndxx 进行劫持
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 August 20, 2020 10:17
turn files into pdf
##############################################
## 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
@Sciroccogti
Sciroccogti / ppt2mp4.py
Created August 20, 2020 10:16
turn ppt to mp4
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 01:51
VLC 自定义界面(工具栏编辑器)

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 November 9, 2019 12:28
爬取东南大学旧课程表的小脚本,作为自己第一个投入实战的小爬虫,留个纪念罢了
# 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>'

尝试摆脱手机瘾

手机成瘾原因

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

待更新

解决方法

  1. GTD
  2. 应用锁