Skip to content

Instantly share code, notes, and snippets.

View dennislwm's full-sized avatar

Dennis Lee dennislwm

View GitHub Profile
@dennislwm
dennislwm / 26.01.2022
Created January 27, 2022 05:41
Apocryphal Gospel
Prayer from Pope Francis 26.01.2022
Saint Joseph, you are the man who dreams,
teach us to recover the spiritual life
as the inner place where God manifests Himself and saves us.
Remove from us the thought that praying is useless;
help each one of us to correspond to what the Lord shows us.
May our reasoning be illuminated by the light of the Spirit,
our hearts encouraged by His strength
and our fears saved by His mercy. Amen.
Other 1 hr 2 mins β–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–Šβ–‘ 94.5%
JSON 3 mins β–ˆβ–β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘ 5.5%
@dennislwm
dennislwm / vtt2text.py
Created January 19, 2024 02:55 — forked from glasslion/vtt2text.py
This script convert youtube subtitle file(vtt) to plain text.
"""
Convert YouTube subtitles(vtt) to human readable text.
Download only subtitles from YouTube with youtube-dl:
youtube-dl --skip-download --convert-subs vtt <video_url>
Note that default subtitle format provided by YouTube is ass, which is hard
to process with simple regex. Luckily youtube-dl can convert ass to vtt, which
is easier to process.
@dennislwm
dennislwm / display-latest-pipelines.py
Created July 6, 2024 09:30
GitLab: A Python Script Displaying Latest Pipelines in a Group's Projects
#
# Display, in console, latest pipelines from each project in a given group
#
# python display-latest-pipelines.py --group-id=8784450 [--watch] [--token=$GITLAB_TOKEN] [--host=gitlab.com] [--exclude='TPs Benoit C,whatever'] [--stages-width=30]
#
import argparse
from datetime import datetime
from enum import Enum
import os
import pytz