Skip to content

Instantly share code, notes, and snippets.

@McPo
McPo / Oculus Quest Unity OSX Integration Patch
Last active February 6, 2022 12:17
Enable Oculus Quest Unity Development on OSX / macOS via `Oculus > OVR Build`
1. Install the embedded Android SDK and copy the file `adb` to `adb.exe` e.g:
```
cd /Applications/Unity/Hub/Editor/****/PlaybackEngines/AndroidPlayer/SDK/platform-tools/
cp adb adb.exe
```
2. Apply the following diff to the Oculus Integration asset.
3. Navigate to Oculus > OVR Build > OVR Scene Quick Preview
@McPo
McPo / AdvanceNetworkTopologyStrategy.java
Created August 13, 2018 10:58
Modified Cassandras 3.11 NetworkTopology Strategy to allow relationships to be defined as originDC->destinationDC
/*
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements. See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership. The ASF licenses this file
* to you under the Apache License, Version 2.0 (the
* "License"); you may not use this file except in compliance
* with the License. You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
@McPo
McPo / adb_c
Last active February 9, 2016 11:48
Wrapper for adb which provides an interactive device chooser.
#!/bin/sh
################# EXAMPLE USAGE #################
########## TO EXECUTE A SINGLE COMMAND ##########
#### ./adb_c shell
### LAUNCH CHOOSER AND CALL MULTIPLE COMMANDS ###
#### . ./adb_c; targetA=$target; adb -s $targetA shell; adb -s $targetA shell pm install; echo $targetA;
@McPo
McPo / 0_reuse_code.js
Created December 24, 2013 01:26
Here are some things you can do with Gists in GistBox.
// Use Gists to store code you would like to remember later on
console.log(window); // log the "window" object to the console
<code>
<resources>
<style name="Theme.AppTheme" parent="android:Theme.Holo">
<item name="android:homeAsUpIndicator">@android:color/transparent</item>
</style>
</resources>
</code>
And apply it to the application, (Be aware of values-v14 etc)