Skip to content

Instantly share code, notes, and snippets.

View galanteh's full-sized avatar

Hernan Galante galanteh

  • Cloudera
  • Mexico City
View GitHub Profile
@galanteh
galanteh / install.sh
Last active July 12, 2019 14:57
Installing CSV Faker on a CFM (Cloudera NiFi) node
#! /bin/bash
sudo yum install -y epel-release
sudo yum install -y python36
sudo yum install -y python36-devel
sudo yum install -y python36-pip
sudo yum install -y python36-setuptools
sudo easy_install-3.6 pip
sudo python3.6 -m pip install --upgrade pip setuptools wheel
sudo python3 -m pip install faker
sudo python3 -m pip install ipaddress
@galanteh
galanteh / sh
Created July 12, 2019 14:48
Installing Python3.6 in Centos7
#! /bin/bash
sudo yum install -y epel-release
sudo yum install -y python36
sudo yum install -y python36-devel
sudo yum install -y python36-pip
sudo yum install -y python36-setuptools
sudo easy_install-3.6 pip
sudo python3.6 -m pip install --upgrade pip setuptools wheel
docker pull ubuntu # downloads image from Docker repository
docker ps -a # shows all available containers
docker ps -as # shows all containers with the actual size of the rw-layer
docker exec -ti ceb1be03097d /bin/bash # run bash on running container
docker commit ceb1be03097d /: # create image based on container
@galanteh
galanteh / gist:861d47ac9aafe45389c5f72d568f34a4
Created July 27, 2018 14:55
Get the raspberry temperature
pi@raspberrypi:~ $ /opt/vc/bin/vcgencmd measure_temp
temp=56.9'C