Skip to content

Instantly share code, notes, and snippets.

View kiang's full-sized avatar

kiang kiang

View GitHub Profile
104
00:01:45,632 --> 00:01:51,132
你們兩個最近都是到處跑 下鄉啊
105
00:01:51,132 --> 00:01:52,632
這個一定要的啊沒辦法
106
00:01:52,632 --> 00:01:54,632
@kiang
kiang / hi.js
Created February 27, 2024 08:36
script for GEAS with HiCOS
// ==UserScript==
// @name GEAS with HiCOS
// @namespace http://tampermonkey.net/
// @version 2024021701
// @description 小幫手
// @author 周詳
// @match https://geas.dgbas.gov.tw/*
// @match https://geas.moda.gov.tw/*
// @icon https://www.google.com/s2/favicons?sz=64&domain=gov.tw
// @grant none
@kiang
kiang / well.srt
Created January 20, 2024 13:37
well
1
00:00:00,122 --> 00:00:27,122
2
00:00:30,122 --> 00:00:30,426
3
00:00:30,426 --> 00:00:37,226
1
00:00:00,000 --> 00:00:07,000
歡迎收聽 《威~連你也Podcast了!》
2
00:00:10,906 --> 00:00:12,906
大家好 我是威廉
3
00:00:12,906 --> 00:00:15,906
@kiang
kiang / extract.php
Created November 6, 2023 19:19
extract text from srt file
<?php
$c = file_get_contents(__DIR__ . '/captions.srt');
$parts = explode("\n\n", $c);
foreach($parts AS $part) {
$lines = explode("\n", $part);
array_shift($lines);
array_shift($lines);
echo implode("\n", $lines) . "\n";
}
git clone https://huggingface.co/spaces/aadnk/faster-whisper-webui
cd faster-whisper-webui/
pip install -r requirements.txt
pip install -r requirements-fasterWhisper.txt
apt install nginx ffmpeg
nano /etc/nginx/sites-available/default
location / {
# First attempt to serve request as file, then
# as directory, then fall back to displaying a 404.
@kiang
kiang / bom.cpe.json
Created August 23, 2023 16:25
a script to convert CycloneDX sbom to another one with cpe inside
{
"bomFormat": "CycloneDX",
"specVersion": "1.4",
"serialNumber": "urn:uuid:0de0d81f-ec39-4e9a-8413-5db8ed56fa8d",
"version": 1,
"metadata": {
"timestamp": "2023-07-24T13:54:33.087Z",
"tools": [
{
"vendor": "cyclonedx",
0:00:00.000,0:00:03.200
今天謝謝大家頂著大太陽來到凱道
0:00:03.200,0:00:06.000
來支持居住正義以及司法公正的議題
0:00:06.000,0:00:08.000
這個議題相當的重要
0:00:08.000,0:00:10.000
1
00:00:00,000 --> 00:00:01,700
觀眾朋友大家午安 我是黃光芹
2
00:00:01,700 --> 00:00:03,700
歡迎收看政傳媒的新聞不芹菜
3
00:00:03,700 --> 00:00:04,400
@kiang
kiang / spdx.json
Created June 26, 2023 07:26
spdx.json
{
"SPDXID": "SPDXRef-DOCUMENT",
"spdxVersion": "SPDX-2.2",
"creationInfo": {
"comment": "This SPDX document has been converted from CycloneDX format.",
"created": "2023-06-13T15:45:34.95Z",
"creators": [
"Tool: cdxgen-8.4.13",
"Person: Prabhu Subramanian (prabhu@appthreat.com)"
]