git clone https://android.googlesource.com/kernel/goldfish/ -b android-goldfish-3.18
git clone https://android.googlesource.com/platform/prebuilts/gcc/linux-x86/x86/x86_64-linux-android-4.9
cd goldfish
export CROSS_COMPILE=x86_64-linux-android-
export ARCH=x86_64
export PATH=$PATH:/path/to/x86_64-linux-android-4.9/bin
make x86_64_ranchu_defconfig
make menuconfig # enable overlayfs and namespaces support here
make -j8
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 <ctime> | |
#include <cstdlib> | |
#include <vector> | |
#include <sstream> | |
#include <fstream> | |
#include <cstring> | |
using namespace std; | |
enum GateType { PI, AIG, UNDEF }; |
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
ml /c winapi.asm | |
link winapi.asm /subsystem:console |
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
diff -ur hornet-1.0/src/boost.task-0.4.2/boost/task/detail/bind_processor.hpp hornet-1.0-mod2/src/boost.task-0.4.2/boost/task/detail/bind_processor.hpp | |
--- hornet-1.0/src/boost.task-0.4.2/boost/task/detail/bind_processor.hpp 2011-06-01 21:51:37.000000000 +0800 | |
+++ hornet-1.0-mod2/src/boost.task-0.4.2/boost/task/detail/bind_processor.hpp 2014-05-04 02:58:12.144146742 +0800 | |
@@ -7,7 +7,7 @@ | |
#ifndef BOOST_TASKS_DETAIL_BIND_PROCESSOR_H | |
#define BOOST_TASKS_DETAIL_BIND_PROCESSOR_H | |
-#include <boost/task/detail/config.hpp> | |
+//#include <boost/task/detail/config.hpp> | |
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
v4l2: v4l2.cpp | |
g++ v4l2.cpp -o v4l2 -ljpeg |
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
package org.twbbs.chyen.android.BluetoothTest; | |
import android.app.Activity; | |
import android.bluetooth.BluetoothAdapter; | |
import android.bluetooth.BluetoothDevice; | |
import android.bluetooth.BluetoothSocket; | |
import android.content.BroadcastReceiver; | |
import android.content.Context; | |
import android.content.Intent; | |
import android.content.IntentFilter; |
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 python3 | |
# WTFPL – Do What the Fuck You Want to Public License | |
import subprocess | |
import os | |
import sys | |
prefixes = { | |
'i386': '/usr/i686-w64-mingw32/bin', | |
'AMD64': '/usr/x86_64-w64-mingw32/bin' | |
} |
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
COMMON_OBJECTS=sparse_crc32.o \ | |
backed_block.o \ | |
output_file.o \ | |
sparse.o \ | |
sparse_err.o \ | |
sparse_read.o \ | |
stringprintf.o | |
TARGETS=simg2img \ | |
append2simg \ |
Since Firefox OS is discontinued and lots of files on its CDN is removed, I upload my backups and hope that can help those who need it.
v18D_nightly_v4.zip SHA512 = 9105e29fd39da1ae487b01da4431a803d619d31482147b4383002b8a10268905fd444b108a438395a78d289cfe4e8fba10c3fb6b0d187f3535f027bf90c2391a https://drive.google.com/file/d/0B0LIhpR4sgJrUlhOdTZ1Z2V6R2c/view
From: https://developer.mozilla.org/en-US/docs/Archive/B2G_OS/Phone_guide/Flame/Updating_your_Flame
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
'use strict'; | |
var notp = require('notp'), | |
thirty_two = require('thirty-two'); | |
var stdin = process.openStdin(); | |
console.log("Entery TOTP key:"); | |
stdin.addListener("data", function(d) { | |
var key = d.toString().trim().replace(/ /g, ''); |
OlderNewer