Skip to content

Instantly share code, notes, and snippets.

View AxeemHaider's full-sized avatar

Azeem Haider AxeemHaider

View GitHub Profile
@AxeemHaider
AxeemHaider / .bashrc
Last active June 13, 2022 09:51
Show Git branches and status in Ubuntu Terminal
# Adds the current branch to the bash prompt when the working directory is
# part of a Git repository. Includes color-coding and indicators to quickly
# indicate the status of working directory.
git_branch() {
# -- Finds and outputs the current branch name by parsing the list of
# all branches
# -- Current branch is identified by an asterisk at the beginning
# -- If not in a Git repository, error message goes to /dev/null and
@AxeemHaider
AxeemHaider / lampp_config.md
Last active October 3, 2023 09:35
Install and Config Lampp on Ubuntu

Prerequisites

sudo apt update

Install Apache

Config file /etc/apache2/apache2.conf

sudo apt install apache2
@AxeemHaider
AxeemHaider / .prettierrc
Created May 28, 2022 09:20
Prettier Default config
{
"arrowParens": "always",
"embeddedLanguageFormatting": "auto",
"endOfLine": "lf",
"printWidth": 80,
"proseWrap": "preserve",
"quoteProps": "as-needed",
"semi": true,
"singleQuote": false,
"tabWidth": 2,
@AxeemHaider
AxeemHaider / settings.json
Created May 28, 2022 09:48
VsCode default settings
{
"editor.formatOnSave": true,
"editor.defaultFormatter": "esbenp.prettier-vscode",
"eslint.enable": true,
"eslint.alwaysShowStatus": true,
"eslint.validate": ["javascript", "typescript"]
}
@AxeemHaider
AxeemHaider / migrate.sh
Created August 15, 2024 11:38 — forked from Geczy/migrate.sh
Migrate Coolify to a new server
#!/bin/bash
# This script will backup your Coolify instance and move everything to a new server. Docker volumes, Coolify database, and ssh keys
# 1. Script must run on the source server
# 2. Have all the containers running that you want to migrate
# Configuration - Modify as needed
sshKeyPath="$HOME/.ssh/your_private_key" # Key to destination server
destinationHost="server.example.com"