Skip to content

Instantly share code, notes, and snippets.

View andreibosco's full-sized avatar

Andrei B. B. Torres andreibosco

View GitHub Profile
@andreibosco
andreibosco / bookmark.min.js
Created July 14, 2020 16:36 — forked from zaydek-old/bookmark.min.js
A *simple* CSS debugger. To use, bookmark "Debug CSS" at https://zaydek.github.io/debug.css. Learn more here https://medium.freecodecamp.org/88529aa5a6a3 and https://youtu.be/2QdzahteCCs?t=1m25s (starts at 1:25)
/* debug.css | MIT License | zaydek.github.com/debug.css */ if (!("is_debugging" in window)) { is_debugging = false; var debug_el = document.createElement("style"); debug_el.append(document.createTextNode(`*:not(g):not(path) { color: hsla(210, 100%, 100%, 0.9) !important; background: hsla(210, 100%, 50%, 0.5) !important; outline: solid 0.25rem hsla(210, 100%, 100%, 0.5) !important; box-shadow: none !important; filter: none !important; }`)); } function enable_debugger() { if (!is_debugging) { document.head.appendChild(debug_el); is_debugging = true; } } function disable_debugger() { if (is_debugging) { document.head.removeChild(debug_el); is_debugging = false; } } !is_debugging ? enable_debugger() : disable_debugger();
@andreibosco
andreibosco / yubikey-windows10.md
Last active November 13, 2025 18:09
Setting up Yubikey with SSH and Git on Windows 10 + Powershell
@andreibosco
andreibosco / .flake8
Last active May 16, 2020 21:50
Python/django stuff
# flake8 with black, import-order, bugbear, bandit
[flake8]
select = B,B9,BLK,C,E,F,I,W
ignore = E203,E501,W503
max-line-length = 80
max-complexity = 10
import-order-style = google
application-import-names = app1,app2 #your applications name here
@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 March 11, 2025 21:24
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 September 9, 2024 22:48
Configuring CUPTI for CUDA (ubuntu 18.04 LTS)