This file contains hidden or 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 OPENCV ON UBUNTU OR DEBIAN # | |
| ###################################### | |
| # -------------------------------------------------------------------- | | |
| # SCRIPT OPTIONS | | |
| # ---------------------------------------------------------------------| | |
| OPENCV_VERSION='3.4.8' # Version to be installed | |
| OPENCV_CONTRIB='YES' # Install OpenCV's extra modules (YES/NO) | |
| # -------------------------------------------------------------------- | |
This file contains hidden or 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
| #!/usr/bin/env bash | |
| echo 'export CDPATH="/home/pi"' | sudo tee -a /etc/bash.bashrc | |
| echo 'alias ll="ls -halt"' | sudo tee -a /etc/bash.bashrc | |
| echo 'alias l="ls -hlt"' | sudo tee -a /etc/bash.bashrc | |
| echo 'alias journal="journalctl -f -u kutumubu_api -u kutumubu_py -u kutumubu_printserver"' | sudo tee -a /etc/bash.bashrc | |
| echo 'alias speed-test="curl -s https://raw.githubusercontent.com/sivel/speedtest-cli/master/speedtest.py | python -"' | sudo tee -a /etc/bash.bashrc | |
| # update & upgrade | |
| sudo apt-get update |
This file contains hidden or 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
| package main | |
| import ( | |
| "bufio" | |
| "fmt" | |
| "log" | |
| "net" | |
| "os" | |
| ) |
This file contains hidden or 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 | |
| set -ex | |
| PARENT_DIR=$(basename "${PWD%/*}") | |
| CURRENT_DIR="${PWD##*/}" | |
| IMAGE_NAME="$PARENT_DIR/$CURRENT_DIR" | |
| TAG="${1}" | |
| REGISTRY="hub.docker.com" |