This document has now been incorporated into the uWSGI documentation:
http://uwsgi-docs.readthedocs.org/en/latest/tutorials/Django_and_nginx.html
Steps with explanations to set up a server using:
#!/bin/sh | |
sudo /usr/bin/sed -i.backup -E -e 's@/usr/lib/system/libsystem_symptoms.dylib(, )?@@' \ | |
$(grep -ril /usr/lib/system/libsystem_symptoms.dylib \ | |
/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.12.sdk/usr/lib) |
# interfaces(5) file used by ifup(8) and ifdown(8) | |
auto lo | |
iface lo inet loopback | |
#auto br0 | |
#iface br0 inet dhcp | |
# bridge_ports eth1 | |
# bridge_stp on | |
# bridge_fd 0 | |
auto br0 | |
iface br0 inet dhcp |
send_escape = false | |
last_mods = {} | |
control_key_handler = function() | |
send_escape = false | |
end | |
control_key_timer = hs.timer.delayed.new(0.15, control_key_handler) | |
control_handler = function(evt) |
It is due to the default missing hostname setting in macOS sierra 10.12
It is observed when installed clean..
sudo hostname [new name]
sudo scutil --set ComputerName [new name]
sudo scutil --set LocalHostName [new name]
sudo scutil --set HostName [new name]
dscacheutil -flushcache
$ ssh -M -S my-ctrl-socket -fnNT -L 50000:localhost:3306 [email protected]
$ ssh -S my-ctrl-socket -O check [email protected]
Master running (pid=3517)
$ ssh -S my-ctrl-socket -O exit [email protected]
Exit request sent.
When manually configuring authentication with any registry in Kubernetes (including Quay and Docker Hub) the following command is used to generate the Kubernetes registry-auth secret:
$ kubectl create secret docker-registry my-favorite-registry-secret --docker-username=giffee_lover_93 --docker-password='passphrases are great!' --docker-email='[email protected]' --docker-server=registry.example.io
secret "my-favorite-registry-secret" created
If you prefer you can store this in a YAML file by adding the --dry-run and -o yaml flag to the end of your command and copying or redirecting the output to a file:
#!/usr/bin/env python | |
# coding: utf-8 | |
""" | |
writeup | |
~~~~~~~ | |
Writeup the binary. | |
:copyright: (c) 2017 YingHao Chen | |
""" | |
def hello(name): |
tar czvf - *.json | ssh [email protected] "hadoop fs -put - /user/youbike/youbike_data.tar.gz" |