Skip to content

Instantly share code, notes, and snippets.

View CT83's full-sized avatar
Stars! Give me some stars!

Rohan Sawant CT83

Stars! Give me some stars!
View GitHub Profile
@CT83
CT83 / install-dc.sh
Created October 22, 2020 06:33
This is a script to install Docker and Docker Compose on the Jetson devices
#!/bin/bash
sudo apt-get update -y
sudo apt-get upgrade -y
sudo apt-get install curl python3-pip libffi-dev python-openssl libssl-dev zlib1g-dev gcc g++ make -y
curl -sSL https://get.docker.com/ | sh
sudo pip3 install docker-compose
sudo docker-compose --version
@CT83
CT83 / install-docker-and-docker-compose-rpi.md
Created May 23, 2019 12:46
Installing Docker and Docker-Compose on Raspberry Pi in 6 Simple Steps

Installing Docker and Docker Compose on the Raspberry Pi in 6 Simple Steps

This is probably the quickest and the easiest ways to get Docker and Docker Compose running on the Raspberry Pi. (Tested with Raspberry Pi B+ Rev 1.2)

After searching the Inter-Webs for hours and having several things not work for me, I decided something needed to be done about it.

Steps

  1. curl -sSL https://get.docker.com | sh Install Docker
  2. sudo usermod -aG docker pi Add permission to Pi User to run Docker Commands
@CT83
CT83 / face_identify.py
Created July 21, 2018 18:23
Minimum Working Example Face API Python.
import os
import cognitive_face as CF
from cognitive_face import CognitiveFaceException
KEY = ''
CF.Key.set(KEY)
BASE_URL = 'https://centralindia.api.cognitive.microsoft.com/face/v1.0' # Replace with your regional Base URL
CF.BaseUrl.set(BASE_URL)
@CT83
CT83 / preiew_image.py
Created July 17, 2018 14:04
Quickest way to preview OpenCV image
def preview_image(image, name="window", time=1000):
import cv2
cv2.imshow(name, image)
if cv2.waitKey(time):
cv2.destroyAllWindows()
@CT83
CT83 / app.py
Created February 10, 2018 00:23
import os
from flask import Flask, redirect, url_for
from flask_dance.consumer import oauth_authorized
from flask_dance.consumer.backend.sqla import OAuthConsumerMixin, SQLAlchemyBackend
from flask_dance.contrib.github import make_github_blueprint, github
from flask_dance.contrib.twitter import make_twitter_blueprint, twitter
from flask_login import UserMixin, current_user, LoginManager, login_required, login_user, logout_user
from flask_migrate import Migrate, MigrateCommand
from flask_script import Manager
@CT83
CT83 / README_Template.md
Created December 23, 2017 15:07
README.md Template