This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
pi@raspberrypi:~ $ /opt/vc/bin/vcgencmd measure_temp | |
temp=56.9'C |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#! /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 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#! /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 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/* Temp table logs */ | |
SELECT anchor_table_schema || '.' || anchor_table_name as TABLE_NAME, | |
projection_column_count as AVG_ROW_LEN, | |
SUM(row_count) as NUM_ROWS, | |
CASE | |
WHEN row_count<=99999 THEN 'x-small' | |
WHEN row_count<=999999 THEN 'small' | |
WHEN row_count<=99999999 THEN 'medium' | |
WHEN row_count<=999999999 THEN 'large' | |
WHEN row_count>999999999 THEN 'x-large' |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Choose an Edge node. Login as root. | |
# This recipe works to compile Apache Livy 0.3.0 from Cloudera repo. | |
yum -y install maven | |
cd /opt | |
wget https://github.com/cloudera/livy/archive/v0.3.0.zip | |
unzip v0.3.0.zip | |
cd livy-0.3.0 | |
yum -y install python-pip | |
python -m pip install --upgrade pip setuptools wheel |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
wget -qO- https://packages.microsoft.com/keys/microsoft.asc | sudo apt-key add - | |
sudo add-apt-repository "$(wget -qO- https://packages.microsoft.com/config/ubuntu/16.04/mssql-server-2017.list)" | |
sudo apt-get update | |
sudo apt-get install -y mssql-server | |
sudo /opt/mssql/bin/mssql-conf setup | |
sudo systemctl enable mssql-server | |
sudo systemctl start mssql-server |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Install EPEL Repo | |
sudo yum install -y epel-release | |
# Update the OS | |
sudo yum -y update | |
# Install HTOP to monitor processes | |
sudo yum install -y htop | |
# Install Graphite and Carbon | |
sudo yum install -y graphite-web python-carbon | |
# Configuration - Change TimeZone and Security |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
sudo bash -c "cat << EOF > /etc/yum.repos.d/grafana.repo | |
[grafana] | |
name=grafana | |
baseurl=https://packages.grafana.com/oss/rpm | |
repo_gpgcheck=1 | |
enabled=1 | |
gpgcheck=1 | |
gpgkey=https://packages.grafana.com/gpg.key | |
sslverify=1 | |
sslcacert=/etc/pki/tls/certs/ca-bundle.crt |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
# ORACLE 19c Install Script by Hernan Galante <hernan_galante@hotmail> | |
# ------------------------------------------------------------------ | |
# First, go to the Oracle Downloads website and try to download your RPM. You will ACCEPT the Terms. | |
# This will generate a cookie than you can export from your browser with any add-on for Chrome or Firefox. | |
# Copy this cookie.txt to your server. This script assumes that you have this file. | |
# | |
# TROUBLESHOOTING | |
# ------------------------------------------------------------------ | |
# If you receive this error message [FATAL] [DBT-06103] The port (1,521) is already in use. |
OlderNewer