time.google.com
time1.google.com
time2.google.com
time3.google.com
| pg_ctl -D /usr/local/var/postgres start |
| ALTER USER 'root'@'localhost' IDENTIFIED WITH mysql_native_password BY 'password'; |
| # Install psycopg2 on macOS | |
| export LDFLAGS="-L/usr/local/opt/[email protected]/lib" | |
| export CPPFLAGS="-I/usr/local/opt/[email protected]/include" | |
| export PKG_CONFIG_PATH="/usr/local/opt/[email protected]/lib/pkgconfig" | |
| pip install psycopg2 |
| # Command for running Postgres on macOS installed with Homebrew | |
| pg_ctl -D /usr/local/var/postgres start |
| server { | |
| listen 80; | |
| server_name example.org; | |
| access_log /var/log/nginx/example.access.log; | |
| error_log /var/log/nginx/example.error.log; | |
| location / { | |
| proxy_set_header X-Real-IP $remote_addr; | |
| proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for; | |
| proxy_set_header X-Forwarded-Proto $scheme; |
| # /etc/systemd/system/gunicorn.service | |
| # sudo systemctl enable gunicorn | |
| # sudo systemctl daemon-reload | |
| # sudo service gunicorn restart | |
| Description=gunicorn daemon | |
| Requires=gunicorn.socket | |
| After=network.target | |
| [Service] |
| gunicorn --bind=127.0.0.1:8000 --workers=4 --worker-class=gevent --threads=8 --worker-connections=100000 --timeout=63 --keep-alive=60 django_project.wsgi |
| # Created by https://www.toptal.com/developers/gitignore/api/python,pythonvanilla,visualstudiocode,pydev,pycharm | |
| # Edit at https://www.toptal.com/developers/gitignore?templates=python,pythonvanilla,visualstudiocode,pydev,pycharm | |
| ### PyCharm ### | |
| # Covers JetBrains IDEs: IntelliJ, RubyMine, PhpStorm, AppCode, PyCharm, CLion, Android Studio, WebStorm and Rider | |
| # Reference: https://intellij-support.jetbrains.com/hc/en-us/articles/206544839 | |
| # User-specific stuff | |
| .idea/**/workspace.xml |
Here is a high level overview for what you need to do to get most of an Android environment setup and maintained.
Prerequisites (for Homebrew at a minimum, lots of other tools need these too):
xcode-select --install will prompt up a dialog)Install Homebrew:
ruby -e "$(curl -fsSL https://raw.github.com/Homebrew/homebrew/go/install)"