In this post, we will set up a private PyPI server using the pypiserver Docker image, which will be wrapped by NGINX for caching and performance.

Image for post
Image for post
Photo by Spencer Judd on Unsplash

What is PyPI?

Docker Setup


Image for post
Image for post


Image for post
Image for post
Image credit: plotplot | Shutterstock.com
$ python3
Python 3.9.0 (default, Dec 6 2020, 18:02:34)
[Clang 12.0.0 (clang-1200.0.32.27)] on darwin
Type "help", "copyright", "credits" or "license" for more information.
>>> ~True
-2
>>> type(True)
<class 'bool'>
>>> isinstance(True, int)
True
>>> True == 1…


Image for post
Image for post
Photo by Park Troopers on Unsplash

What is OAuth 2.0?

  1. Your application asks…


  • 8 is a power of two = 2³
  • 12 is not a power of two since there exists no x such that 2^x = 8
  • 32 is a power of two = 2⁵
Image for post
Image for post
Image by Matt Artz on Unsplash


The simplest container setup imaginable. Start here

Building’s foundation
Building’s foundation
Photo by Mirko Blicke on Unsplash.
Simple Flask application
Dockerfile
docker build -t flask/hello-world .
docker run -p 8003:8003 flask/hello-world
$ curl localhost:8003
Hello world!

Running With Local K8s via Minikube


Figure out which commit introduced that new bug

Binoculars facing a lake
Binoculars facing a lake
Image By Shane Hauser on Unsplash.

“git-bisect — Use binary search to find the commit that introduced a bug” — Git’s official docs

git commit --allow-empty -m 'good commit 1' git commit --allow-empty -m 'good commit 2' git commit --allow-empty -m 'good commit 3' git commit --allow-empty -m 'good commit 4' git commit --allow-empty -m 'good commit 5' git commit --allow-empty -m 'good commit 6' git commit --allow-empty -m 'BAD COMMIT' git commit --allow-empty -m 'good…


A brief overview of the Unicode system, UTF, ASCII, and encoding

stuffed toys in the shape of emojis
stuffed toys in the shape of emojis
Photo By Kelvin Yan on Unsplash

Unicode


Image for post
Image for post
Photo By Glen Noble on Unsplash


Reduce the time you spend typing full-length commands and prevent annoying typos when using the kubectl command

Info on kubectl with the Kubernetes logo.
Info on kubectl with the Kubernetes logo.
Photo by the author.

Maroun Maroun

Software engineer | Music geek | Beer lover

Get the Medium app

A button that says 'Download on the App Store', and if clicked it will lead you to the iOS App store
A button that says 'Get it on, Google Play', and if clicked it will lead you to the Google Play store