git clone https://github.com/{$YOUR_USER_NAME}/{$YOUR_FORKED_REPO}.git
cd /path/to/fork
git remote add upstream https://github.com/{$UPSTREAM_USER_NAME}/{$UPSTREAM_REPO}.git
git fetch upstream
git pull upstream master
----------------Install vim---------------- | |
sudo apt update | |
sudo apt install --assume-yes vim | |
----------------Install wget---------------- | |
sudo apt update | |
sudo apt install --assume-yes wget | |
----------------Install snap---------------- | |
sudo apt update |
# aproducer.py | |
# | |
# Async Producer-consumer problem. | |
# Challenge: How to implement the same functionality, but no threads. | |
import time | |
from collections import deque | |
import heapq | |
class Scheduler: |
from flask import Flask | |
app = Flask(__name__) | |
@app.route("/") | |
def hello(): | |
return "Hello World!" | |
mongo social --port 28000 -u user -p password --authenticationDatabase admin <<EOF | |
db.createRole({ | |
role: "readWriteMinusDropRole", | |
privileges: [ | |
{ | |
resource: { db: "social", collection: ""}, | |
actions: [ "collStats", "dbHash", "dbStats", "find", "killCursors", "listIndexes", "listCollections", "convertToCapped", "createCollection", "createIndex", "dropIndex", "insert", "remove", "renameCollectionSameDB", "update"]} ], | |
roles: [] | |
} | |
); |
While I'm learning how to use Nginx, I was instructed to update the server_names_hash_bucket_size
(/etc/nginx/nginx.conf
) value from 32 to 64, but I don't understand why should I increase the value to 64.
References that have been read so far: