Vinfall / allow-nwjs-game.bat
0 Favoriten
0 Forks
1 Dateien
Zuletzt aktiv
https://blog.vinfall.com/posts/2024/08/browser-customize-chromium/#配置插件
1 | @echo off |
2 | echo "Delete reg to allow Electron/NW.js..." |
3 | |
4 | reg delete "HKEY_LOCAL_MACHINE\Software\Policies\Chromium\ExtensionAllowedTypes" /f |
5 | reg delete "HKEY_LOCAL_MACHINE\Software\Policies\Google\Chrome\ExtensionAllowedTypes" /f |
6 | reg delete "HKEY_LOCAL_MACHINE\SOFTWARE\Policies\Microsoft\Edge\ExtensionAllowedTypes" /f |
7 | if %errorlevel%==0 ( |
8 | echo ExtensionAllowedTypes policy deleted. |
9 | ) else ( |
10 | echo ExtensionAllowedTypes policy deletion failed! |
Vinfall / (DEPRECATED) fixDat script to work with RomVault & Retool
0 Favoriten
0 Forks
1 Dateien
Zuletzt aktiv
https://blog.vinfall.com/posts/2024/04/rom/#retool
1 | #!/bin/bash |
2 | # Prerequisites: jc, jq & rsync |
3 | |
4 | cd path/to/fixDat_blahblah.dat || exit |
5 | mv fixDat_*.dat fixDat.dat |
6 | # RomVault has a cutoff description bug in fixDATs |
7 | #jc --xml < fixDat.dat | jq '.datafile.game[] | .description | . + ".zip"' | sed 's/"//g' > fixDat.txt |
8 | # So use @name instead, but this could be wrong if you use local names in Retool |
9 | jc --xml < fixDat.dat | jq '.datafile.game[] | .["@name"] | . + ".zip"' | sed 's/"//g' > fixDat.txt |
10 | cp fixDat.txt path/to/RetroArch/fixDat.txt |
Vinfall / Add PGP Signature to Hugo/Hexo/Any Static Site
0 Favoriten
0 Forks
1 Dateien
Zuletzt aktiv
https://blog.vinfall.com/posts/2022/10/pgp-signed-site/#conclusion
1 | #!/bin/bash |
2 | |
3 | # Make sure gpg knows which tty to use, |
4 | # or it'll complain like `curse not a tty xterm-256color` forever |
5 | export GPG_TTY=$(tty) |
6 | gpg-connect-agent updatestartuptty /bye >/dev/null |
7 | |
8 | # Garbage clean |
9 | rm -r ./public/* |
10 | hugo --gc |
Vinfall / void-outdated-pkg.sh
0 Favoriten
0 Forks
1 Dateien
Zuletzt aktiv
List of available updates for void (orphan/mypkg/no version) packages installed locally.
1 | #!/bin/bash |
2 | |
3 | # List of available updates for unmaintained void packages installed locally |
4 | outdated_orphan(){ |
5 | local DISTURL="https://repo-default.voidlinux.org/void-updates/void-updates/updates_orphan%40voidlinux.org.txt" |
6 | local DISTFILE="updates_orphan.txt" |
7 | |
8 | wget --hsts-file="$XDG_CACHE_HOME/wget-hsts" --output-document ${DISTFILE} --quiet ${DISTURL} |
9 | |
10 | # filter out uninterested packages |
Vinfall / github-repo-size
0 Favoriten
0 Forks
1 Dateien
Zuletzt aktiv
Get repo size from GitHub API
1 | #!/bin/bash |
2 | |
3 | if [ $# -ne 1 ]; then |
4 | echo "Usage: $0 owner/repo" |
5 | exit 1 |
6 | fi |
7 | |
8 | repo_info=$1 |
9 | |
10 | repo_size=$(curl -s "https://api.github.com/repos/${repo_info}" | jq '.size' | numfmt --to=iec --from-unit=1024 | tr -d '\n') |
Vinfall / vndb-merge.py
0 Favoriten
0 Forks
1 Dateien
Zuletzt aktiv
DEPRECATED! Companion script for VNDB-List-Export, use VNDB Query instead.
1 | #!/usr/bin/python3 |
2 | |
3 | import pandas as pd |
4 | import glob |
5 | import os |
6 | import csv |
7 | |
8 | |
9 | def merge_csv_files(file_pattern, output_prefix): |
10 | # 获取所有CSV文件,并按文件名顺序排序 |
Vinfall / cue_to_flac.py
0 Favoriten
0 Forks
1 Dateien
Zuletzt aktiv
CUE splitter using ffmpeg (to flac)
1 | #!/usr/bin/env python3 |
2 | # -*- coding: utf-8 -*- |
3 | |
4 | # Based on GitHub Gist |
5 | # https://gist.github.com/Theldus/bf7b9fd7370f4ea4c57da5cb596e9da9 |
6 | # Minor changes to make it usable in Python 3.10 |
7 | |
8 | cue_file = 'CDImage.cue' |
9 | |
10 | f = open(cue_file, 'r', encoding='utf-8') |
Vinfall / delete-github-action-head-commits.sh
0 Favoriten
0 Forks
1 Dateien
Zuletzt aktiv
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.
1 | #!/bin/bash |
2 | |
3 | # Usage: action-bot automated repository can be filled with GA commits, |
4 | # the script would delete GA commits in HEAD until the earliest commit not authored by GA. |
5 | # Author: Vinfall |
6 | # License: CC0 (Public Domain) |
7 | |
8 | # Define a function to delete commits authored by a specific email address |
9 | del_ga_commits() { |
10 | # Define the email address of the author to be deleted |
Neuer
Älter