Skip to content

Instantly share code, notes, and snippets.

View the-eric-kwok's full-sized avatar
😉

EricKwok the-eric-kwok

😉
View GitHub Profile
@the-eric-kwok
the-eric-kwok / burn_ass_logo.ps1
Last active December 15, 2022 09:07
一个用来压制字幕和水印的脚本
# 这个脚本可以用来把ass格式的字幕和logo一起压制到视频里。依赖于ffmpeg和zenity
# 由于使用命令行输入路径的话参数太多,不方便记忆(我自己都记不住),所以使用zenity图形界面来操作,对新手更友好
# logo建议使用png格式,使用透明背景,并且请裁剪成正方形,否则大概会变形
# 设置logo大小指的是logo水印在视频中的大小,默认为200x200的正方形,如果需要压制长方形logo请自行修改源码
$global:position_map = @{
"top_left" = "10:10";
"top_right" = "main_w-overlay_w-10:10";
"bottom_left" = "10:main_h-overlay_h-10";
"bottom_right" = "main_w-overlay_w-10:main_h-overlay_h-10";
@the-eric-kwok
the-eric-kwok / mitm_new_bing.md
Last active March 22, 2023 05:46
在任意浏览器上启用新必应

首先需要安装 mitmproxy

在 7890 端口架设好一个外网的 http 代理

接着将以下内容写入 mitm_new_bing.md

#!/usr/bin/env python3
# encoding: utf-8
import os
import re
import json
class Store:
config_file_path = os.path.join(os.getcwd(), "installer.json")
patched_files: list[str] = []
patched_dirs: list[str] = []