Skip to content

Instantly share code, notes, and snippets.

View andreibosco's full-sized avatar

Andrei Bosco B. Torres andreibosco

View GitHub Profile
@andreibosco
andreibosco / .editorconfig
Last active May 17, 2020 18:39
Vim settings
# 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
@andreibosco
andreibosco / vim-tips.md
Last active May 16, 2020 23:35
Vim tips
@andreibosco
andreibosco / ue4.25-quest-dev.md
Last active March 29, 2021 19:37
Setting up Unreal Engine 4.25 for Oculus Quest development

Setting up Unreal Engine 4.25 for Oculus Quest development

Notes

  • UE 4.25 doesn't come with nvidia codeworks anymore, so it's necessary to download and install android studio

Instructions

  • 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 installing lldb;3.1 anymore. So you have to delete it from the SetupAndroid script (line 75 from the .bat version):

call "%SDKMANAGER%" "platform-tools" "platforms;android-28" "build-tools;28.0.3" "cmake;3.10.2.4988404" "ndk;21.1.6352462"

@andreibosco
andreibosco / tensorman_jupyter.md
Created May 4, 2020 15:54
Launching jupyter from tensorman (Pop!_OS 20.04)

Launching jupyter from tensorman (Pop!_OS 20.04)

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

@andreibosco
andreibosco / install_cuda_tensorflow_miniconda_Pop!Os20_04.md
Last active February 4, 2024 07:43
Installing cuda, tensorflow and miniconda on Pop!_OS 20.04

Installing cuda, tensorflow and miniconda on Pop!_OS 20.04

Cuda and Tensorflow

  • Install tensorflow: sudo apt install tensorflow-cuda-latest
  • Install cuda: sudo apt install system76-cuda-latest

Miniconda

@andreibosco
andreibosco / adjust-brigthness.sh
Created May 1, 2020 15:11
Quick script to adjust screen brightness of Lenovo Legion on Ubuntu 18.04 LTS
#!/bin/bash
# fonte: http://sandipbgt.com/2015/10/01/control-screen-brightness-from-commandline-in-ubuntu/
xrandr --output DP-2 --brightness 0.3
@andreibosco
andreibosco / cupti-cuda.md
Last active May 1, 2020 15:08
Configuring CUPTI for CUDA (ubuntu 18.04 LTS)
@andreibosco
andreibosco / conda-bash-windows.md
Last active March 31, 2020 16:08
Setting anaconda for git bash on windows

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"
@andreibosco
andreibosco / MaterialPassesCheck.cs
Created February 7, 2020 16:37
Unity: Material passes check
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");
@andreibosco
andreibosco / copy_videoshots.md
Last active January 17, 2020 19:25
copy recordings (videoshots) from oculus go/quest

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: