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 | |
# Function to display a message with a timestamp | |
function echo_with_timestamp() { | |
echo "[$(date +'%Y-%m-%d %H:%M:%S')] $1" | |
} | |
echo_with_timestamp "Starting pre-installation script for Docker and (optionally) Certbot..." | |
# Update and upgrade the package lists |
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
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 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
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 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
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 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
<?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 = "[email protected]:user22/repo_name.git"; | |
*/ |