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 apt update | |
sudo apt upgrade | |
sudo apt install apt-transport-https ca-certificates curl software-properties-common | |
curl -fsSL https://download.docker.com/linux/ubuntu/gpg | sudo gpg --dearmor -o /usr/share/keyrings/docker-archive-keyring.gpg | |
echo "deb [arch=$(dpkg --print-architecture) signed-by=/usr/share/keyrings/docker-archive-keyring.gpg] https://download.docker.com/linux/ubuntu $(lsb_release -cs) stable" | sudo tee /etc/apt/sources.list.d/docker.list > /dev/null | |
sudo apt update | |
apt-cache policy docker-ce | |
sudo apt install docker-ce | |
sudo systemctl status docker | |
sudo usermod -aG docker $USER |
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
import os | |
from flask import Flask, request, redirect, url_for | |
from werkzeug import secure_filename | |
PROJECT_HOME = os.path.dirname(os.path.realpath(__file__)) | |
UPLOAD_FOLDER = '{}/uploads/'.format(PROJECT_HOME) | |
ALLOWED_EXTENSIONS = set(['txt','pdf']) | |
app = Flask(__name__) |
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
import RPi.GPIO as GPIO #Initialising GPIO | |
import time | |
# This Code Runs the Flask Web API, you can run on remote RPI or the Local One | |
# | |
# | |
# | |
#You can add more ports and routes to add further object. | |
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
import nltk | |
import speech_recognition as sr | |
# You can run this code on the same RPI where Flask Server is running or on your Hosts to access | |
# remote station. | |
# | |
# | |
#Variables for Usage | |
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
<?php | |
const API_KEY = "YOUR API KEY HERE"; | |
const API_URL = "https://api.cloudways.com/api/v1"; | |
const EMAIL = "YOUR EMAIL GOES HERE"; | |
/* examples | |
const BranchName = "master"; | |
const GitUrl = "git@bitbucket.org:user22/repo_name.git"; | |
*/ |