Skip to content

Instantly share code, notes, and snippets.

View bajpangosh's full-sized avatar
🛰️
Working from Moon

Bajpan Gosh bajpangosh

🛰️
Working from Moon
View GitHub Profile
@bajpangosh
bajpangosh / .sh
Created November 19, 2022 10:51
Setting Up Docker on Ubuntu 20.04 Focal (Arm64) Oracle Free
sudo apt-get -y install apt-transport-https ca-certificates curl software-properties-common
clear
curl -fsSL https://download.docker.com/linux/ubuntu/gpg | sudo apt-key add -
sudo apt-key fingerprint 0EBFCD88
lscpu
sudo add-apt-repository "deb [arch=arm64] https://download.docker.com/linux/ubuntu $(lsb_release -cs) stable"
sudo apt-get update
clear
apt-cache policy docker-ce
sudo apt-get -y install docker-ce
@bajpangosh
bajpangosh / CapRover.sh
Created May 3, 2024 18:10
CapRover Installation Script for Ubuntu 20.04, This gist contains a bash script for installing CapRover on Ubuntu 20.04. The script includes steps for Docker installation, domain verification, and CapRover setup. Each step is echoed for user readability. Please ensure to read and agree to the terms and conditions before running the script. Enjoy…
#!/bin/bash
# Update system packages
echo "Updating system packages..."
sudo apt update
# Install curl if not installed
echo "Installing curl..."
sudo apt install curl
@bajpangosh
bajpangosh / install_imagick.sh
Created June 16, 2024 12:18
a bash script that will install the ImageMagick library and the imagick extension for PHP 7.4 by default, with an option for the user to choose PHP 8.3. This script will handle the installation through PECL and ensure the correct permissions are set for the library.
Sure, here's a bash script that will install the ImageMagick library and the imagick extension for PHP 7.4 by default, with an option for the user to choose PHP 8.3. This script will handle the installation through PECL and ensure the correct permissions are set for the library.
```bash
#!/bin/bash
# Function to install imagick for a specified PHP version
install_imagick() {
PHP_VERSION=$1
PHP_BIN="/usr/local/lsws/lsphp${PHP_VERSION}/bin"
PHP_INI="/usr/local/lsws/lsphp${PHP_VERSION}/etc/php.ini"
@bajpangosh
bajpangosh / do-remove.sh
Last active December 26, 2024 14:41
de-domains.sh
#!/bin/bash
# Define directories for Nginx configuration
AVAILABLE_DIR="/etc/nginx/sites-available"
ENABLED_DIR="/etc/nginx/sites-enabled"
# Check if the directories exist
if [ ! -d "$AVAILABLE_DIR" ] || [ ! -d "$ENABLED_DIR" ]; then
echo "Error: Nginx configuration directories not found."
exit 1