# EditorConfig is awesome: https://EditorConfig.org | |
# top-most EditorConfig file | |
root = true | |
# Unix-style newlines with a newline ending every file | |
[*] | |
charset = utf-8 | |
end_of_line = lf | |
indent_style = space |
- UE 4.25 doesn't come with nvidia codeworks anymore, so it's necessary to download and install android studio
- Follow Setting Up Android SDK and NDK for Unreal
- Currently (as for 2020-05-09), step 3. Setting Up Unreal to Use Android NDK r21b doesn't work because
sdkmanager
doesn't support installinglldb;3.1
anymore. So you have to delete it from theSetupAndroid
script (line 75 from the .bat version):
- Currently (as for 2020-05-09), step 3. Setting Up Unreal to Use Android NDK r21b doesn't work because
call "%SDKMANAGER%" "platform-tools" "platforms;android-28" "build-tools;28.0.3" "cmake;3.10.2.4988404" "ndk;21.1.6352462"
Source: pop-os/tensorman#10 (comment)
When launching a container, be sure to supply the port mappings argument to map the port from the container to the host.
tensorman run -p 8888:8888 --gpu --python3 --jupyter bash
Within the container, you may start the Jupyter notebook with
- Install tensorflow:
sudo apt install tensorflow-cuda-latest
- Install cuda:
sudo apt install system76-cuda-latest
- Download latest miniconda installer from https://docs.conda.io/en/latest/miniconda.html
- Install it:
bash Miniconda3-latest-Linux-x86_64.sh
- Create conda environment with tensorflow-gpu support:
#!/bin/bash | |
# fonte: http://sandipbgt.com/2015/10/01/control-screen-brightness-from-commandline-in-ubuntu/ | |
xrandr --output DP-2 --brightness 0.3 |
Source: https://gist.github.com/Brainiarc7/6d6c3f23ea057775b72c52817759b25c
After installing CUDA, create a library configuration file for cupti:
/etc/ld.so.conf.d/cupti.conf
Based on: https://stackoverflow.com/a/56170202/481690
Assuming that conda files are located on the user profile directory.
- To use it once:
. ~/anaconda3/etc/profile.d/conda.sh
- To load it automatically:
echo ". ~/anaconda3/etc/profile.d/conda.sh" >> ~/.profile"
using UnityEngine; | |
public class MaterialPassesCheck : MonoBehaviour | |
{ | |
void Start() | |
{ | |
var materials = Resources.FindObjectsOfTypeAll<Material>(); | |
foreach (Material material in materials) | |
{ | |
Debug.Log("[Material Pass Check] " + material.name + ": " + material.passCount + " passes"); |
Some times (actually most of the times) when you try to copy files from an Oculus device (Go/Quest) using Windows Explorer will result in a corrupt file. I've found a reddit thread that explained that using adb pull would avoid the issue and it actually works. Here's the command:
adb pull /sdcard/oculus/VideoShots
It will copy the whole directory into the current location. If you want to copy a specific file, just specify it:
adb pull /sdcard/oculus/VideoShots/filename.mp4
You can also pass a second argument to specify a different output location: