Skip to content

Instantly share code, notes, and snippets.

View MondoGao's full-sized avatar

MondoGao MondoGao

View GitHub Profile
@MondoGao
MondoGao / AuthHookLaunch.cpp
Created January 3, 2022 12:40
Specialized MapleStory DLL Injector
#include <Windows.h>
#include <iostream>
#include <io.h>
#define EXENAME "MapleStory.exe"
#define EXEARGS " GameLaunching"
#define DLLNAME "AuthHook.dll"
#ifdef UNICODE
# undef UNICODE
@MondoGao
MondoGao / ffmpeg-wrapper
Created October 3, 2021 17:35 — forked from BenjaminPoncet/ffmpeg-wrapper
Synology VideoStation ffmpeg wrapper with DTS, EAC3 and TrueHD support (Installation instructions in 1st comment)
#!/bin/bash
rev="12"
_log(){
echo "$(date '+%Y-%m-%d %H:%M:%S') - ${streamid} - $1" >> /tmp/ffmpeg.log
}
_log_para(){
echo "$1" | fold -w 120 | sed "s/^.*$/$(date '+%Y-%m-%d %H:%M:%S') - ${streamid} - = &/" >> /tmp/ffmpeg.log
@MondoGao
MondoGao / TerminalVim.scpt
Last active December 6, 2018 15:59 — forked from charlietran/TerminalVim.scpt
Open file in iTerm vim/neovim for MacOS High Sierra
-- TerminalVim.app
-- This creates a shim Application that will enable you to open files from the Finder in vim using iTerm
-- To use this script:
-- 1. Open Automator and create a new Application
-- 2. Add the "Run Applescript" action
-- 3. Paste this script into the Run Applescript section
-- 4. Save the application as TerminalVim.app in your Applications folder
-- 5. In the Finder, right click on a file and select "Open With". In that window you can set TerminalVim as a default