My setup for running tensorman (https://github.com/pop-os/tensorman) with opencv and jupyter :
mkdir ambiente
cd ./ambiente
tensorman run -p 8888:8888 --gpu --python3 --jupyter --root --name container_name bash
mkdir ambiente
cd ./ambiente
tensorman run -p 8888:8888 --gpu --python3 --jupyter --root --name container_name bash
Tiny guide to install Ubuntu 14.04.05 on a brand new Alienware 15 R3.
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 |
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.
# 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 | |
# |
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 |
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) |
license: mit |
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 |
#!/bin/bash | |
##################################################### | |
# Name: Bash CheatSheet for Mac OSX | |
# | |
# A little overlook of the Bash basics | |
# | |
# Usage: | |
# | |
# Author: J. Le Coupanec | |
# Date: 2014/11/04 |