Skip to content

Instantly share code, notes, and snippets.

View dominik-hadl's full-sized avatar

Dominik Hádl dominik-hadl

  • Prague, Czech Republic
View GitHub Profile
@dominik-hadl
dominik-hadl / gdbGetStrippedSymbols.sh
Last active December 20, 2015 06:08
This script automates the setup of gdb on a stripped applicaiton adds symbols. It uses objc-symbols to get the symbols, then SymTabCreator and finally creates a command that is automatically loaded into gdb on start.
#!/bin/sh
# gdbGetStrippedSymbols.sh
# @author Dominik Hadl (@dominikhadl)
# @description This script automates the setup of gdb on a stripped applicaiton adds symbols. It uses objc-symbols to get the symbols,
# then SymTabCreator and finally creates a command that is automatically loaded into gdb on start.
# @license Licensed under WTFPL license (see http://www.wtfpl.net/txt/copying/ for full license).
# @dependencies
# 1. objc-symbols
# 2. SymTabCreator
# 3. gdb (really non-obvious)
@dominik-hadl
dominik-hadl / JSONPrettyToUgly.py
Last active December 19, 2015 20:08
Automatically minifies all JSON files after building (release or debug).
#!/usr/bin/python
#-------------------------
# Import the dependencies
#-------------------------
import json, sys
#-------------------------
#-------------------------------------
# Get the file names from the argument
@dominik-hadl
dominik-hadl / GCDSingleton.h
Last active December 16, 2015 23:59 — forked from lukeredpath/ExampleClass.m
GCDSingleton Macro + @ArvinB changes.
/*!
* @function Singleton GCD Macro
*/
#ifndef SINGLETON_GCD
#define SINGLETON_GCD(classname) \
\
+ (classname *)shared##classname { \
\
static dispatch_once_t pred; \