Skip to content

Instantly share code, notes, and snippets.

View MikuAuahDark's full-sized avatar

Miku AuahDark MikuAuahDark

View GitHub Profile
@MikuAuahDark
MikuAuahDark / generate_center_description.php
Created September 24, 2015 11:47
[Php] Effect string from Leader Skill string
<?php
$ur_skill_reversemap=[
"Princess" => "Smile",
"Angel" => "Pure",
"Empress" => "Cool"
];
// It expects English center skill.
function generate_center_description($str) {
global $ur_skill_reversemap;
@MikuAuahDark
MikuAuahDark / SaveCard.ps1
Last active September 27, 2015 14:52
SaveCard
# CardInstall.ps1
<#
Script to add all cards to database as .card files.
The specification of the .card file can be found here:
(some_link)
#>
# Enumeration definition
$rarityEnum=@{N=0;R=1;SR=2;UR=3}
$attributeEnum=@{Smile=0;Pure=1;Cool=2;All=3}
@MikuAuahDark
MikuAuahDark / Makefile
Created March 12, 2016 13:37
Makefile-compatible Lua script/Lua-compatible Makefile/Lua script in Makefile
__unused = #string -- This is a Makefile which is also executable by Lua
__unused = #string --[[
#Your Makefile script starts here
default:
@echo "Hello!"
#Your Makefile script ends here
ifeq (0,1)
__unused = #string ]]--
-- Your lua script starts here
@MikuAuahDark
MikuAuahDark / flsh_dumper.lua
Created October 3, 2016 11:38
Playground Flash file dumper
-- 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
MikuAuahDark / test_asteria.cpp
Created October 30, 2016 09:16
Asteria Decrypter (requires HonokaMiku v4.0.2)
#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
MikuAuahDark / showpl2.txt
Created November 19, 2016 08:45
GTASA Show Playing CLEO Script by Pressing F7
// Show current playing user tracks when F7 is pressed
// Miku AuahDark <auahdark687291@gmail.com>
{$CLEO .cs3}
{$VERSION 3.1.0027}
{
Reserved Variables:
0@ = LoadLibrary("msvcrt")
1@ = GetProcAddress(0@,"calloc")
@MikuAuahDark
MikuAuahDark / authkey.php
Created March 15, 2017 13:49
NPPS3 example login/authkey
<?php
// login/authkey
return new class implements NPPS\ActionHandler
{
private $NPPSDB = NULL;
function __construct()
{
$NPPSDB = NPPS\GetMainDatabase();
}
function __destruct() {}
@MikuAuahDark
MikuAuahDark / flsh_dumper.lua
Created May 1, 2017 02:11
Lua script to view more information about Playground Flash File
-- 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
MikuAuahDark / png_crop.cpp
Created October 17, 2015 14:02
Crop PNG from 0x0 to specificed pixel
#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
MikuAuahDark / NPPS3_Example.php
Last active August 5, 2017 13:33
NPPS3 module action handler example.
<?php
// Example NPPS3 module action handler
return new class implements NPPS\ActionHandler
{
// You can add your variables in here.
private $YourVariables;
// Constructor must be public. One-time initialization can be done here.
public function __construct() {}
// Destructor must be public too. Do cleanup in here
public function __destruct() {}