Vinfall / allow-nwjs-game.bat
0 likes
0 forks
1 files
Last active
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 likes
0 forks
1 files
Last active
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 likes
0 forks
1 files
Last active
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 likes
0 forks
1 files
Last active
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 / vndb-merge.py
0 likes
0 forks
1 files
Last active
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 / delete-github-action-head-commits.sh
0 likes
0 forks
1 files
Last active
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 |
Newer
Older