Skip to content

Instantly share code, notes, and snippets.

@rizort
rizort / README.md
Created July 18, 2025 13:24 — forked from yogendra/README.md
Run a Docker Registry with TLS

Run Docker Registry with TLS

There are many instances that I need to do this. Especially if I am installing K8s in an internet restricted environment (example: [Install TKG in Internet restricted env][install-tkg-internet-restricted])

So I like to use [docker registry][docker-registry] and [mkcert][mkcert] to play with this scenario

  1. Create directories for certs and data

    mkdir -p data certs
@rizort
rizort / docker-compose.yml
Created July 7, 2024 21:53 — forked from MKagesawa/docker-compose.yml
Docker-compose MySQL Image create multiple databases
# The official MySQL (https://hub.docker.com/_/mysql/) supports only one MYSQL_DATABASE environment variable.
# By modifying the entrypoint and passing shell script, you can create multiple dbs without having to make a mysql image just for this purpose.
version: '3'
services:
# Some other service connecting to mysql
db:
image: mysql:5.6
@rizort
rizort / FrontendFrameworksPopularity.md
Created December 27, 2023 20:07 — forked from tkrotoff/FrontendFrameworksPopularity.md
Front-end frameworks popularity (React, Vue, Angular and Svelte)
@rizort
rizort / user-prompt-bashrc-with-git.bash
Created January 2, 2023 04:56 — forked from aldolat/user-prompt-bashrc-with-git.bash
Prompt for user with git and colors
#### START ORIGINAL VERSION
#if [ "$color_prompt" = yes ]; then
# PS1='${debian_chroot:+($debian_chroot)}\[\033[01;32m\]\u@\h\[\033[00m\]:\[\033[01;34m\]\w\[\033[00m\]\$ '
#else
# PS1='${debian_chroot:+($debian_chroot)}\u@\h:\w\$ '
#fi
#unset color_prompt force_color_prompt
#### END ORIGINAL VERSION
#### START MY VERSION
@rizort
rizort / unresponsive.css
Created December 29, 2022 03:57 — forked from alixaxel/unresponsive.css
Bootstrap Unresponsive Override
body.unresponsive {
min-width: 960px;
}
body.unresponsive .container {
max-width: none !important;
width: 960px !important;
}
body.unresponsive [class^="col-"] {
float: left;
}
#This gist is related to blog post https://mohitgoyal.co/2017/02/08/securing-your-jenkins-environment-and-configure-for-auditing/
# Generate certificate csr
openssl req -new > new.ssl.csr
# Create a key file for generating certificate
openssl rsa -in privkey.pem -out new.cert.key
# Create a csr file using the key file for 635 days
openssl x509 -in new.ssl.csr -out new.cert.cert -req -signkey new.cert.key -days 365