https://pimylifeup.com/raspberry-pi-transmission/
#!/bin/bash
if [ "$(whoami)" != "root" ]; then
echo "Run script as ROOT please. (sudo !!)"
exit
fi
| import https from 'https'; | |
| export const handler = async (event) => { | |
| const apiUrl = event.queryStringParameters?.url; | |
| if (!apiUrl) { | |
| return { | |
| statusCode: 400, | |
| headers: { | |
| 'Access-Control-Allow-Origin': '*', |
https://pimylifeup.com/raspberry-pi-transmission/
#!/bin/bash
if [ "$(whoami)" != "root" ]; then
echo "Run script as ROOT please. (sudo !!)"
exit
fi
For further reference : https://golang.hotexamples.com/examples/github.com.kardianos.service/-/Interactive/golang-interactive-function-examples.html
Presentation Link : https://bit.ly/build_dl
Main Blog post to refer : https://medium.com/@akshay090/end-to-end-deep-learning-tutorial-using-azure-f7bb524f7277
Final project link (live demo) : https://mini-pokedex.azurewebsites.net
Building Dataset:
| import requests | |
| import json | |
| import time | |
| API_KEY = "123ApiKey" | |
| API_SECRET = "superSecreteKey" | |
| detect = { | |
| 'api_key': (None, API_KEY), |
| exports.genderCountFxn = functions.database | |
| .ref("/atEvent/{date}/{id}") | |
| .onCreate((snapshot, context) => { | |
| // Grab the current value of what was written to the Realtime Database. | |
| const Visitor = snapshot.val(); | |
| console.log("Inside Visitor Fxn"); | |
| console.log(Visitor); | |
| console.log(Visitor.name); |
| const functions = require("firebase-functions"); | |
| const nodemailer = require("nodemailer"); | |
| const fs = require("fs"); | |
| const path = require('path'); | |
| // The Firebase Admin SDK to access the Firebase Realtime Database. | |
| const admin = require('firebase-admin'); | |
| admin.initializeApp() |
| function writeDataToFirebase() { | |
| var firebaseUrl = "https://makerqr.firebaseio.com replace this with your own"; | |
| var secret = "the firebase database secret here"; | |
| var base = FirebaseApp.getDatabaseByUrl(firebaseUrl, secret); | |
| var mySheet = SpreadsheetApp.openById("the id of your spreadsheet"); | |
| var dataSheet = mySheet.getSheets()[1]; | |
| var lastRow = mySheet.getLastRow(); | |
| var lastColumn = mySheet.getLastColumn(); | |
| var data = mySheet.getSheetValues(1, 1, lastRow, lastColumn); | |
| var dataToImport = {}; |
| Remote VSCode | |
| sudo wget -O /usr/local/bin/rmate https://raw.github.com/aurora/rmate/master/rmate | |
| sudo chmod a+x /usr/local/bin/rmate | |
| //above on vm | |
| CTRL+P for Windows and CMD+P for Mac) then execute the >Remote: Start Server command. | |
| ssh -R 52698:localhost:52698 username@ipaddress |
| create hashmap | |
| Map<Integer, Integer> map = new HashMap<>(); | |
| map.containsKey(target) | |
| map.get(target) | |
| iterate over each entry in a Map | |
| Map<String, String> map = ... | |
| for (Map.Entry<String, String> entry : map.entrySet()) | |
| { | |
| System.out.println(entry.getKey() + "/" + entry.getValue()); | |
| } |