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 | |
# Get current IP | |
ip_address=$(curl icanhazip.com) | |
echo $ip_address | |
# Check if IP Address matches last known IP | |
FILE=/home/pi/scripts/ip.txt |
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
/* | |
GET /sections/<sectionId> | |
*/ | |
// Headers | |
Authentication: Bearer <accessToken> // Required for all OAuth Requests | |
// Response |
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
/* | |
POST /organizations/<subOrgId>/sections | |
*/ | |
// Headers | |
Authentication: Bearer <accessToken> // Required for all OAuth Requests | |
// Request Params | |
{ |
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
/* | |
POST /organizations/<AtiOrgId>/sub-organizations | |
*/ | |
// Headers | |
Authentication: Bearer <accessToken> // Required for all OAuth Requests | |
// Request Params | |
{ |
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
/* | |
POST /oauth/access-token | |
*/ | |
// Request Parameters | |
{ | |
"clientId": "asdf123", // String | |
"clientSecret": "asdf123", // String | |
"username": "AtiMachineUser", // String; Org Admin Username within ApprenNet | |
"password": "Password123" // String; Org Admin Password |
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
{"users":[ | |
{ | |
"id":"4e663844e049bd3331000011", | |
"first_name":"User", | |
"last_name":"Number 7" | |
}, | |
... | |
] | |
} |
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
{ | |
"reviewables": [ | |
{ | |
"user": { | |
"id": "4e4c05b8e049bd2e83000007", | |
"first_name": "User", | |
"last_name": "Number 3" | |
}, | |
"mini_meet_id": "532895bd96ce8969e10001b1", | |
"submission_id": null, |
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
// GET [api]org/:org_id/review_assignments/:context_id?context=meet&context_id=5321a678374c100b81000013 | |
{ | |
"review_assignment_contexts": | |
[ | |
{ | |
"id": "5321a678374c100b81000013", | |
"user_assigned": { | |
// User Serializer | |
}, | |
"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
{ | |
"organizations": [ | |
{ | |
"id": "5305f2e3105e12be5900003d", | |
"name": "Jason Blanchard", | |
"description": null, | |
"paid_status": true | |
}, | |
{ | |
"id": "5305f3cd105e12be59000061", |
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
case $1 in | |
deploy) | |
docker run -it --rm -e "AWS_ACCESS_KEY_ID=$(printenv AWS_ACCESS_KEY_ID)" -e "AWS_SECRET_ACCESS_KEY=$(printenv AWS_SECRET_ACCESS_KEY)" -v ~/.ssh:/host-ssh apprennet/orchestrate /bin/bash -c \ | |
"cp /host-ssh/* /root/.ssh/ && chmod 400 /root/.ssh/* && ruby tasks/trigger_deploy_pull.rb $2" | |
;; | |
status) | |
docker run -it --rm -e "AWS_ACCESS_KEY_ID=$(printenv AWS_ACCESS_KEY_ID)" -e "AWS_SECRET_ACCESS_KEY=$(printenv AWS_SECRET_ACCESS_KEY)" -v ~/.ssh:/host-ssh apprennet/orchestrate /bin/bash -c \ | |
"watch -n 3 ruby tasks/container_status.rb $2" | |
;; | |
shell) |
NewerOlder