Skip to content

Instantly share code, notes, and snippets.


Miku AuahDark MikuAuahDark

View GitHub Profile
MikuAuahDark / cp2seq.lua
Created Sep 10, 2015
[Lua] Unicode code point to UTF-8 sequence
View cp2seq.lua
local function bitstring(n)
local s
local bs=""
for i=31,0,-1 do
if n>=2^i then
MikuAuahDark / generate_center_description.php
Created Sep 24, 2015
[Php] Effect string from Leader Skill string
View generate_center_description.php
"Princess" => "Smile",
"Angel" => "Pure",
"Empress" => "Cool"
// It expects English center skill.
function generate_center_description($str) {
global $ur_skill_reversemap;
View SaveCard.ps1
# CardInstall.ps1
Script to add all cards to database as .card files.
The specification of the .card file can be found here:
# Enumeration definition
MikuAuahDark / HonokaMiku.cpp
Last active Jul 20, 2019
SIF Decryption (prototype). The fully working project is in
View HonokaMiku.cpp
// HonokaMiku.cpp
// Loads SIF and execute it's decrypt function
// 10/15/2015: JP is now supported. Requires SIF JP v2.0.5 x86
#if !defined(_M_IX86) && !defined(__i386__)
#error "Only x86 targets are supported!"
#include <cstdlib>
MikuAuahDark / png_crop.cpp
Created Oct 17, 2015
Crop PNG from 0x0 to specificed pixel
View png_crop.cpp
#include <iostream>
#include <string>
#include <cstdarg>
#include <png.h>
using namespace std;
// Prints message in stderr and exit program in release build.
// In debug build, it trigger debug breakpoint instead.
void failexit(const char* file,const char* msg) {
MikuAuahDark / Makefile
Created Mar 12, 2016
Makefile-compatible Lua script/Lua-compatible Makefile/Lua script in Makefile
View Makefile
__unused = #string -- This is a Makefile which is also executable by Lua
__unused = #string --[[
#Your Makefile script starts here
@echo "Hello!"
#Your Makefile script ends here
ifeq (0,1)
__unused = #string ]]--
-- Your lua script starts here
MikuAuahDark / stringstream.lua
Last active Oct 22, 2019
Lua 5.1 stringstream (pure)
View stringstream.lua
local stringstream = {}
stringstream.__index = stringstream
function stringstream.create(str)
local out = setmetatable({}, stringstream)
out.buffer = str or ""
out.pos = 0
out.__index = stringstream
return out
MikuAuahDark / flsh_dumper.lua
Created Oct 3, 2016
Playground Flash file dumper
View flsh_dumper.lua
-- Playground FLSH asset dumper.
-- It does not allow you to make new FLSH file!!!
local arg = {...}
local target_input = arg[1]
if target_input == nil then
print("Usage: lua flsh_dumper.lua <flsh path>")
print("It does not allow you to make new FLSH file!!!")
return 1
MikuAuahDark / test_asteria.cpp
Created Oct 30, 2016
Asteria Decrypter (requires HonokaMiku v4.0.2)
View test_asteria.cpp
#include <cassert>
#include <cstdlib>
#include <cstdio>
#include <exception>
#include <stdexcept>
#include "HonokaMiku-4.0.2/DecrypterContext.h"
using namespace HonokaMiku;
class asteria_decrypter: public V2_Dctx
MikuAuahDark / showpl2.txt
Created Nov 19, 2016
GTASA Show Playing CLEO Script by Pressing F7
View showpl2.txt
// Show current playing user tracks when F7 is pressed
// Miku AuahDark <>
{$CLEO .cs3}
{$VERSION 3.1.0027}
Reserved Variables:
0@ = LoadLibrary("msvcrt")
1@ = GetProcAddress(0@,"calloc")