This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
mysql -Nse 'show tables' DATABASE_NAME | while read table; do mysql -e "truncate table $table" DATABASE_NAME; done |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
1. Linux user Group - Create a docker Group | |
groupadd docker | |
wget https://get.docker.com/builds/Linux/x86_64/docker-latest -O docker | |
chmod +x docker | |
Move the docker file to mv docker /usr/bin/ | |
gpasswd -a admin docker {admin can be any of your docker admin users} | |
2. Folder Structure | |
sudo mkdir -p /docker/var/lib | |
sudo chown root:docker -R /docker/ |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
1. First use the ohmyzsh from roby russel. [details at https://github.com/robbyrussell/oh-my-zsh] | |
wget --no-check-certificate http://install.ohmyz.sh -O - | sh | |
Close the iTerm Shell and start again. | |
2. Install vim pathogen. | |
mkdir -p ~/.vim/autoload ~/.vim/bundle && \ | |
curl -LSso ~/.vim/autoload/pathogen.vim https://tpo.pe/pathogen.vim | |
3. add the following line to .vimrc file and save it. | |
execute pathogen#infect() | |
4. |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
LARAVEL INSTALLATION WITH WINDOWS7/8 | |
1. Go to https://www.apachefriends.org/index.html and download XAMPP for Windows[latest version]. | |
2. Install the downloaded XAMPP server. | |
a. Antivirus warning ignore. Click yes. | |
b. Advisable to set User access control to Never Notify. | |
[Windows+R -> msconfig -> Tools -> Changes UAC Settings -> Never Notify] | |
A restart is required. | |
c. APACHE + MYSQL + PERL + PHP + PHPMYADMIN Minimum components should be selected for installation. |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
[A] VIRTUALENV | |
1. Open Terminal | |
2. sudo easy_install pip | |
3. sudo pip install virtualenv | |
4. sudo virtualenv {name of python virtual environment} | |
5. cd {virtual environment created} | |
6. source bin/activate | |
[B] DJANGO install & First Project Creation | |
1. pip install django | |
2. django-admin.py startproject {project name} [django-admin.py command will auto complete with a tab] |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<!-- | |
Author: Yogesh Kamat | |
Date: October 12, 2013. | |
Subject: Yeoman Basic Kickstart. | |
--> | |
Getting Started with Yeoman - Web App Workflow Development Tool. | |
To start with Yeoman we need: | |
1. nodejs |