Skip to content

Instantly share code, notes, and snippets.

@esterTion
esterTion / coneshell_extract_metadata.cpp
Last active Dec 3, 2020
Extract metadata from ConeShell (Cygames) processed binary
View coneshell_extract_metadata.cpp
#include <cstdio>
#include <iostream>
#include <cstdint>
using namespace std;
void writeReverse(FILE* f, uint32_t num)
{
char* buf[4];
*(uint32_t*)buf = 0xFFFFFFFF - num;
fwrite(buf, 4, 1, f);
@devgianlu
devgianlu / serve_http.py
Last active Mar 4, 2021 — forked from pankajp/serve_http.py
Simple Python HTTP Server with multi-threading, partial-content and basic authentication support
View serve_http.py
#! /usr/bin/env python
# Standard library imports.
from SocketServer import ThreadingMixIn
import BaseHTTPServer
import SimpleHTTPServer
import sys
import json
import os
from os.path import (join, exists, dirname, abspath, isabs, sep, walk, splitext,
@nickwph
nickwph / aosp-jack-error-fix.md
Created Oct 13, 2015
Error when Building AOSP
View aosp-jack-error-fix.md

if you encounter this error

out/host/linux-x86/bin/jack: line 131: 31049 Killed                  $SERVER_PRG $SERVER_PORT_SERVICE $SERVER_PORT_ADMIN $SERVER_COUNT $SERVER_NB_COMPILE $SERVER_TIMEOUT >> $SERVER_LOG 2>&1
ERROR: Cannot launch Jack server
make: *** [out/target/common/obj/JAVA_LIBRARIES/framework_intermediates/with-local/classes.dex] Error 41
make: *** Waiting for unfinished jobs....

its because ~/.jack has an incorrect permission you can fix it with