This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/* | |
hacky.c | |
Written on 9/19/13 by @C0deH4cker for reasons unknown. | |
Inspired by http://carolina.mff.cuni.cz/~trmac/blog/2005/the-ugliest-c-feature-tgmathh/ | |
DISCLAIMER: | |
No preprocessors were harmed in the creation of this code. | |
*/ | |
/* |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env python | |
import sys, os | |
import subprocess | |
from shutil import copyfile | |
def main(): | |
mnt = os.path.expanduser("~/mnt") | |
snap = mnt + "/snapchat" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#include <iostream> | |
#include <vector> | |
#include <cstdio> | |
using namespace std; | |
struct Block { | |
vector<vector<bool> > grid; | |
int size; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// | |
// Property.h | |
// | |
// Created by C0deH4cker on 2/2/14. | |
// Copyright (c) 2014 C0deH4cker. All rights reserved. | |
// | |
#ifndef _PROPERTY_H_ | |
#define _PROPERTY_H_ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
R'Hello, di'\ | |
+'!snoisnem'/ | |
O.........../ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#include <stdio.h> | |
#include <stdlib.h> | |
#include <stdbool.h> | |
#include <stdint.h> | |
#include <unistd.h> | |
#include <fcntl.h> | |
#include <sys/mman.h> | |
#include <mach-o/loader.h> | |
/* Get the next load command from the current one */ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#include <stdio.h> | |
#include <stdlib.h> | |
#include <stdbool.h> | |
#include <stdint.h> | |
#include <string.h> | |
#include <unistd.h> | |
#include <fcntl.h> | |
#include <sys/mman.h> | |
/* For supporting Linux and other systems that don't have mach-o headers */ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// | |
// wordshift.cpp | |
// WordShift | |
// | |
// Created by C0deH4cker on 2/11/15. | |
// Copyright (c) 2015 C0deH4cker. All rights reserved. | |
// | |
#include <iostream> | |
#include <fstream> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// Just like C#'s using statement and Python's with statement. | |
// This allows use of a resource within a code block, after which | |
// the declared object's destructor will clean up. | |
// There's nothing about `with` that doesn't work in C, but it is | |
// pointless in standard C as there are no destructors. | |
// Multiple with statements can be nested as well, so it works as | |
// you'd expect. If for some bizarre reason you need to put multiple | |
// using statements on the same line, I've added another version, | |
// defined below as with_inline. | |
// |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// | |
// patternhooker.c | |
// PatternHooker | |
// | |
// Finds a function by searching for a byte pattern and hooks it with CydiaSubstrate. | |
// | |
// Created by C0deH4cker on 7/26/15. | |
// Copyright (c) 2015 C0deH4cker. All rights reserved. | |
// |
OlderNewer