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> | |
| <title>Remove rubberband scrolling from web apps on mobile safari (iOS)</title> | |
| <meta name="apple-mobile-web-app-capable" content="yes"> | |
| <meta name="apple-touch-fullscreen" content="yes"> | |
| <meta id="extViewportMeta" name="viewport" content="width=device-width, initial-scale=1.0, maximum-scale=1.0, minimum-scale=1.0, user-scalable=no"> | |
| <script type="text/javascript" src="http://code.jquery.com/jquery-1.6.4.min.js"></script> | |
| <style> | |
| html, body {margin: 0; padding: 0; overflow: hidden} |
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
| ## Commands are a mixture of server and Osx | |
| #tail | |
| - display a set a few lines at the end of the file | |
| tail -f /var/log/nginx/error.log | |
| tail -f /var/log/nginx/access.log | |
| #vim | |
| vim /etc/nginx/sites-available/default |
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
| ##PM2 | |
| -Production process manager for Node.js applications with a | |
| built-in load balancer http://pm2.keymetrics.io/ | |
| https://github.com/Unitech/pm2 | |
| #Cheat sheet | |
| http://pm2.keymetrics.io/docs/usage/quick-start/#cheat-sheet | |
| # Common | |
| $ pm2 stop <app_name|id|'all'|json_conf> |
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
| # Install latest Eclipse | |
| - Mars 4.5.1 | |
| https://eclipse.org/downloads/ | |
| # Install PyDev 4.5 (http://www.pydev.org/manual_101_root.html) | |
| http://www.pydev.org/manual_adv_django.html | |
| http://eclipse.kacprzak.org/ | |
| In Eclipse menu click on 'Help > Install New Software' and enter | |
| 'http://pydev.org/updates' with name. PyDev will contain the Django ready plugins |
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
| http://patorjk.com/software/taag/#p=testall&f=3D%20Diagonal&t=XTOPOLY |
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
| """ | |
| Django settings for YamahaDealer project. | |
| For more information on this file, see | |
| https://docs.djangoproject.com/en/1.6/topics/settings/ | |
| For the full list of settings and their values, see | |
| https://docs.djangoproject.com/en/1.6/ref/settings/ | |
| """ |
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
| import os | |
| def setup_env(): | |
| # Environment and Operation Setup | |
| os.environ['DEPLOYMENT_TYPE'] = 'dev' # can be dev, stg or prd | |
| # Hosts | |
| os.environ['ALLOWED_HOSTS'] = "*" |
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
| ## Local Developement | |
| #install osx library dependecies for | |
| ## freetype errors | |
| --- freetype error: | |
| If you get a freetype error in OSX. | |
| _imagingft.c:73:10: fatal error: 'freetype/fterrors.h' file not found | |
| #include <freetype/fterrors.h> | |
| ^ |
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 | |
| ##Follow virtualenv gist | |
| https://gist.github.com/cezr/b986b69e6fbdffb8eb3d | |
| #2 | |
| ## Quick Install ## | |
| On Ubuntu 12.04, the following requirements will satisfy the project's system components: | |
| sudo aptitude install libapache2-mod-wsgi | |
| sudo apt-get install libmysqlclient-dev |
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
| ##Server requirments | |
| - Web Server (public access) | |
| - Python 2.7 (available by default in Ubuntu >12.04 or via manual installation) | |
| - MySQL > 5.1 with access to a single database | |
| - PIP Python module (for installing Django and any additional packages) | |
| - Python Virtual env (not required, but highly recommended) | |
| - Read more: http://docs.python-guide.org/en/latest/dev/virtualenvs/ | |
| - Apache web server with mod_wsgi | |
| - Read more: https://docs.djangoproject.com/en/1.6/howto/deployment/wsgi/modwsgi/ |