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/sh | |
cd ~ | |
sudo apt update | |
sudo apt install wget git build-essential pkg-config cmake -y | |
# Clone OpenCV repos | |
git clone https://github.com/opencv/opencv.git --depth=1 | |
git clone https://github.com/opencv/opencv_contrib.git --depth=1 | |
# Build And Compile |
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
'use strict'; | |
const amqplib = require('amqplib'); | |
const qName = 'tasks'; | |
const open = amqplib.connect('amqp://localhost'); | |
async function getConnection() { | |
try { | |
const connection = await open; | |
console.log('Connected'); |
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/sh | |
#to produce colored output in STDOUT | |
red="$(tput setaf 1)" | |
green="$(tput setaf 2)" | |
blue="$(tput setaf 4)" | |
reset="$(tput sgr0)" | |
bold="$(tput bold)" | |
myArch=$(getconf LONG_BIT) |