Skip to content

Instantly share code, notes, and snippets.

View alexcdot's full-sized avatar
🚀
Learning!

Alexander Cui alexcdot

🚀
Learning!
View GitHub Profile
@alexcdot
alexcdot / setup_notes.md
Last active January 18, 2023 04:30
Web server setup

Setting up your cloud server:

  1. Start an aws account, and start up an EC2 instance. Guide here
  2. Add HTTP to your inbound rules in your ec2 instance's security group. Guide here
  3. Connect to your ec2 instance with ssh with a command like this:

ssh -i <path to ssh key given to you from amazon> ubuntu@<public ip address of your server>

Set up nginx

(based on the guide here):

[
"ap-south-1a",
"ap-south-1b"
]
[
"eu-west-3a",
"eu-west-3b",
"eu-west-3c"
]
[
@alexcdot
alexcdot / alert.js
Last active May 14, 2018 09:22
Create a web chat bubble using just one javascript file
var jokesonyou = 1;
alert("loaded a script!");
document.body.innerHTML += '<h1>You loaded me</h1>';