Skip to content

Instantly share code, notes, and snippets.

View journey-ad's full-sized avatar
🍭
关注嘉然,顿顿解馋

Jad journey-ad

🍭
关注嘉然,顿顿解馋
View GitHub Profile
@journey-ad
journey-ad / Dockerfile
Created August 5, 2024 09:52
Dockerfile for PostgreSQL 16 with wal2json
FROM postgres:16-alpine
ENV WAL2JSON_COMMIT_ID=wal2json_2_6
RUN apk add --no-cache protobuf-c-dev
RUN apk add --no-cache --virtual .build-deps gcc clang15 llvm15 git make musl-dev pkgconf \
&& git clone https://github.com/eulerto/wal2json -b master --single-branch \
&& (cd /wal2json && git checkout $WAL2JSON_COMMIT_ID && make && make install) \
&& rm -rf wal2json \
@journey-ad
journey-ad / 8300.txt
Created May 15, 2024 05:58
包含《通用规范汉字表》收录的8105字,加上常用标点,共约8300字
〔〕一丨丿丶乛〇一乙二十丁厂七卜八人入儿匕几九刁了刀力乃又三干于亏工土士才下寸大丈与万上小口山巾千乞川亿个夕久么勺凡丸及广亡门丫义之尸己已巳弓子卫也女刃飞习叉马乡丰王开井天夫元无云专丐扎艺木五支厅不犬太区历歹友尤匹车巨牙屯戈比互切瓦止少曰日中贝冈内水见午牛手气毛壬升夭长仁什片仆化仇币仍仅斤爪反介父从仑今凶分乏公仓月氏勿欠风丹匀乌勾凤六文亢方火为斗忆计订户认冗讥心尺引丑巴孔队办以允予邓劝双书幻玉刊未末示击打巧正扑卉扒功扔去甘世艾古节本术可丙左厉石右布夯戊龙平灭轧东卡北占凸卢业旧帅归旦目且叶甲申叮电号田由只叭史央兄叽叼叫叩叨另叹冉皿凹囚四生矢失乍禾丘付仗代仙们仪白仔他斥瓜乎丛令用甩印尔乐句匆册卯犯外处冬鸟务包饥主市立冯玄闪兰半汁汇头汉宁穴它讨写让礼训议必讯记永司尼民弗弘出辽奶奴召加皮边孕发圣对台矛纠母幼丝邦式迂刑戎动扛寺吉扣考托老巩圾执扩扫地场扬耳芋共芒亚芝朽朴机权过臣吏再协西压厌戌在百有存而页匠夸夺灰达列死成夹夷轨邪尧划迈毕至此贞师尘尖劣光当早吁吐吓虫曲团吕同吊吃因吸吗吆屿屹岁帆回岂则刚网肉年朱先丢廷舌竹迁乔迄伟传乒乓休伍伏优臼伐延仲件任伤价伦份华仰仿伙伪自伊血向似后行舟全会杀合兆企众爷伞创肌肋朵杂危旬旨旭负匈名各多争色壮冲妆冰庄庆亦刘齐交衣次产决亥充妄闭问闯羊并关米灯州汗污江汛池汝汤忙兴宇守宅字安讲讳军讶许讹论讼农讽设访诀寻那迅尽导异弛孙阵阳收阶阴防奸如妇妃好她妈戏羽观欢买红驮纤驯约级纪驰纫巡寿弄麦玖玛形进戒吞远违韧运扶抚坛技坏抠扰扼拒找批址扯走抄贡汞坝攻赤折抓扳抡扮抢孝坎均抑抛投坟坑抗坊抖护壳志块扭声把报拟却抒劫芙芜苇芽花芹芥芬苍芳严芦芯劳克芭苏杆杠杜材村杖杏杉巫极李杨求甫匣更束吾豆两酉丽医辰励否还尬歼来连轩步卤坚肖旱盯呈时吴助县里呆吱吠呕园旷围呀吨足邮男困吵串员呐听吟吩呛吻吹呜吭吧邑吼囤别吮岖岗帐财针钉牡告我乱利秃秀私每兵估体何佐佑但伸佃作伯伶佣低你住位伴身皂伺佛囱近彻役返余希坐谷妥含邻岔肝肛肚肘肠龟甸免狂犹狈角删条彤卵灸岛刨迎饭饮系言冻状亩况床库庇疗吝应这冷庐序辛弃冶忘闰闲间闷判兑灶灿灼弟汪沐沛汰沥沙汽沃沦汹泛沧没沟沪沈沉沁怀忧忱快完宋宏牢究穷灾良证启评补初社祀识诈诉罕诊词译君灵即层屁尿尾迟局改张忌际陆阿陈阻附坠妓妙妖姐妨妒努忍劲矣鸡纬驱纯纱纲纳驳纵纷纸纹纺驴纽奉玩环武青责现玫表规抹卦坷坯拓拢拔坪拣坦担坤押抽拐拖者拍顶拆拎拥抵拘势抱拄垃拉拦幸拌拧拂拙招坡披拨择抬拇拗其取茉苦昔苛若茂苹苗英苟苑苞范直茁茄茎苔茅
@journey-ad
journey-ad / _worker.js
Created January 13, 2024 14:12
cf-pages-proxy
export default {
async fetch(request, env) {
const url = new URL(request.url);
if (url.pathname.startsWith('/')) {
url.hostname = env.PROXY_URL;
const new_request = new Request(url, request);
return fetch(new_request);
}
return env.ASSETS.fetch(request);
},
@journey-ad
journey-ad / _README.md
Last active June 16, 2023 13:59
零散视频批量转码压缩

这是一个用来遍历目录下所有视频类文件,并将其统一转换为mp4格式的nodejs脚本,支持自动跳过已处理文件,支持显示进度信息
文件名和目录结构不会发生变化,如果转码后的视频体积相比原视频更小,原始文件将被删除,否则将保留原始文件

依赖

{
"⤡": "⤡",
"⊞": "⊞",
"×": "×",
"❮": "❮",
"❯": "❯",
"Loading...": "加载中...",
"Waiting...": "等待中...",
"In queue...": "队列中...",
"@@/^Waiting (.*)$/": "等待中 $1",
@journey-ad
journey-ad / 0_sc-block.user.js
Last active February 26, 2024 07:29
bilibili直播SC过滤
// ==UserScript==
// @name Bilibili直播SC过滤
// @namespace https://github.com/journey-ad
// @version 0.3.2
// @description 通过UID、关键词或正则表达式过滤哔站直播间的SC
// @author journey-ad
// @icon https://www.google.com/s2/favicons?domain=bilibili.com
// @include /https?:\/\/live\.bilibili\.com\/(blanc\/)?\d+\??.*/
// @require https://cdn.jsdelivr.net/npm/vue@2
// @require https://cdn.jsdelivr.net/npm/[email protected]/dist/jquery.min.js
@journey-ad
journey-ad / oh-my-diana.user.js
Last active October 8, 2024 12:25
在哔站右下角添加嘉然小姐的live2d模型
// ==UserScript==
// @name #相亲相爱一嘉人#
// @description 在哔站右下角添加嘉然小姐的live2d模型
// @version 1.0.1
// @namespace https://github.com/journey-ad
// @author journey-ad
// @include /^https:\/\/(www|live|space|t)\.bilibili\.com\/.*$/
// @icon https://www.google.com/s2/favicons?domain=bilibili.com
// @license GPL v2
// @run-at document-end
@journey-ad
journey-ad / pixiv-quick-fav.user.js
Last active February 26, 2024 07:29
Pixiv快速隐私收藏
// ==UserScript==
// @name Pixiv快速隐私收藏
// @description 右键点任意位置的收藏按钮可以快速隐私收藏作品
// @namespace https://github.com/journey-ad
// @version 1.0.1
// @author journey-ad
// @license WTFPL
// @match *://www.pixiv.net/*
// @icon https://www.google.com/s2/favicons?domain=pixiv.net
// @require https://cdn.jsdelivr.net/npm/[email protected]/dist/jquery.min.js
@journey-ad
journey-ad / luxun.fish
Created September 10, 2020 03:28
fish shell 可用的鲁迅语录 function
function luxun
set msgList (cat ~/motd.txt)
set pick (random 1 (count $msgList))
set pick $msgList[$pick]
printf (set_color F90)$pick
end
🌞 早晨 43 commits ███▍░░░░░░░░░░░░░░░░░░░░░ 13.7%
🌆 日间 88 commits ███████░░░░░░░░░░░░░░░░░░ 28.0%
🌃 晚上 88 commits ███████░░░░░░░░░░░░░░░░░░ 28.0%
🌙 深夜 95 commits ███████▌░░░░░░░░░░░░░░░░░ 30.3%