Skip to content

Instantly share code, notes, and snippets.

View GooDeeJAY's full-sized avatar
Hacking Pentagon

Jasur Yusupov GooDeeJAY

Hacking Pentagon
View GitHub Profile
GooDeeJAY /
Last active October 30, 2023 12:21
Docker Certbot

Docker Certbot obtain SSL Certificate

Starting Nginx Server

Create nginx.conf file:

server {
  listen 80;
GooDeeJAY / ohmyposh_profile.json
Last active September 7, 2022 18:23
OhMyPosh Profile
"$schema": "",
"blocks": [
"alignment": "left",
"segments": [
"background": "#7f39db",
"foreground": "#ffffff",
"leading_diamond": "\ue0b6",
GooDeeJAY /
Last active August 3, 2022 06:20
Creative and fun ways of generating random numbers

Fun and creative ways of generating random numbers in python

Here I'm going to show some creative and fun ways of generating random numbers without using random package in python.

Example 1 - Generating random number in range 0-9

When we call time() function of the package time, it returns floating point number - current time in seconds since the Epoch:

>>> time.time()