Skip to content

Instantly share code, notes, and snippets.

View kiang's full-sized avatar

kiang kiang

View GitHub Profile
1
15:50:56 --> 15:51:18
[SPEAKER_12]: 磨斷的事情今天最重要臺灣的民主還沒有維繫臺灣的國會還沒有維繫只要這樣的違憲亂政就國會保銷了國會還到人大差不多那香港化了這不是隻有臺灣的問題全世界在臺灣投資的外商全部都要看待這個事情
2
15:51:20 --> 15:51:46
[SPEAKER_12]: 美國人也會注意臺灣怎麼變成這樣因為外媒就是要訪問我叫我出來開國際記者會我說我們會解決的我相信我們會解決的是全球緊張啊但是這緊張最後的keeper就是院長你要翻轉你思維就是胡文綺跟黃國昌
3
15:51:48 --> 15:52:08
42
00:04:55,349 --> 00:05:01,349
好 終於我們南部眾首次直播開播啦
43
00:05:01,349 --> 00:05:06,349
大家好 我是南部眾首播的主持人
44
00:05:06,349 --> 00:05:10,349
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