Skip to content

Instantly share code, notes, and snippets.

View upbeta01's full-sized avatar

Neil Hermosilla upbeta01

  • Cebu, PH
  • 09:43 (UTC +08:00)
  • X @upbeta
View GitHub Profile
[[ 9 15]
[-2 2]]
upstream containers {
server 0.0.0.0:9000;
server 0.0.0.0:9001;
server 0.0.0.0:9002;
server 0.0.0.0:9003;
}
server {
listen 80;
server_name hostname;
#!/bin/bash
docker image prune -a -f
eval $(aws ecr get-login --no-include-email --region us-west-2)
j=0
for i in {9000..9003}
do
PORT=$i
COUNT=$((j++))
FROM node:16
WORKDIR /usr/src/app
COPY . .
RUN npm install
RUN npm run build
EXPOSE YOUR_PORT
CMD [ "npm", "run", "serve"]
@upbeta01
upbeta01 / xmas-carol.rs
Last active April 6, 2022 07:27
RustLang: 12 Days of Christmas
// File: main.rs
fn main() {
// This code prints the lyrics of the song: "The Twelve Days of Christmas"
// Sing with me with these lines of code!
let mut count = 0;
let mut item_checkout: Vec<&str> = Vec::new();
let days: [&str; 12] = [
"1st", "2nd", "3rd", "4th", "5th", "6th", "7th", "8th", "9th", "10th", "11th", "12th",
];
@upbeta01
upbeta01 / keybase.md
Created July 18, 2022 12:44
keybase.md

Keybase proof

I hereby claim:

  • I am upbeta01 on github.
  • I am upbeta01 (https://keybase.io/upbeta01) on keybase.
  • I have a public key ASA3d-gtyDk-k3omqag_Zo7Ob5qXY9FSvDKejmR967K-BAo

To claim this, I am signing this object: