The twelve-factor app Checklist Explained
| ✓ | Factors | Status | Remarks | |----|-----------------------------------------------
| ✓ | Factors | Status | Remarks | |----|-----------------------------------------------
sudo apt-get install git-core git-svn ruby
sudo gem install svn2git
svn log --quiet | grep -E "r[0-9]+ \| .+ \|" | cut -d'|' -f2 | sed 's/ //g' | sort | uniq > authors.txt (this command is for mapping the authors)
- Above step should be performed in the folder that you are going to convert from svn to git.
>- Add one mapping per line in authors.txt like this
Rabbitmq-auth-backend-ip-range link is community plugin for client authorization based on source IP address. With this community plugin, we can restrict access to client on the basis of IP address
Steps To configure plugin in rabbitmq version 3.6.X
rabbitmq-plugins enable rabbitmq_auth_backend_ip_range
The Zen of Python is a collection of 20 software principles that influence the design of Python Programming Language, only 19 of which were written down around June 1999 by Tim Peters. You can find the list of Zen of Python in any python interpreter just fire a command - import this
To better understand this suppose the editor is your canvas and your code is your art, then how much effort you will put in so that someone will call you an artist. According to Somya Ghosh(Random Quora answer) Rather than using && or|| as logical operators, consider using and || or, if it works && is readable to you.
if ( a && b == 0 || s == 'yes')
Versus
if a and b == 0 or s == 'yes':
npm install socket.io-client |
pip install flask | |
pip install flask-socketio | |
pip install eventlet | |
pip install gunicorn |
from flask import Flask, render_template | |
from flask_socketio import SocketIO | |
# Initializing the flask object | |
app = Flask(__name__) | |
# Initializing the flask-websocketio | |
app.config['SECRET_KEY'] = 'secret!' | |
socketio = SocketIO(app) |
<script type="text/javascript" src="https://cdnjs.cloudflare.com/ajax/libs/socket.io/1.4.8/socket.io.min.js"></script> | |
<script type="text/javascript" charset="utf-8"> | |
const socket = io('http://localhost:5000') | |
socket.on('connect', () => { | |
console.log("socket connected"); | |
}); | |
</script> |
broker_url = "{}://{}:{}@{}:{}/{}".format( | |
broker_protocol, | |
broker_username, | |
broker_password, | |
broker_host, | |
broker_port, | |
broker_vhost) | |
worker_send_task_event = False | |
task_ignore_result = True |
broker_url = "{}://{}:{}@{}:{}/{}".format( | |
broker_protocol, | |
broker_username, | |
broker_password, | |
broker_host, | |
broker_port, | |
broker_vhost) | |
worker_send_task_event = False | |
task_ignore_result = True |