Skip to content

Instantly share code, notes, and snippets.

View gmhafiz's full-sized avatar

Hafiz Shafruddin gmhafiz

View GitHub Profile
import java.util.Scanner;
class EnterTestScores {
public static void main (String[] args){
Scanner scanner = new Scanner (System.in);
String reply;
int n = 0;
double score;
Student[] students = new Student[50];
for (int i=0; i<50; i++){
$ git push heroku master
Counting objects: 667, done.
Delta compression using up to 4 threads.
Compressing objects: 100% (570/570), done.
Writing objects: 100% (667/667), 8.07 MiB | 92.00 KiB/s, done.
Total 667 (delta 157), reused 0 (delta 0)
remote: Compressing source files... done.
remote: Building source:
remote:
remote: -----> Go app detected
@gmhafiz
gmhafiz / gist:8fbee58508bcd8c30ecd24f7018d0aa6
Last active July 26, 2023 03:31
reverse proxy vue using nginx
1. Add a custom DNS entry
# File: /etc/hosts
127.0.0.1 site.test
2. In nginx conf file, tell it to reverse proxy all requests from site.test to http://localhost:3000
# File: /etc/nginx/sites-enabled/site.conf
server {