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 February 1, 2025 17:52
Web server setup

Setting up your cloud server:

  1. Start an aws account, and start up an EC2 instance. Guide here
  2. Add HTTP, HTTPS, SSH to your inbound rules (allow 0.0.0.0/0 to access ports 80, 443, 22) 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 aws> 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>';