Skip to content

Instantly share code, notes, and snippets.

View RizkyRajitha's full-sized avatar

Rajitha Gunathilake RizkyRajitha

View GitHub Profile
@RizkyRajitha
RizkyRajitha / test.yml
Last active October 15, 2024 16:33
GitHub action workflow for test , using PostgreSQL database service container .
name: Running Tests
on: [push]
jobs:
Test:
runs-on: ubuntu-latest
services:
postgres:
@RizkyRajitha
RizkyRajitha / nginx.conf
Created January 22, 2021 15:22
load balancing nginx config
http {
upstream all {
server localhost:8081;
server localhost:8080;
}
server{
listen 80;
@RizkyRajitha
RizkyRajitha / nginx.conf
Last active January 22, 2021 15:23
nginx path based routing config
events {
}
http {
server{
listen 80;
proxy_set_header Host $host;
const express = require("express");
const app = express();
const cors = require("cors");
const bp = require("body-parser");
const fetch = require("node-fetch");
app.use(cors());
app.use(bp.urlencoded({ extended: false }));
app.use(bp.json());
app.use(require("morgan")("dev"));
const express = require("express");
const app = express();
const port = process.env.PORT || 3001;
const bodyParser = require("body-parser");
app.use(bodyParser.urlencoded({ extended: false }));
app.use(bodyParser.json());
fread = open("e_so_many_books.txt", "r")
# print(fread.read())
librarylist = []
basicData = fread.readline()
line2 = fread.readline()
print(basicData[2])
print(line2)
sudo apt update
sudo apt install default-jre
sudo apt install default-jdk
sudo apt install openjdk-8-jdk
const express = require("express");
const bp = require("body-parser");
const port = 5000;
const app = express();
const fs = require("fs");
const multer = require("multer");
app.use(bp.urlencoded({ extended: false }));
app.use(bp.json());
const express = require("express");
const bp = require("body-parser");
const port = 5000;
const app = express();
const multer = require("multer");
app.use(bp.urlencoded({ extended: false }));
app.use(bp.json());
const express = require("express");
const bp = require("body-parser");
const port = 5000;
const app = express();
app.use(bp.urlencoded({ extended: false }));
app.use(bp.json());
app.use(require("morgan")("dev"));