Skip to content

Instantly share code, notes, and snippets.

View BenWoodford's full-sized avatar

Ben Woodford BenWoodford

View GitHub Profile
[20:08:46 INFO]: Starting minecraft server version 1.12.2
[20:08:46 INFO]: Loading properties
[20:08:46 ERROR]: Exception handling console input
java.io.IOException: The handle is invalid
at java.io.FileInputStream.readBytes(Native Method) ~[?:?]
at java.io.FileInputStream.read(FileInputStream.java:279) ~[?:?]
at java.io.BufferedInputStream.read1(BufferedInputStream.java:290) ~[?:?]
at java.io.BufferedInputStream.read(BufferedInputStream.java:351) ~[?:?]
at sun.nio.cs.StreamDecoder.readBytes(StreamDecoder.java:284) ~[?:?]
at sun.nio.cs.StreamDecoder.implRead(StreamDecoder.java:326) ~[?:?]
@BenWoodford
BenWoodford / lh2.md
Last active October 17, 2023 02:33
Lighthouse 2.0 GATT Information

All control characteristics are under Service 00001523-1212-EFDE-1523-785FEABCD124

Characteristics

Mode = 00001524-1212-EFDE-1523-785FEABCD124 (READ, WRITE, NOTIFY)

Identify = 00008421-1212-EFDE-1523-785FEABCD124 (WRITE)

Power State = 00001525-1212-EFDE-1523-785FEABCD124 (WRITE, newer firmware also had READ and NOTIFY)

Tue, 10 Mar 2020 15:05:15 +0000 | INFO | server | | Serving using application : .\data_recorder.exe
Tue, 10 Mar 2020 15:05:15 +0000 | INFO | server | | Starting WebSocket server : ws://desktop-ben:8080/
Tue, 10 Mar 2020 15:05:18 +0000 | ACCESS | session | url:'http://localhost:8080/ws' id:'1583852718547896300' remote:'::1' command:'.\data_recorder.exe' origin:'file://' | CONNECT
Tue, 10 Mar 2020 15:05:19 +0000 | ERROR | stderr | url:'http://localhost:8080/ws' id:'1583852718547896300' remote:'::1' command:'.\data_recorder.exe' origin:'file://' pid:'44400' | Info: Recording to stdout
Tue, 10 Mar 2020 15:05:19 +0000 | ERROR | stderr | url:'http://localhost:8080/ws' id:'1583852718547896300' remote:'::1' command:'.\data_recorder.exe' origin:'file://' pid:'44400' | Info: Adding tracked object WM0 from HTC
Tue, 10 Mar 2020 15:05:19 +0000 | ERROR | stderr | url:'http://localhost:8080/ws' id:'1583852718547896300' remote:'::1' command:'.\data_recorder.exe' origin:'file://' pid:'44400
Tue, 10 Mar 2020 15:00:10 +0000 | INFO | server | | Serving using application : .\data_recorder.exe
Tue, 10 Mar 2020 15:00:10 +0000 | INFO | server | | Starting WebSocket server : ws://desktop-ben:8080/
Tue, 10 Mar 2020 15:00:14 +0000 | ACCESS | session | url:'http://localhost:8080/ws' id:'1583852414702491000' remote:'::1' command:'.\data_recorder.exe' origin:'file://' | CONNECT
Tue, 10 Mar 2020 15:00:15 +0000 | ERROR | stderr | url:'http://localhost:8080/ws' id:'1583852414702491000' remote:'::1' command:'.\data_recorder.exe' origin:'file://' pid:'31660' | Info: Recording to stdout
Tue, 10 Mar 2020 15:00:15 +0000 | ERROR | stderr | url:'http://localhost:8080/ws' id:'1583852414702491000' remote:'::1' command:'.\data_recorder.exe' origin:'file://' pid:'31660' | Info: Adding tracked object WM0 from HTC
Tue, 10 Mar 2020 15:00:15 +0000 | ERROR | stderr | url:'http://localhost:8080/ws' id:'1583852414702491000' remote:'::1' command:'.\data_recorder.exe' origin:'file://' pid:'31660
// Upgrade NOTE: commented out 'float4 unity_LightmapST', a built-in variable
// Upgrade NOTE: commented out 'sampler2D unity_Lightmap', a built-in variable
// Upgrade NOTE: replaced tex2D unity_Lightmap with UNITY_SAMPLE_TEX2D
// Made with Amplify Shader Editor
// Available at the Unity Asset Store - http://u3d.as/y3X
Shader "Fennec Labs/Environment"
{
Properties
{
@BenWoodford
BenWoodford / LeafAPI.md
Last active November 22, 2023 21:51
New Nissan Connect EV API

Late 2018 Update

I am no longer working on this as the new API is US-only as I'm in the UK, so cannot even use it or the new app. Please don't ask me questions about it as I honestly can't remember anything.

Nissan Connect EV 2018 API

This is a work in progress, just jotting down my findings from the APK decompile so far. As I can only read the decompiled Java and not MITM the app due it not working in the UK, getting the payload info may take a while. There's loads of API calls so this may not be thorough for a while.

Base URL: https://icm.infinitiusa.com/NissanLeafProd/rest

Tue Oct 10 2017 10:21:57.381 - //=====================================================================================================================
Tue Oct 10 2017 10:21:57.381 - VR compositor (v1504061330) starting up
Tue Oct 10 2017 10:21:57.381 - RuntimePath : D:\SteamLibrary\steamapps\common\OpenVR\
Tue Oct 10 2017 10:21:57.408 - Events created
Tue Oct 10 2017 10:21:57.418 - Initializing generic graphics device resources...
Tue Oct 10 2017 10:21:57.422 - Headset is using direct mode
Tue Oct 10 2017 10:21:57.447 - Initializing CD3D11VRRenderer
Tue Oct 10 2017 10:21:57.459 - Failed to create direct mode display!
Tue Oct 10 2017 10:21:57.459 - Failed to init graphics device
Tue Oct 10 2017 10:21:57.461 - Failed to initialize compositor
Tue Oct 10 2017 02:17:16.450 - //=====================================================================================================================
Tue Oct 10 2017 02:17:16.450 - VR compositor (v1504061330) starting up
Tue Oct 10 2017 02:17:16.450 - RuntimePath : C:\steamcmd\steamapps\common\SteamVR\
Tue Oct 10 2017 02:17:16.472 - Forcing debug mode for null driver because of Prop_DisplayDebugMode_Bool.
Tue Oct 10 2017 02:17:16.473 - Events created
Tue Oct 10 2017 02:17:16.481 - Initializing generic graphics device resources...
Tue Oct 10 2017 02:17:16.482 - Headset display is on desktop
Tue Oct 10 2017 02:17:16.488 - Initializing CD3D11VRRenderer
Tue Oct 10 2017 02:17:16.495 - Creating swap chain
Tue Oct 10 2017 02:17:16.495 - Failed to find closest matching mode!
@BenWoodford
BenWoodford / steamvr_pipes.md
Last active April 24, 2017 17:22
SteamVR Pipe Data Dump

Pipe List that is likely to be Vive Related

VR_ServerPipe                                     7               -1      
VR_CompositorPipe                                 6               -1      
qt-4823                                           1                1      
qt-18BE                                           1                1      
qt-6784                                           1                1      
HTC_BT_PAIRING_PIPE_NAME                          1              200      
HTC_BT_HFP_PIPE_NAME2                             1              200      
@BenWoodford
BenWoodford / .htaccess
Created February 28, 2017 08:45 — forked from donnykurnia/.htaccess
.htaccess for 503 maintenance page
ErrorDocument 503 /maintenance.html
RewriteEngine On
RewriteBase /
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule .* /maintenance.html [R=503,L]