Skip to content

Instantly share code, notes, and snippets.

View shivarajnaidu's full-sized avatar

Yuvaraj V shivarajnaidu

View GitHub Profile
@shivarajnaidu
shivarajnaidu / install_linux4.9_in_ubuntu.sh
Last active February 14, 2020 04:08
Install Linux Kernel 4.9 In Ubuntu and It's Derivatives
#! /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)
@shivarajnaidu
shivarajnaidu / receiver.js
Last active September 15, 2018 12:54
RabbitMQ Sample NodeJS code
'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');
@shivarajnaidu
shivarajnaidu / opencv-install.sh
Created September 18, 2018 03:36
Shell script to install opencv on ubuntu linux
#!/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