Skip to content

Instantly share code, notes, and snippets.

@nimeshpahadi
nimeshpahadi / postgresql & phppgadmin
Last active March 10, 2017 12:44
install & setup
# Add PostgreSQL Apt Repository
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 -q https://www.postgresql.org/media/keys/ACCC4CF8.asc -O - | sudo apt-key add -
# Install PostgreSQL
sudo apt-get update
sudo apt-get -y install postgresql postgresql-contrib phppgadmin
# Configure PostgreSQL user
sudo su - postgres
psql
# change the password for postgres role
@nimeshpahadi
nimeshpahadi / laravel install
Created March 10, 2017 07:49
installing laravel in zsh shell
# Install laravel installer
composer global require "laravel/installer"
# Edit environment config
nano .zshrc
# Then add
export PATH="$PATH:$HOME/.config/composer/vendor/bin"
# Then reload path config
source ~/.zshrc
@nimeshpahadi
nimeshpahadi / android-studio & jdk
Created March 3, 2017 13:03
install android-studio with jdk 8
# installing java
sudo add-apt-repository ppa:webupd8team/java
sudo apt-get update
sudo apt-get install oracle-java8-installer
sudo apt-get install oracle-java8-set-default
# installing android studio
# download android-studio from https://developer.android.com/studio/index.html
# extract the archive file into an appropriate location
sudo unzip android-studio-ide-141.2178183-linux.zip -d /opt
# to launch Android Studio
@nimeshpahadi
nimeshpahadi / sylius
Last active March 6, 2017 06:56
install sylius with npm & gulp
# Download through composer
composer create-project -s beta sylius/sylius-standard acme (--project name)
# follw the default instruction and enter
# Move to the newly created directory
cd --directory name
php bin/console sylius:install
# install nodejs & npm using a PPA
sudo apt-get install python-software-properties
curl -sL https://deb.nodesource.com/setup_7.x | sudo -E bash -
sudo apt-get install nodejs
@nimeshpahadi
nimeshpahadi / oh my zsh
Created February 26, 2017 06:20
install oh my zsh and make default shell
sudo apt-get install zsh
sudo apt-get install git-core
wget https://github.com/robbyrussell/oh-my-zsh/raw/master/tools/install.sh -O - | zsh
# change your default shell to zsh
chsh -s `which zsh`
# then restart
sudo shutdown -r 0
@nimeshpahadi
nimeshpahadi / warning target packages
Created February 26, 2017 05:57
main/binary-amd64/Packages -> configured multiple times in /etc/apt/sources.list.d
# Navigated to /etc/apt/sources.list.d/
cd /etc/apt/sources.list.d/
# Edited google.list by invoking
eg: sudo nano google.list
# Commented out the source with a '#'
# Save and run
sudo apt-get update
@nimeshpahadi
nimeshpahadi / docker installation permission & set up
Last active February 15, 2017 06:43
permission setup after docker-compose build
# path of sylius project in .env file symfony_app_path
docker-compose build
docker-compose up -d
docker network inspect bridge | grep Gateway
sudo echo "171.17.0.1 rudraksha.dev" >> /etc/hosts
cat /etc/hosts
# Update app/config/parameters.yml
parameters:
database_host: db
database_password: root