Skip to content

Instantly share code, notes, and snippets.

@DanTheMan827
DanTheMan827 / injecting-custom-songs.md
Last active July 14, 2022 16:39
How to inject custom songs into Amplitude.

Injecting a custom Amplitude track

There are two ways to add custom tracks to amplitude, the easiest would be using Modulation, a free and open source GUI app based around Modulate by Adam Clixby.

Both methods assume you have the game files for Amplitude on your computer, obtaining the files from a real system is beyond the scope of the document, but if using RPCS3 they can be found in the dev_hdd0\game\NPUB31810\USRDIR folder of the emulator.

Modulation (Easiest Method)

Download Modulation from the GitHub releases page, you may also need the .NET 6.0 Desktop Runtime.

@DanTheMan827
DanTheMan827 / clovercon.c
Created June 14, 2022 19:26
SNES Classic clovercon.c from OSS
/* --------------------------------------------------------------------------
* @license_begin
*
* Controllers I2C driver
* Copyright (C) 2016 Nintendo Co. Ltd
*
* This program is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation; either version 2 of the License
*
using System.Collections.Generic;
using System.Xml.Serialization;
[XmlRoot(ElementName = "datafile")]
public class DatFile
{
[XmlRoot(ElementName = "header")]
public class DatHeader
{
[XmlElement(ElementName = "name")]

So, ModMyClassic thought it fit to ban all the hakchi devs and act like the victims of the matter, but what they won't tell you is what went on in the past to cause the contentious relationship in the first place.

Things used to be fine at first, swingflip came in and made some useful contributions to the community, all is well, for now...

The mod store came along and it was a genuinely useful addition to hakchi2 ce, but there was one problem, it was controlled by primarily one person, swingflip...

He then made a copy of KMFDManic's cores, changed the credit line, and wanted him to contribute on this copy instead of swingflip just working with him on the original copy...

KMFDManic would have reddit posts removed, people trolling him, and most importantly, his cores weren't allowed onto the mod store, only the copies were.

<?xml version="1.0" encoding="utf-8" ?>
<ROOT MUV="2.1.0.1551.6380">
<PRODUCT PID="0x0952" URL="https://downloads.bose.com/eb/drowsy_charger/index.xml" />
<PRODUCT PID="0x1869" URL="https://downloads.bose.com/bosebuild/BB1/index.xml" />
<PRODUCT PID="0x1872" URL="https://downloads.bose.com/bosebuild/BB2/index.xml" />
<PRODUCT PID="0x400A" URL="https://downloads.bose.com/ced/isaac/index.xml" />
<PRODUCT PID="0x400C" URL="https://downloads.bose.com/ced/PRE_RRA/wolfcastle/index.xml" />
<PRODUCT PID="0x400D" URL="https://downloads.bose.com/ced/foreman/index.xml" />
<PRODUCT PID="0x4006" URL="https://downloads.bose.com/ced/champ/index.xml" />
@DanTheMan827
DanTheMan827 / index.js
Created May 8, 2019 15:02
Simple, complete example of a bot in Discord.js
// Load up the discord.js library
const Discord = require("discord.js");
// This is your client. Some people call it `bot`, some people call it `self`,
// some might call it `cootchie`. Either way, when you see `client.something`, or `bot.something`,
// this is what we're refering to. Your client.
const client = new Discord.Client();
// Here we load the config.json file that contains our token and our prefix values.
const config = require("./config.json");
#!/bin/sh
#
# Copyright 2018 madmonkey
# Copyright 2018 DanTheMan827
#
# This program is free software: you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
# the Free Software Foundation, either version 3 of the License, or
# (at your option) any later version.
#
@DanTheMan827
DanTheMan827 / instructions.md
Created September 24, 2018 18:35
How to "unfuck" your NES/SNES classic

So, you used Hakchi2.30, fucked your console, and now it just shuts down right away... and of course you want to fix it, right?

Well, depending on which system you have, you'll have to find one of these clean kernel backups from your favorite search engine (hint: search for the filename in quotes)

Super Nintendo / Super Famicom Classic

  • kernel-dp-shvc-release-v2.0.12-0-gbff4fb3.img
  • kernel-dp-shvc-release-v2.0.14-0-gd8b65c6.img
  • kernel-dp-sneseur-release-v2.0.13-0-g9dca6c5.img
  • kernel-dp-sneseur-release-v2.0.14-0-gd8b65c6.img
  • kernel-dp-sneseur-release-v2.0.7-0-geb2b275.img
/bin/clover-kachikachi-wr
/var/lib/hakchi/games/nes-usa/.storage/CLV-H-JLKBN/DuckTales_(USA).nes
--guest-overscan-dimensions 0,0,9,3
--initial-fadein-durations 10,2
--volume 75
--enable-armet
--save-on-quit /var/cache/clover//volatile/CLV-H-JLKBN/0.state
--save-screenshot-on-quit /var/cache/clover//volatile/CLV-H-JLKBN/0.state.png
--save-data-backing-file /var/lib/clover/profiles/0//CLV-H-JLKBN/save.sram
--graphic-filter gpu720
char xterm256_colors[256][3] = {
{0x00, 0x00, 0x00}, // Black (SYSTEM)
{0x80, 0x00, 0x00}, // Maroon (SYSTEM)
{0x00, 0x80, 0x00}, // Green (SYSTEM)
{0x80, 0x80, 0x00}, // Olive (SYSTEM)
{0x00, 0x00, 0x80}, // Navy (SYSTEM)
{0x80, 0x00, 0x80}, // Purple (SYSTEM)
{0x00, 0x80, 0x80}, // Teal (SYSTEM)
{0xc0, 0xc0, 0xc0}, // Silver (SYSTEM)
{0x80, 0x80, 0x80}, // Grey (SYSTEM)