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> | |
// Even making the pointer volatile doesn't help | |
__thread int* tl_ptr; | |
int main(void) { | |
int x = 0xDEAD; | |
// Put a breakpoint on the following line | |
tl_ptr = &x; |
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
#!/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 <stdlib.h> | |
/*! Frees the pointer pointed to by the parameter and then sets it to NULL */ | |
#define destroy(pptr) do { \ | |
__typeof__(*(pptr)) volatile* _pptr = (pptr); \ | |
if(!_pptr) { \ | |
break; \ | |
} \ | |
free(*_pptr); \ | |
*_pptr = NULL; \ |
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
R'Hello, di'\ | |
+'!snoisnem'/ | |
O.........../ |
NewerOlder