Skip to content

Instantly share code, notes, and snippets.

@withmorten
withmorten / gcc 5 on ubuntu 14.04
Last active September 13, 2017 14:23 — forked from beci/gcc 5 on ubuntu 14.04
use gcc 5.x on ubuntu 14.04
sudo add-apt-repository ppa:ubuntu-toolchain-r/test
sudo apt-get update
sudo apt-get install gcc-5 g++-5
sudo update-alternatives --install /usr/bin/gcc gcc /usr/bin/gcc-5 60 --slave /usr/bin/g++ g++ /usr/bin/g++-5
sudo update-alternatives --install /usr/bin/cpp cpp /usr/bin/cpp-5 60
@withmorten
withmorten / userDefineLang.xml
Last active March 19, 2018 04:52
SAGE INI File UDL
<NotepadPlus>
<UserLang name="SAGE INI file (Objects)" ext="ini" udlVersion="2.1">
<Settings>
<Global caseIgnored="no" allowFoldOfComments="no" foldCompact="no" forcePureLC="0" decimalSeparator="0" />
<Prefix Keywords1="yes" Keywords2="no" Keywords3="no" Keywords4="yes" Keywords5="no" Keywords6="no" Keywords7="no" Keywords8="no" />
</Settings>
<KeywordLists>
<Keywords name="Comments">00; 00// 01 02 03; 03// 04</Keywords>
<Keywords name="Numbers, prefix1"></Keywords>
<Keywords name="Numbers, prefix2"></Keywords>
@withmorten
withmorten / ffmpeg.patch
Last active January 20, 2025 19:13
ffmpeg toeof patch
diff --git a/fftools/ffmpeg.h b/fftools/ffmpeg.h
index f6c76bcc55..7c0b95853d 100644
--- a/fftools/ffmpeg.h
+++ b/fftools/ffmpeg.h
@@ -157,6 +157,7 @@ typedef struct OptionsContext {
int64_t recording_time;
int64_t stop_time;
+ int64_t stop_time_eof;
uint64_t limit_filesize;
@withmorten
withmorten / ctorhack.cpp
Last active October 15, 2019 10:11
ctorhack
#include <new>
typedef uintptr_t addr;
enum
{
PATCH_CALL,
PATCH_JUMP,
PATCH_NOTHING,
HOOK_SIZE = 5,
@withmorten
withmorten / check_xrefs.py
Created March 7, 2021 21:59
check_xrefs.py
import idautils
import idc
import idaapi
def demangle(name):
mask = idc.get_inf_attr(idc.INF_LONG_DN)
demangled = idc.demangle_name(name, mask)
if demangled is None:
return name
return demangled
@withmorten
withmorten / premake5.lua
Created August 10, 2021 17:49
AGE premake5.lua
workspace "AGE"
configurations
{
"Debug",
"Release",
}
startproject "AGE"
location "build"