Skip to content

Instantly share code, notes, and snippets.

Ricardo de Azambuja ricardodeazambuja

Block or report user

Report or block ricardodeazambuja

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
@ricardodeazambuja
ricardodeazambuja / colab_xface_vnc.ipynb
Last active Jul 17, 2019 — forked from ahmedengu/colab_xface_vnc.ipynb
Use google colab as a remote machine with the help of ngrok, vnc server and xface desktop you can change the configurations and desktop environment as you please it's just a start
View colab_xface_vnc.ipynb
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@ricardodeazambuja
ricardodeazambuja / dgoogle_download.sh
Created Jul 2, 2019 — forked from isphus1973/dgoogle_download.sh
Small bash script that downloads a Google Drive file with wget
View dgoogle_download.sh
#!/bin/sh
######Usage#######
# ./dgoogle_download.sh FILE_ID OUTPUT_NAME
## Remember to chomod +x dgoogle_download.sh
#This scrip is based on https://unix.stackexchange.com/questions/136371/how-to-download-a-folder-from-google-drive-using-terminal
@ricardodeazambuja
ricardodeazambuja / docker-cleanup-resources.md
Created Jun 30, 2019 — forked from bastman/docker-cleanup-resources.md
docker cleanup guide: containers, images, volumes, networks
View docker-cleanup-resources.md

Docker - How to cleanup (unused) resources

Once in a while, you may need to cleanup resources (containers, volumes, images, networks) ...

delete volumes

// see: https://github.com/chadoe/docker-cleanup-volumes

$ docker volume rm $(docker volume ls -qf dangling=true)
$ docker volume ls -qf dangling=true | xargs -r docker volume rm
@ricardodeazambuja
ricardodeazambuja / take_photo_colab.py
Last active Jun 29, 2019
Saving images from webcam on Google Colab
View take_photo_colab.py
# I have no idea who is the author of the code
# in this cell that saves an image from a webcam
# inside google colab.
# It comes from a notebook called "📸 Take a photo with your webcam"
from IPython.display import HTML, Audio
from google.colab.output import eval_js
from base64 import b64decode
import numpy as np
import io
@ricardodeazambuja
ricardodeazambuja / Dockerfile
Last active Jun 29, 2019
Docker image for RPI ZERO with OpenCV4 and friends... more compact, but annoying to build.
View Dockerfile
FROM balenalib/rpi-raspbian:stretch
# This is responsible for making your current docker work with arm images:
# $ sudo apt install qemu qemu-user-static binfmt-support-
# And this line is responsible for enabling it (MUST run after a restart):
# $ docker run --privileged linuxkit/binfmt:v0.7
ENV OPENCV_VERSION=4.1.0
@ricardodeazambuja
ricardodeazambuja / test_pizero_opencv.py
Created Jun 21, 2019
Testing the OpenCV Optical Flow tutorial on the Raspberry Pi Zero
View test_pizero_opencv.py
import io
import time
import picamera
#from PIL import Image
import cv2 as cv
import numpy as np
NoI = 200
@ricardodeazambuja
ricardodeazambuja / Dockerfile
Last active Jun 20, 2019
Docker image for RPI ZERO with OpenCV4 and friends...
View Dockerfile
FROM balenalib/rpi-raspbian:stretch
# This is responsible for making your current docker work with arm images:
# $ sudo apt install qemu qemu-user-static binfmt-support-
# And this line is responsible for enabling it (MUST run after a restart):
# $ docker run --privileged linuxkit/binfmt:v0.7
RUN apt-get update
RUN apt-get upgrade -y
@ricardodeazambuja
ricardodeazambuja / Dockerfile
Last active Jun 19, 2019
Alpine for RPI Zero with Python3 / Numpy / Scipy / OpenCV 4... (WORK IN PROGRESS!!!)
View Dockerfile
FROM arm32v6/alpine
RUN apk add --update --no-cache \
build-base \
unzip \
wget \
cmake \
# A C language family front-end for LLVM (development files)
clang-dev \
linux-headers
@ricardodeazambuja
ricardodeazambuja / tf-rasp.md
Created May 26, 2019 — forked from EKami/tf-rasp.md
Building TensorFlow for Raspberry Pi: a Step-By-Step Guide
View tf-rasp.md

Building TensorFlow 1.3.0-rc1 for Raspberry Pi/Ubuntu 16.04: a Step-By-Step Guide

Here you'll learn how to build Tensorflow for the raspberry pi 3 with either the Python API or as a standalone shared library which can be interfaced from the C++ API and eventually as a library which can be used in other languages.

For the C++ library this tutorial will show you how extract tensorflow library and headers to use in any environment you want.

(This tutorial couldn't be possible without the help of the people from the References section)

What You Need

View MNIST Keras - Simple, but interactive.ipynb
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
You can’t perform that action at this time.