Skip to content

Instantly share code, notes, and snippets.

View andrewssobral's full-sized avatar
🔴
I may be very slow to respond.

Andrews Cordolino Sobral andrewssobral

🔴
I may be very slow to respond.
View GitHub Profile
@andrewssobral
andrewssobral / tegra-cam.py
Created June 2, 2018 23:10 — forked from jkjung-avt/tegra-cam.py
Capture and display video from either IP CAM, USB webcam, or the Tegra X2/X1 onboard camera.
# --------------------------------------------------------
# Camera sample code for Tegra X2/X1
#
# This program could capture and display video from
# IP CAM, USB webcam, or the Tegra onboard camera.
# Refer to the following blog post for how to set up
# and run the code:
# https://jkjung-avt.github.io/tx2-camera-with-python/
#
# Written by JK Jung <[email protected]>
@andrewssobral
andrewssobral / install-tensorflow.md
Created June 3, 2018 22:53 — forked from vellamike/install-tensorflow.md
Install tensorflow on Jetson TX2 (Jetpack 3.2)

Building TensorFlow from source for Jetson TX2 with Jetpack 3.2

Jetpack 3.2 includes Cuda 9 and CuDNN 7 so it is necessary to compile it from source.

Step 1 - Get Java

sudo apt-get install openjdk-8-jdk

Step 2 - Get some dependencies

@andrewssobral
andrewssobral / cling_opencv_example.cpp
Created June 15, 2018 14:07
cling for opencv example
// cat cling_opencv_example.cpp | cling
.L /usr/lib/libopencv_highgui.so
#include <opencv/highgui.h>
#include <math.h>
#include <iostream>
using namespace std;
template <typename T> T deg2rad(T deg) { return deg*M_PI/180.0; }
@andrewssobral
andrewssobral / run_luigi.py
Created July 25, 2018 13:43 — forked from bonzanini/run_luigi.py
Example of Luigi task pipeline
# run with a custom --n
# python run_luigi.py SquaredNumbers --local-scheduler --n 20
import luigi
class PrintNumbers(luigi.Task):
n = luigi.IntParameter(default=10)
def requires(self):
return []
@andrewssobral
andrewssobral / pytorch_jetson_install.sh
Created September 23, 2018 17:48 — forked from dusty-nv/pytorch_jetson_install.sh
Install procedure for pyTorch on NVIDIA Jetson TX1/TX2
#!/bin/bash
#
# pyTorch install script for NVIDIA Jetson TX1/TX2,
# from a fresh flashing of JetPack 2.3.1 / JetPack 3.0 / JetPack 3.1
#
# for the full source, see jetson-reinforcement repo:
# https://github.com/dusty-nv/jetson-reinforcement/blob/master/CMakePreBuild.sh
#
# note: pyTorch documentation calls for use of Anaconda,
# however Anaconda isn't available for aarch64.
@andrewssobral
andrewssobral / restart_bluetooth.sh
Created January 28, 2019 09:48 — forked from nicolasembleton/restart_bluetooth.sh
Restart Bluetooth Daemon on Mac OS X without restarting
#!/bin/bash
sudo kextunload -b com.apple.iokit.BroadcomBluetoothHostControllerUSBTransport
sudo kextload -b com.apple.iokit.BroadcomBluetoothHostControllerUSBTransport
@andrewssobral
andrewssobral / tensorflow_test.py
Last active March 13, 2021 16:54 — forked from seominjoon/tf_test.py
tensorflow_test
import tensorflow as tf
import numpy as np
import time
from tensorflow.contrib.rnn import BasicLSTMCell
# https://github.com/tensorflow/tensorflow/issues/24828
try:
from tensorflow.compat.v1 import ConfigProto
from tensorflow.compat.v1 import InteractiveSession
@andrewssobral
andrewssobral / ssecheck.cpp
Created May 27, 2020 20:05 — forked from hi2p-perim/ssecheck.cpp
Check SSE/AVX instruction support.
/*
Check SSE/AVX support.
This application can detect the instruction support of
SSE, SSE2, SSE3, SSSE3, SSE4.1, SSE4.2, SSE4a, SSE5, and AVX.
grep avx /proc/cpuinfo
g++ ssecheck.cpp -o ssecheck
*/
#include <iostream>
#ifdef _MSC_VER
@andrewssobral
andrewssobral / Crack Sublime Text Windows and Linux.md
Created August 3, 2021 15:14 — forked from JerryLokjianming/Crack Sublime Text Windows and Linux.md
Crack Sublime Text 3.2.2 Build 3211 and Sublime Text 4 Alpha 4098 with Hex

YouTube Channel https://www.youtube.com/c/jerrylokjianming


How to Crack Sublime Text 3.2.2 Build 3211 with Hex Editor (Windows | Without License) ↓

  1. Download & Install Sublime Text 3.2.2 Build 3211
  2. Visit https://hexed.it/