Install Python
$ brew install readline sqlite gdbm
$ brew install python --universal --framework
$ python --version
Python 2.7
Symlinks...
| require 'mina/git' | |
| require 'mina/rbenv' | |
| require 'mina-contrib/rbenv' | |
| require 'mina-contrib/config' | |
| require 'mina-contrib/bundler' | |
| require 'mina-contrib/safety-check' | |
| require 'mina-contrib/nginx' | |
| require 'mina-contrib/puma' | |
| set :term_mode, :pretty |
| require 'mina/git' | |
| require 'mina/rbenv' | |
| require 'mina-contrib/rbenv' | |
| require 'mina-contrib/config' | |
| require 'mina-contrib/bundler' | |
| require 'mina-contrib/safety-check' | |
| require 'mina-contrib/nginx' | |
| require 'mina-contrib/puma' | |
| set :term_mode, :pretty |
| #!/bin/bash | |
| NAME="hello_app" # Name of the application | |
| DJANGODIR=/webapps/hello_django/hello # Django project directory | |
| SOCKFILE=/webapps/hello_django/run/gunicorn.sock # we will communicte using this unix socket | |
| USER=hello # the user to run as | |
| GROUP=webapps # the group to run as | |
| NUM_WORKERS=3 # how many worker processes should Gunicorn spawn | |
| DJANGO_SETTINGS_MODULE=hello.settings # which settings file should Django use | |
| DJANGO_WSGI_MODULE=hello.wsgi # WSGI module name |
Install Python
$ brew install readline sqlite gdbm
$ brew install python --universal --framework
$ python --version
Python 2.7
Symlinks...
To use the most modern version of Postgres software we need to add postgresql repository. Edit /etc/apt/sources.list or create /etc/apt/sources.list.d/pgdg.list and add there a line: deb http://apt.postgresql.org/pub/repos/apt/ xenial-pgdg main
Then import the repository signing key, and update the package lists:
wget --quiet -O - https://www.postgresql.org/media/keys/ACCC4CF8.asc | sudo apt-key add -
sudo apt-get updateInstall a new version of PostgreSQL server.
sudo apt-get install postgresql-9.6Magic words:
psql -U postgresSome interesting flags (to see all, use -h or --help depending on your psql version):
-E: will describe the underlaying queries of the \ commands (cool for learning!)-l: psql will list all databases and then exit (useful if the user you connect with doesn't has a default database, like at AWS RDS)| # Install Bash 5 using homebrew | |
| # brew install bash | |
| # Or build bash 4 from source... | |
| curl -O http://ftp.gnu.org/gnu/bash/bash-4.4.18.tar.gz | |
| tar xzf bash-4.4.18.tar.gz | |
| cd bash-4.4.18 | |
| ./configure --prefix=/usr/local/bin && make && sudo make install | |
| # Add the new shell to the list of legit shells |
| function prompt_wikimatze_precmd { | |
| git-info | |
| } | |
| function prompt_wikimatze_setup { | |
| setopt LOCAL_OPTIONS | |
| unsetopt XTRACE KSH_ARRAYS | |
| prompt_opts=(cr percent subst) | |
| # Load required functions. |
| # This is a blocklist to block samsung smart tv's sending meta data at home. | |
| # Please help to collect domains! | |
| # It could be that the TV does not receive any more updates or other services no longer work. Please report such an incident. | |
| device-metrics-us.amazon.com | |
| samsungacr.com | |
| samsungcloudsolution.com | |
| samsungcloudsolution.net | |
| pavv.co.kr | |
| samsungotn.net |