Skip to content

Instantly share code, notes, and snippets.

@jribal
jribal / gist:d7a8aca2aa6160b771d9c0a276d677d4
Created March 19, 2019 09:17
log libsubsurface android
D/bluetooth: OSTC+ 100:80:25:34:CE:A5
W/BluetoothAdapter: getBluetoothService() called with no BluetoothManagerCallback
D/plugin: library loaded
D/test: serial set timeout 3000
serial sleep 300
serial purge
Device open success OSTC Sport 49 19 393218
ostc3 device open
event success
cancel success
@jribal
jribal / gist:e542387a4e5ba799a2c2c9ca374f3701
Last active March 19, 2019 09:13
libsubsurface-handler.java
public class MainActivity extends Activity
{
static {
System.loadLibrary("subsurface-bridge");
}
public native String libsubsurfaceExtract(long bluetoothsocket);
private BluetoothAdapter bluetoothAdapter = null;
BluetoothSocket socket = null;
@jribal
jribal / gist:140ccbde7c54f6a434fa6b52cacace2f
Last active March 19, 2019 09:13
libsubsurface-bridge.c
#define LOGD(...) __android_log_print(ANDROID_LOG_DEBUG, LOG_TAG, __VA_ARGS__)
int import_thread_cancelled = 0;
typedef struct dc_user_device_t
{
dc_descriptor_t *descriptor;
const char *vendor, *product, *devname;
const char *model, *btname;
unsigned char *fingerprint;
@jribal
jribal / install.sh
Last active December 24, 2019 10:29
RetroArch web player basic host installation script on docker nginx(ubuntu)
cd /usr/share/nginx/html
rm -r *
apt-get update && apt-get -y install wget nano git-core curl build-essential openssl libssl-dev python p7zip unzip
wget https://buildbot.libretro.com/nightly/emscripten/$(date +%Y-%m-%d -d "1 day ago")_RetroArch.7z
p7zip -d $(date +%Y-%m-%d -d "1 day ago")_RetroArch.7z
mkdir -p assets/frontend/bundle
mkdir -p assets/cores
chmod +x indexer