This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Install Node and Start Server | |
echo "===============================" | |
echo "|| Starting ||" | |
echo "===============================" | |
echo " " | |
echo "|| Updating ||" | |
sudo apt -qq update -y | |
echo " " | |
echo "|| Install nodejs ||" | |
curl -fsSL https://deb.nodesource.com/setup_16.x | sudo -E bash - |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
const express = require('express') | |
const app = express() | |
const port = 80 | |
app.get('/', (req, res) => { | |
res.send('India has won the match') | |
}) | |
app.post('/', (req, res) => { | |
res.send('Post /') |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# See this wiki page for more info: | |
# https://github.com/dylanaraps/neofetch/wiki/Customizing-Info | |
print_info() { | |
#info title | |
#info underline | |
info "OS\t\t" distro | |
info "Host\t" model | |
#info "Kernel" kernel | |
info "Uptime\t" uptime |