- mkdir blort
- cd blort
- npm init -y
- npm install --save react react-dom
- npm install --save-dev webpack babel-core babel-loader babel-preset-es2015 babel-preset-react
- touch .babelrc webpack.config.js
- mkdir -p public
- mkdir -p app
- touch app/App.jsx
- touch public/index.html
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
| { | |
| "children": [{ | |
| "children": [{ | |
| "name": "Celebrities \u0026 Entertainment News", | |
| "id": 184 | |
| }, { | |
| "children": [{ | |
| "name": "Animated Films", | |
| "id": 1104 | |
| }, { |
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
| # If you come from bash you might have to change your $PATH. | |
| # export PATH=$HOME/bin:/usr/local/bin:$PATH | |
| #Plugin 'valloric/youcompleteme' | |
| # Path to your oh-my-zsh installation. | |
| export ZSH=/Users/selva/.oh-my-zsh | |
| # Set name of the theme to load. Optionally, if you set this to "random" | |
| # it'll load a random theme each time that oh-my-zsh is loaded. | |
| # See https://github.com/robbyrussell/oh-my-zsh/wiki/Themes |
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
| #!/usr/bin/env bash | |
| MYSQL=`which mysql` | |
| DB_NAME="product" | |
| DB_USER="quietly_product" | |
| DB_PASSWORD=$(awk '$1 ~ /DB_PASSWORD/ {print $1 }' ./.env | sed "s/^DB_PASSWORD=\(.*\)$/\1/") | |
| DB_ADMIN_USER="quietly_admin" | |
| DB_ADMIN_PASSWORD=$(awk '$1 ~ /DB_ADMIN_PASSWORD/ {print $1 }' ./.env | sed "s/^DB_ADMIN_PASSWORD=\(.*\)$/\1/") |
wget https://bitbucket.org/ariya/phantomjs/downloads/phantomjs-2.1.1-linux-x86_64.tar.bz2
Check the download url for new verion from Phantomjs site
tar -xvzf phantomjs-2.1.1-linux-x86_64.tar.bz2
sudo add-apt-repository ppa:chris-lea/redis-server
Press ENTER to accept the repository.
sudo apt-get update
sudo apt-get install redis-server
To check redis is running (use sudo if necessary)
systemctl status redis-server
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
| <!DOCTYPE html> | |
| <html> | |
| <head> | |
| <script | |
| src="https://code.jquery.com/jquery-3.1.1.min.js" | |
| integrity="sha256-hVVnYaiADRTO2PzUGmuLJr8BLUSjGIZsDYGmIJLv2b8=" | |
| crossorigin="anonymous"></script> | |
| <script src="https://cdnjs.cloudflare.com/ajax/libs/lodash.js/4.17.4/lodash.min.js"></script> |
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
| Delete all migration files. Sometimes Migrations files are corrupted. | |
| find . -path "*/migrations/*.py" -not -name "__init__.py" -delete | |
| find . -path "*/migrations/*.pyc" -delete | |
| Delete and recreate the database if the migration is falied before. | |
| python manage.py makemigrations | |
| python manage.py migrate | |
| Now, delete the newly created migrations files too. |
NewerOlder