Skip to content

Instantly share code, notes, and snippets.

View sssanjaya's full-sized avatar
:octocat:
Working from home

Sanjay Hona sssanjaya

:octocat:
Working from home
View GitHub Profile
@sssanjaya
sssanjaya / simple-docker-nodejs-app.md
Last active August 9, 2019 07:45
A simple docker setup for nodejs application

STEP 1: Creating simple nodejs hello world app

Assuming that nodejs installed on your system.

Installation

create new directory and initialize npm:

mkdir nodejs-hello
@sssanjaya
sssanjaya / sonarqube-docker-compose.yml
Created August 23, 2021 10:10 — forked from Warchant/sonarqube-docker-compose.yml
docker-compose file to setup production-ready sonarqube
version: "3"
services:
sonarqube:
image: sonarqube
expose:
- 9000
ports:
- "127.0.0.1:9000:9000"
networks:
@sssanjaya
sssanjaya / MANUAL.md
Created September 13, 2021 08:07 — forked from kimyvgy/MANUAL.md
Deploy nodejs app with gitlab.com and pm2

Deploy nodejs app with gitlab.com and pm2

This manual is about setting up an automatic deploy workflow using nodejs, PM2, nginx and GitLab CI. It is tested on:

  • Target server: Ubuntu 16.04 x64. This is suitable for Ubuntu 14.x.
  • Windows 10 on my PC to work.
@sssanjaya
sssanjaya / clean.sh
Created January 10, 2022 09:58 — forked from Iman/clean.sh
Free up disk space on Ubuntu - clean log, cache, archive packages/apt archives, orphaned packages, old kernel and remove the trash
#!/bin/sh
#Check the Drive Space Used by Cached Files
du -sh /var/cache/apt/archives
#Clean all the log file
#for logs in `find /var/log -type f`; do > $logs; done
logs=`find /var/log -type f`
for i in $logs