Skip to content

Instantly share code, notes, and snippets.

View sinsinpub's full-sized avatar

sin_sin sinsinpub

  • Free
View GitHub Profile
@sinsinpub
sinsinpub / agetv_historysort.user.js
Last active October 28, 2023 14:06
Age.tv history sorter userscript.
// ==UserScript==
// @name Age.tv history sorter
// @namespace https://gist.github.com/sinsinpub
// @version 1.2
// @description Sort history records of age.tv playbacks in specified order.
// @author sin_sin
// @match https://www.agedm.org/*
// @match https://www.agemys.org/*
// @grant none
// ==/UserScript==
@sinsinpub
sinsinpub / youtube_preferences.css
Last active September 18, 2023 12:36
Better youtube.co.jp
@-moz-document url-prefix("https://www.youtube.com") {
/* Hide annoying elements */
/* Share buttons? */
#top-level-buttons-computed > ytd-button-renderer,
/* Clip buttons? */
#flexible-item-buttons > ytd-button-renderer,
/* For $ buttons? */
#sponsor-button.ytd-video-owner-renderer:not(:empty),
#purchase-button.ytd-video-owner-renderer:not(:empty),
#analytics-button.ytd-video-owner-renderer:not(:empty),
@sinsinpub
sinsinpub / fixed_ines.md
Last active February 5, 2024 09:37
My memo for fixing NES header (iNES) questionable entries.

Incorrect header entries I noticed in either No-Intro or Good romset. Even nowadays, they are still not fixed by ROM files and some emulator's internal DB.

Issues are some glitches I met when I use old emulators or emulators with bad DB entries. Default region is always Japan here.

Fix header entries

@sinsinpub
sinsinpub / nekketsu_kakutoudensetsu.md
Last active August 8, 2022 08:20
Some cheatsheets and memo for NES Nekketsu Kakutou Densetsu.

熱血格闘伝説

いいサイト見つけました:http://pluto1930.html.xdomain.jp/nkakutou/index.html

一部のじょうほうをそのままコピペしました、てへぺろ

キャラクタエディットの仕組について

  • 名前の5文字、キャラクタのステータスが決まり、さらにステータス初期値によって格闘タイプが決まります。
@sinsinpub
sinsinpub / pwgen1943.lua
Created August 3, 2022 11:16
Lua password bulder for NES 1943: The Battle of Midway / FC 1943: The Battle of Valhalla
-- Continue password generator for `1943: The Battle of Valhalla` (Midway)
-- Input 6 arguments: stage[1,23] atk[1,6] def[1,6] energy[1,6] weapon[1,6] wtime[1,6]
-- Based on http://rapla.html.xdomain.jp/data/data4/1943fc/pas.html
stagebosses = {
[1] = "RIKAKU (Tone)", [2] = "KAKU (Kaga)",
[3] = "AYAKO (Mori)", [4] = "KAKUSI (Fuso)",
[5] = "KYOSHU (Akagi)", [6] = "GANRYO (T4HB Hiryu)",
[7] = "CHOKO (Ise)", [8] = "ROSHUKU (Hiryu)",
[9] = "AYAKO 2 (Composer)", [10] = "KAYU (Mutsu)",
[11] = "BUNSHU (Ki-67 Hiryu)", [12] = "CHOJIN (Yamashiro)",
@sinsinpub
sinsinpub / msxlist.c
Last active May 5, 2022 04:52
Print MSX-BASIC tokenized binary file to stdout in plain texts. Fixed messy indents, typos and bugs in original version. Tested with Turbo C++1/DJGPP GCC 7.3 and some BAS files of opensource Japanese homebrew games.
/****************************************************************************\
list v0.3
This programm will convert a MSX-BASIC tokenized file into an ascii file.
syntax: list [inputfile]
To save converted texts, just pipe output with '> outputfile'.
Vincent van Dam
(vandam@ronix.ptf.hro.nl)
@sinsinpub
sinsinpub / twitter-idb-snippet.js
Last active December 3, 2021 07:20
Try to dismiss twitter shitty notification of 'Push Notification' for 10 years. Run in devtools console for once, or load into devtools -> source -> snippets tab for future use.
var conn = indexedDB.open('localforage').onsuccess = (ev) => {
const db = ev.target.result;
const ts = db.transaction(['keyvaluepairs'], 'readwrite');
const os = ts.objectStore('keyvaluepairs');
const key = 'device:rweb.devicesbrowserPushpromptDismissed';
const req = os.get(key);
const printData = (e) => { console.info(e.target.result); };
req.onsuccess = (reqe) => {
printData(reqe);
const data = reqe.target.result;
@sinsinpub
sinsinpub / GGENIE.CPP
Created November 29, 2021 06:40
Yet another converter of NESticle raw patch <-> Game Genie code (source from FCEU)
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
/*
* Game Genie: Code Mapping
*
* 6 Letters:
* | 1 | 2 | 3 | 4 | 5 | 6 |
* |1678|H234|#IJK|LABC|DMNO|5EFG|
@sinsinpub
sinsinpub / yandere_preferences.css
Created October 22, 2021 05:24
Better yande.re CSS preferences
@-moz-document url-prefix("https://yande.re/post") {
body {
padding-right: 0px;
}
#post-list-posts > li {
width: calc((74vw - 1em) / 5) !important;
margin-right: 1px !important;
}
#post-list-posts > li > div {
width: auto !important;
@sinsinpub
sinsinpub / PRNGS.PAS
Created September 26, 2021 05:52
Another retro (16-bit) Pseudo Random Number Generators written in Pascal before. Do anything with it.
unit prngs;
{ Pseudo Random Number Generators written in Pascal }
{ http://wiki.freepascal.org/Generating_Random_Numbers }
interface
type
algorithm = (rtl, lcg, pcg, xors, mt);
dist = (uniform, normal, exponential, gamma, erlang, poisson);