Skip to content

Instantly share code, notes, and snippets.

View jeroavf's full-sized avatar

Jeronimo Avelar Filho jeroavf

View GitHub Profile

My setup for running tensorman (https://github.com/pop-os/tensorman) with opencv and jupyter :

On host command line:

mkdir ambiente 
cd ./ambiente 
tensorman run -p 8888:8888 --gpu --python3 --jupyter --root --name container_name bash

Inside running container:

@jeroavf
jeroavf / alienware15r3_install_ubuntu14.04.05.md
Created July 1, 2019 17:58 — forked from awesomebytes/alienware15r3_install_ubuntu14.04.05.md
Install Ubuntu 14.04 on Alienware 15 R3 instructions

How to install Ubuntu 14.04.05 on Alienware 15 R3

Tiny guide to install Ubuntu 14.04.05 on a brand new Alienware 15 R3.

Let windows 10 install

Just next, next, next filling up your data.

You should get a BIOS update alert from the Alienware Update widget. If not, right click on the Down arrow icon in the bottom right extra icons ^ thing and right click, then click Check for Updates.

minikube stop; minikube delete &&
docker stop $(docker ps -aq) &&
rm -rf ~/.kube ~/.minikube &&
sudo rm -rf /usr/local/bin/localkube /usr/local/bin/minikube &&
launchctl stop '*kubelet*.mount' &&
launchctl stop localkube.service &&
launchctl disable localkube.service &&
sudo rm -rf /etc/kubernetes/ &&
docker system prune -af --volumes
@jeroavf
jeroavf / ubuntu_opencv_gpu_tf.md
Created February 5, 2019 10:39 — forked from kleysonr/ubuntu_opencv_gpu_tf.md
Configuring Ubuntu with opencv, gpu and tensorflow support

Procedures used to configure a new fresh installed Ubuntu 16.04.5 LTS with support for OpenCV4 + Python 3.6 + Nvidia GTX 1060 + Tensorflow + Keras.

Installing GPU drivers

Open the link https://www.geforce.com/drivers and under the Manual Driver Search select the appropriated values, make sure to select Recommended/Certified option, and click search.

Search for the latest version in the list. While writing this gist the latest version was 410.78.

@jeroavf
jeroavf / Python2Elastic-LogBot.py
Last active November 5, 2018 16:32
Acesso a ElasticSeach via python
# coding: utf-8
# #### Teste de conexão ao elasticsearch via python
#
# Ativar o docker container do elasticsearch :
# docker pull docker.elastic.co/elasticsearch/elasticsearch:6.4.2
# docker run -p 9200:9200 -p 9300:9300 -e "discovery.type=single-node" docker.elastic.co/elasticsearch/elasticsearch:6.4.2
#
@jeroavf
jeroavf / tweet_listener.py
Created October 31, 2018 11:17 — forked from hugobowne/tweet_listener.py
Here I define a Tweet listener that creates a file called 'tweets.txt', collects streaming tweets as .jsons and writes them to the file 'tweets.txt'; once 100 tweets have been streamed, the listener closes the file and stops listening.
class MyStreamListener(tweepy.StreamListener):
def __init__(self, api=None):
super(MyStreamListener, self).__init__()
self.num_tweets = 0
self.file = open("tweets.txt", "w")
def on_status(self, status):
tweet = status._json
self.file.write( json.dumps(tweet) + '\n' )
self.num_tweets += 1
@jeroavf
jeroavf / find_hotels.py
Last active August 10, 2018 15:19
Chatbot example functions in python + sqlite3 for chatbot test
import sqlite3
# Define find_hotels()
def find_hotels(params):
# Create the base query
query = 'SELECT * FROM hotels'
# Add filter clauses for each of the parameters
if len(params) > 0:
filters = ["{}=?".format(k) for k in params]
query += " WHERE " + " and ".join(filters)
@jeroavf
jeroavf / .block
Created March 11, 2017 19:13
fresh block
license: mit
@jeroavf
jeroavf / install.sh
Created June 11, 2016 20:30 — forked from vjm/install.sh
Raspberry Pi ELK Stack
sudo apt-get install -y supervisor
sudo mkdir /usr/share/elasticsearch
cd /usr/share/elasticsearch
sudo wget https://download.elasticsearch.org/kibana/kibana/kibana-4.0.1-linux-x64.tar.gz
sudo wget https://download.elasticsearch.org/elasticsearch/elasticsearch/elasticsearch-1.4.4.tar.gz
sudo wget https://download.elasticsearch.org/logstash/logstash/logstash-1.4.2.tar.gz
sudo tar -zxvf elasticsearch-0.90.0.tar.gz
@jeroavf
jeroavf / bash-cheatsheet.sh
Created February 24, 2016 16:37 — forked from LeCoupa/bash-cheatsheet.sh
Bash CheatSheet for UNIX Systems
#!/bin/bash
#####################################################
# Name: Bash CheatSheet for Mac OSX
#
# A little overlook of the Bash basics
#
# Usage:
#
# Author: J. Le Coupanec
# Date: 2014/11/04