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
{ | |
"cameras": [ | |
{ | |
"deviceId": "cam001_mav", | |
"deviceName": "Front Door Camera", | |
"resolution": "1080p", | |
"device_model": "WYZEC1", | |
"isActive": true, | |
"lastRecordedEvent": "2024-09-01T12:30:45Z" | |
}, |
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
#!/bin/bash | |
############################################################################## | |
## | |
## File: quick_pr.sh | |
## Author: Randy | |
## Date: 2021-09-30 | |
## Description: Create and merge a PR in a agile way. Especially for testing ci/cd pipeline. | |
## Usage example: ./quick_pr.sh --runner 'github' --repo_path '/path/to/repo' --base_branch 'main' | |
## | |
## Required input parameters: |
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
#!/bin/bash | |
echo "name: $0" | |
echo "pwd: $(pwd)" |
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
1. Download Git Bash (only if on Windows) | |
2. Go to your users folder and open the .ssh folder. Then open Git Bash / Terminal there and generate a key pair: | |
ssh-keygen -m PEM -t rsa | |
3. Copy the key to your server: | |
ssh-copy-id -i <keyname> <user>@<host> | |
5. Login to your Ubuntu server via SSH: | |
ssh -i <keyname> <user>@<host> |
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
<!DOCTYPE html> | |
<html> | |
<head> | |
<meta charset="utf-8"> | |
<title>JS Bin</title> | |
<script src="https://cdnjs.cloudflare.com/ajax/libs/redux/3.6.0/redux.js"></script> | |
</head> | |
<body> | |
<div id="root"> | |
</div> |