zsh
terminal
Add these lines in your ~/.bash_profile
file
# Show current git branch name
parse_git_branch() {
git branch 2> /dev/null | sed -e '/^[^*]/d' -e 's/* \(.*\)/ (\1)/'
}
#!/bin/bash | |
set -euo pipefail | |
IFS=$'\n\t' | |
# Run this script without sudo | |
# bash script_name.sh | |
INSTALL_TMP_DIR=~/phpstorm-tmp | |
mkdir -p $INSTALL_TMP_DIR |
npm install -g npm
# Downgrade to a specific version
npm install -g npm@6
version: "3" | |
services: | |
postgres15: | |
image: 'nickblah/postgis:15-postgis-3' | |
container_name: postgres-15 | |
restart: unless-stopped | |
ports: | |
- "${FORWARD_PGSQL_PORT:-5432}:5432" | |
volumes: |
<?php | |
/* | |
Plugin Name: Power WP Tweaks | |
Plugin URI: http://ankurk91.github.io/ | |
Description: Some common tweaks to optimize WP Site | |
Version: 1.0 | |
Author: ankurk91 | |
Author URI: http://ankurk91.github.io/ | |
License: MIT | |
*/ |
sudo sh -c 'echo "deb http://apt.postgresql.org/pub/repos/apt $(lsb_release -cs)-pgdg main" > /etc/apt/sources.list.d/pgdg.list'
wget --quiet -O - https://www.postgresql.org/media/keys/ACCC4CF8.asc | sudo apt-key add -
sudo apt-get update