Skip to content

Instantly share code, notes, and snippets.

View onlinejudge95's full-sized avatar
Those who say programming is no art, don't know the true meaning of it

onlinejudge95 onlinejudge95

Those who say programming is no art, don't know the true meaning of it
View GitHub Profile
onlinejudge95 /
Last active November 7, 2020 05:36
Setup your system
----------------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
onlinejudge95 /
Created December 12, 2019 06:53
Update your fork

1. Clone your fork 🍴


2. Add upstream as a remote

cd /path/to/fork
git remote add upstream{$UPSTREAM_USER_NAME}/{$UPSTREAM_REPO}.git
git fetch upstream

3. Pulling in upstream changes

git pull upstream master

dabeaz /
Created October 17, 2019 17:46
"Build Your Own Async" Workshop - PyCon India - October 14, 2019 -
# Async Producer-consumer problem.
# Challenge: How to implement the same functionality, but no threads.
import time
from collections import deque
import heapq
class Scheduler:
onlinejudge95 /
Last active December 17, 2019 13:06
Hello world in flask
from flask import Flask
app = Flask(__name__)
def hello():
return "Hello World!"
sarjarapu /
Created May 16, 2018 14:42
A bash script with MongoDB commands to create a user-defined role and a user.
mongo social --port 28000 -u user -p password --authenticationDatabase admin <<EOF
role: "readWriteMinusDropRole",
privileges: [
resource: { db: "social", collection: ""},
actions: [ "collStats", "dbHash", "dbStats", "find", "killCursors", "listIndexes", "listCollections", "convertToCapped", "createCollection", "createIndex", "dropIndex", "insert", "remove", "renameCollectionSameDB", "update"]} ],
roles: []
muhammadghazali / What is
Last active February 9, 2024 14:13
Nginx: What is server_names_hash_bucket_size?


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: