Skip to content

Instantly share code, notes, and snippets.

View alokraj68's full-sized avatar
🏠
Working from home

Alok Rajasukumaran alokraj68

🏠
Working from home
View GitHub Profile
@alokraj68
alokraj68 / delete-node-modules.md
Created June 29, 2024 10:28 — forked from srdjanRakic/delete-node-modules.md
How to Delete ALL node_modules folders on your machine

List all node_modules found in a Directory:

First, let's take a look at ALL the node_modules we have in a directory, before we actually start deleting them!

Mac / Linux:

cd documents
find . -name "node_modules" -type d -prune -print | xargs du -chs
@alokraj68
alokraj68 / add_swap.sh
Last active December 21, 2024 17:17 — forked from mommi84/add_swap.sh
Add swap memory on Ubuntu
#!/usr/bin/env bash
#
# USAGE:
# sudo ./add_swap.sh 8G
#
# SOURCE:
# https://linuxize.com/post/how-to-add-swap-space-on-ubuntu-18-04/
#
fallocate -l $1 /swapfile
chmod 600 /swapfile
#!/bin/sh
# Install node and npm via nvm - https://github.com/nvm-sh/nvm
# Run this script like - bash script-name.sh
# Install nvm
curl -o- https://raw.githubusercontent.com/nvm-sh/nvm/v$INSTALL_NVM_VER/install.sh | bash
# Make nvm command available to terminal
source ~/.nvm/nvm.sh
@alokraj68
alokraj68 / README.md
Last active May 30, 2020 19:06 — forked from hasanbayatme/README.md
Easy to use Bash Script to Install LAMP stack on Ubuntu.

Installation

Automatic

Run the below command in terminal:

wget --no-cache -O - https://gist.githubusercontent.com/alokraj68/865ff6b08ffc930542f1675e679aba8f/raw/67f26c3cdbb0bf2d47c034ab78cc67df5d899a78/install-lamp.sh | bash
@alokraj68
alokraj68 / LEMP.sh
Created May 30, 2020 18:43
LEMP Install Ubuntu
#!/bin/sh
sudo apt-get update
sudo apt-get upgrade
lsb_release -a
#Install NGINX
sudo apt-get install nginx
@alokraj68
alokraj68 / lamp.sh
Created May 30, 2020 18:43
LAMP Stack Setup
# Install Apache to check from web browser using 0.0.0.0 or localhost, check version, start,stop & restart Apache into Ubuntu
sudo apt update
sudo apt upgrade
sudo apt install apache2
apache2 -v
sudo service apache2 start
sudo systemctl enable apache2
sudo service apache2 stop
sudo service apache2 start
sudo service apache2 restart
@alokraj68
alokraj68 / lamp.sh
Created May 30, 2020 18:17 — forked from aamnah/lamp.sh
Bash script to install Apache, MySQL and PHP as well as PHPMyAdmin and some tweaks. For Debian and Ubuntu. To run, copy the script to the server and run ``bash lamp.sh``
#!/bin/sh
#######################################
# Bash script to install an AMP stack and PHPMyAdmin plus tweaks. For Debian based systems.
# Written by @AamnahAkram from http://aamnah.com
# In case of any errors (e.g. MySQL) just re-run the script. Nothing will be re-installed except for the packages with errors.
#######################################
#COLORS
@alokraj68
alokraj68 / create_ftp_user.sh
Created May 30, 2020 12:28 — forked from bbrothers/create_ftp_user.sh
Bash for creating vsftp users
#!/bin/bash
# Create ftp user, create folders and set permissions
# Shamelessly coppied from http://dev.n0ise.net/2012/09/vsftpd-add-user-automation-bash-script/
# Usage: ./create_ftp_user.sh [username] "[password]"
#
NAME=$1
PASS=$2
@alokraj68
alokraj68 / Iron-Man-Login-Form.markdown
Created March 12, 2015 06:51
Iron Man Login Form
@alokraj68
alokraj68 / Jquery-UI-DatePicker-Dark-Style.markdown
Created March 6, 2015 12:14
Jquery UI DatePicker Dark Style