Skip to content

Instantly share code, notes, and snippets.

View donnaken15's full-sized avatar
🌲
PINE GANG 2⃣1⃣⛷💨😝😱😭💾💾😉📠♿️😇😬😄🔥🔥🔥🙌🌚

Wesley donnaken15

🌲
PINE GANG 2⃣1⃣⛷💨😝😱😭💾💾😉📠♿️😇😬😄🔥🔥🔥🙌🌚
View GitHub Profile
@donnaken15
donnaken15 / bytebeat.c
Created February 17, 2021 04:22
bytebeat sounds i might use
// cool sounding alternating notes
((t)/(bpm/60)*(4-(1*(((t)/(bpm))%(bpm)>(bpm/2)))));
bpm=167;
@donnaken15
donnaken15 / Generate SRT.gs
Last active April 22, 2021 12:38
Generate subtitles file in Drive from current (Excel) spreadsheet, formatted like https://docs.google.com/spreadsheets/d/1nzDgRlGuB6SY2cvfsJLH7u3_G0Ouucm-l8xsCzmfukw/edit?usp=sharing
function SRTstamp(_time) {
if (_time !== undefined)
{
if (_time.lastIndexOf(":") < 4)
_time = "00:"+_time
_time = _time.replace(".",",")+"0"
return _time
}
else throw("Invalid argument")
@donnaken15
donnaken15 / buildtex.cs
Last active April 25, 2022 04:00
rough program to build guitar hero texs, made only for global_gfx, im not sure about anything else, main program/template here: https://cdn.discordapp.com/attachments/407427813117788161/871908227510595655/zzz_buildbase.zip
using System;
using System.Collections.Generic;
using System.Globalization;
using System.IO;
namespace buildtex
{
// lost muh code somehow
// whyyyyyyy
class Program
@donnaken15
donnaken15 / ytdl-clip.sh
Created January 10, 2022 07:25
clip YouTube videos with ffmpeg and youtube-dl (SLOW), i wonder how this can be done the same way as just clicking into a specific part of a video
#!/bin/sh
ffmpeg \
-i $(youtube-dl -g -f 299 $1) \
-i $(youtube-dl -g -f 251 $1) \
-ss $2 -t $3 $4 ${1:-foo}
@donnaken15
donnaken15 / RIPTex.bms
Last active April 22, 2022 05:46
quickbms script to extract a GH3 tex's texture files and their (non-DDS properties) and make it rebuildable with buildtex
endian big
get magic long # 0x00
get unk1 short # 0x04
get unk2 byte # 0x06
get count byte # 0x07, max 0x80 textures??
get moff long # 0x08
get unk3 long # 0x0C
get xFFFF long # 0x10
/*
* Created by SharpDevelop.
* User: Wesley
* Date: 4/20/2022
* Time: 6:04 PM
*/
using System;
using System.Collections.Generic;
using System.Globalization;
using System.IO;
@donnaken15
donnaken15 / deimg.cs
Last active April 27, 2022 01:52
remove img header
/*
* Created by SharpDevelop.
* User: Wesley
* Date: 4/25/2022
* Time: 12:17 AM
*
* To change this template use Tools | Options | Coding | Edit Standard Headers.
*/
using System;
using System.IO;
@donnaken15
donnaken15 / pakdir.cs
Last active July 5, 2022 00:06
compile folder to PAK (single PAK only rn) quickly written tool https://cdn.discordapp.com/attachments/856787555348774922/993669027379564614/pakdir.exe
using System;
using System.Collections.Generic;
using System.IO;
namespace pakdir
{
class Program
{
// PC PAK ONLY
@donnaken15
donnaken15 / qbuild.sh
Last active July 1, 2022 07:35
ease process of creating paks. not complete yet
#!/bin/sh
# built for cygwin sh-4.4
#
# create pak from folder that
# contains q files, textures
# (png/jpg/dds), etc
#
# usage:
# ./qbuild.sh folder
@donnaken15
donnaken15 / fgh3_17.12.14.cs
Last active July 24, 2022 07:40
fastgh3 launcher; my original retired note parsing code
/////////////////////////////// ORIGINAL FASTGH3 LAUNCHER CODE
///////////////////////////////
/////////////////////////////// December 14th, 2017
//// = future wes, stupid github
Console.WriteLine("FASTGH3 by donnaken15");
Console.WriteLine("Checking file extension...");
if (Path.GetFileName(parameters[1]).Contains(".chart") && !Path.GetFileName(parameters[1]).Contains(".mid"))