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
const AWS = require("aws-sdk"); | |
// api key etc will be take from .env | |
AWS.config.update({ region: process.env.AWS_REGION }); | |
const sqs = new AWS.SQS({ apiVersion: "2012-11-05" }); | |
const pushToQueue = (message) => { | |
return new Promise((resolve, reject) => { | |
sqs.sendMessage( |
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
const API_URL = "https://randomuser.me/api/"; | |
fetch(API_URL) | |
.then((response) => response.json()) | |
.then((data) => { | |
const imageUrl = data.results[0].picture.large; | |
const name = data.results[0].name.first + " " + data.results[0].name.last; | |
const img = document.createElement("img"); | |
img.src = imageUrl; |
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
cd /Users/<YourPCUserGoesHere>/Downloads | |
echo "-----BEGIN PUBLIC KEY----- | |
MIIBIjANBgkqhkiG9w0BAQEFAAOCAQ8AMIIBCgKCAQEArtg7hyD6v1o/THawDHld | |
PXoJ94bWqNmJ2c1C0VCE12XvjW4DhqVovsCwUsK+ESs9EV+XQ4iSoitg8XVohJUO | |
IA7VxvtzkcnJNZZBhm/jGrI3HS90OVINg/L+TckjtN5pMo/76D9TCxPfdAPXcT9f | |
p9BlGRBQnWEKPVFY+ZMp48yH2rhWpPjgst/Enj9cDPZ8RX1CRyzYzpREpkJSjbpM | |
wHKsQTeyauBouU3b1UZHhWirp+iS/aUwUJwOAild2rxho0Njx19Kwib/yvhLH6La | |
6RhZwVkNYzeUEHm92edORAjmb/uNAeI5wzYRF73OaNseBY1rL7K8mdcoSGcCalLK | |
YwIDAQAB |
This file has been truncated, but you can view the full file.
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
[ | |
{ | |
"country": "AF", | |
"cities": [ | |
"Andkhoy", | |
"Asadabad", | |
"Ashkāsham", | |
"Aībak", | |
"Baghlān", | |
"Balkh", |