Skip to content

Instantly share code, notes, and snippets.

@Wolftousen
Wolftousen / gist:1d87de23afe8c5e5244166d917342f61
Created January 4, 2025 21:31
Oculus 3 Pro Controller 0% Firmware Update Bug Logs
16:22:52.835 973 1487 I MRSS : MIXEDREALITY: MrServiceModelBase: ClientStats: com.oculus.guardian, VrMode: 1, PT: 1, FS: 0, Depth: 0, Layers: 1 (active: 1 compositor: 1), Rec PT : 1, Proj PT: 0, BG PT : 0, KH PT : 0, Shaders: 1
16:22:52.874 3297 10349 W AppManagerInternal: Entitlement for packageName=com.oculus.os.cm not found in cache, channels=[Store, Q4B]
16:22:52.874 5353 6246 W OVRLibrary : null cursor received for query content://com.oculus.ocms.library/apps/com.android.networkstack.tethering.inprocess
16:22:52.876 5353 18082 W OVRLibrary : null cursor received for query content://com.oculus.ocms.library/apps/com.oculus.os.cm
16:22:52.913 973 1513 I MRSS : BOLT:HexagonTelemetry: Global DSP utilization: 29.22% (1462 / 5003 ms), Scalar Util: 64.49%, HVX Util: 54.23%, HMX Util: 23.24%, DMA Active: 0.00%, Freq: 787.2 MHz
16:22:52.913 973 1513 I MRSS : boltlib: Invoking logging callbacks. onAbort=false
16:22:52.913 973 1513 I MRSS : boltlib: Loaded
@Wolftousen
Wolftousen / octrata_ai3.js
Created February 12, 2024 17:06
ai written contract tests
const axios = require('axios');
const { expect } = require('chai');
describe('API Contract Test', () => {
it('should return an object with name and age given GUID and security code', async () => {
// Mock data for the request
const requestData = {
guid: 'some-guid',
securityCode: '123456'
@Wolftousen
Wolftousen / octrata_ai2.js
Created February 12, 2024 17:05
ai written tests for build house
const { expect } = require('chai');
const sinon = require('sinon');
// Import the functions that are called inside BuildHouse
const {
LayFoundation,
Frame,
RunPlumbing,
RunElectrical,
@Wolftousen
Wolftousen / octrata_ai1.js
Created February 12, 2024 17:04
ai written unit tests for brick
const { expect } = require('chai');
const Brick = require('./brick'); // Adjust the path based on your file structure
describe('Brick', () => {
describe('carry function', () => {
it('should return true if weight is below carry capacity', () => {
const brick = new Brick(10);
const result = brick.carry(8);
expect(result).to.be.true;
@Wolftousen
Wolftousen / octrata_house1.js
Last active February 12, 2024 17:03
Simple logicalless function
function BuildHouse() {
LayFoundation();
Frame();
RunPlumbing();
RunElectrical();
Insulate();
FinishDetails();
}
@Wolftousen
Wolftousen / otrata_brick1.js
Created February 12, 2024 17:01
Simple object example for unit testing article
function Brick(carryCapacity) {
this.carryCapacity = carryCapacity;
// carry function
this.carry = function(weight) {
if(weight < this.carryCapacity) {
return true;
} else {
return false;
@Wolftousen
Wolftousen / fastMatrix.lua
Created September 8, 2014 01:31
Fast matrix math in luajit 2.1
local ffi = require "ffi"
ffi.cdef[[
void* malloc(size_t size);
void* realloc (void* ptr, size_t size);
void* calloc(size_t num, size_t size);
void free(void* ptr);
typedef struct _MATRIX4_ {
double* data;