Skip to content

Instantly share code, notes, and snippets.

View jzr-supove's full-sized avatar
👨‍💻
Hacking Pentagon

Jasur Yusupov jzr-supove

👨‍💻
Hacking Pentagon
View GitHub Profile
@jzr-supove
jzr-supove / README.md
Last active February 26, 2025 10:00
Obsidian QuickAdd Modal for Adding Words to Vocabulary

Obsidian QuickAdd Modal for Adding Words to Vocabulary

🟡 Prerequisites

  • You should have QuickAdd and Spaced Repetition plugins installed on your Obsidian
  • In the script, change the flashcardsFolder value to the folder where you store your flashcards (default "Flashcards");
    • Folder should have at least one file where you store your flashcards


🟢 Installation

@jzr-supove
jzr-supove / docker_certbot.md
Last active October 30, 2023 12:21
Docker Certbot

Docker Certbot obtain SSL Certificate

Starting Nginx Server

Create nginx.conf file:

server {
  listen 80;
 server_name your_domain.uz;
@egyleader
egyleader / fast_internet.sh
Last active January 30, 2025 06:00
Limit network bandwidth in linux using wondershaper
#!/bin/bash
sudo wondershaper -c -a wlp2s0
echo speed limit removed
@tylermorganwall
tylermorganwall / submarine_cable_map.R
Last active January 15, 2025 14:29
Submarine Cable Map Dataviz
library(geojsonsf)
library(sf)
library(rayrender)
#Data source: https://github.com/telegeography/www.submarinecablemap.com
cables = geojson_sf("cable-geo.json")
cablescene = list()
counter = 1
for(i in 1:length(cables$geometry)) {
@cbuckowitz
cbuckowitz / README.md
Last active February 23, 2025 18:42
Change Storage Location for Docker Desktop with WSL2 #DockerDesktop #WSL2

Change the Storage Location for Docker Desktop with WSL2

Docker Desktop stores docker data in 2 distros

  • docker-desktop
  • docker-desktop-data

These distros are installed on the system drive by default.

To move them to another drive, these distros can be exported, deleted and imported from the new location.

@rssnyder
rssnyder / oracle-cloud-free-tier-guide.md
Last active April 24, 2025 17:36
oracle-cloud-free-tier-guide

how to leverage oracle's temping offers

free tier limits

The limits of the free tier say that you can create up to 4 instances.

  • x2 x86 instances (2core/1g)
  • x2 ampere instances (with 4core/24g spread between them)
  • 200GB total boot volume space across all intances (minimum of 50G per instance)

create your account

@jzr-supove
jzr-supove / random_generator.md
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()
3392849227.6848479
@maxivak
maxivak / _0__ssl_certbot_letsencrypt.md
Last active February 26, 2025 14:31
Let's encrypt SSL certificates using certbot in docker

Directories on host machine:

  • /data/certbot/letsencrypt

  • /data/certbot/www

  • Nginx server in docker container

docker run -d --name nginx \
@gabrielfalcao
gabrielfalcao / rsa_encryption.py
Created November 30, 2019 00:39
Using python cryptography module to generate an RSA keypair, serialize, deserialize the keys and perform encryption and decryption
import base64
from cryptography.hazmat.backends import default_backend
from cryptography.hazmat.primitives.asymmetric import rsa
from cryptography.hazmat.primitives import serialization
from cryptography.hazmat.primitives import hashes
from cryptography.hazmat.primitives.asymmetric import padding
def utf8(s: bytes):
return str(s, 'utf-8')
@thepoppingone
thepoppingone / m3u8streamffmpegdl.sh
Last active February 27, 2023 14:32
Download m3u8 playlist with ffmpeg - step by step download script (ffmpeg binary required)
#!/bin/sh
# Author : Wang Poh Peng
# Description : Use FFMPEG to download videos into mkv or mp4 format
RED='\033[1;31m'
NC='\033[0m' # No Color
GREEN='\033[0;32m'
CYAN='\033[0;36m'