Skip to content

Instantly share code, notes, and snippets.

View Vinfall's full-sized avatar

Vinfall Vinfall

View GitHub Profile
@Vinfall
Vinfall / delete-github-action-head-commits.sh
Last active February 4, 2024 14:54
Action-bot automated repository can be filled with GA commits, the script would delete GA commits in HEAD until the earliest commit not authored by GA.
#!/bin/bash
# Usage: action-bot automated repository can be filled with GA commits,
# the script would delete GA commits in HEAD until the earliest commit not authored by GA.
# Author: Vinfall
# License: CC0 (Public Domain)
# Define a function to delete commits authored by a specific email address
del_ga_commits() {
# Define the email address of the author to be deleted
@Vinfall
Vinfall / coolapk.py
Created September 12, 2023 06:02
Check update from CoolAPK
#!/usr/bin/env python3
# -*- coding: utf-8 -*-
# Author: Vinfall
# License: GNU GPL v3.0
from bs4 import BeautifulSoup as bs
import requests
base_url = 'https://www.coolapk.com/apk/'
@Vinfall
Vinfall / cue_to_flac.py
Created November 12, 2022 11:53
CUE splitter using ffmpeg (to flac)
#!/usr/bin/env python3
# -*- coding: utf-8 -*-
# Based on GitHub Gist
# https://gist.github.com/Theldus/bf7b9fd7370f4ea4c57da5cb596e9da9
# Minor changes to make it usable in Python 3.10
cue_file = 'CDImage.cue'
f = open(cue_file, 'r', encoding='utf-8')