Skip to content

Instantly share code, notes, and snippets.

@vcargats
vcargats / self-signed-certificate-with-custom-ca.md
Created August 21, 2024 05:54 — forked from fntlnz/self-signed-certificate-with-custom-ca.md
Self Signed Certificate with Custom Root CA

Create Root CA (Done once)

Create Root Key

Attention: this is the key used to sign the certificate requests, anyone holding this can sign certificates on your behalf. So keep it in a safe place!

openssl genrsa -des3 -out rootCA.key 4096
@vcargats
vcargats / a-mongodb-replica-set-docker-compose-readme.md
Created January 11, 2022 08:11 — forked from harveyconnor/a-mongodb-replica-set-docker-compose-readme.md
MongoDB Replica Set / docker-compose / mongoose transaction with persistent volume

This will guide you through setting up a replica set in a docker environment using.

  • Docker Compose
  • MongoDB Replica Sets
  • Mongoose
  • Mongoose Transactions

Thanks to https://gist.github.com/asoorm for helping with their docker-compose file!

alias ll='ls -lh'
alias vi='vim -u NONE'
PATH=/usr/bin:$PATH:"/cygdrive/c/Program Files (x86)/Windows Kits/10/bin/x86":"/cygdrive/c/Program Files (x86)/Microsoft Visual Studio/2019/Community/VC/Tools/MSVC/14.28.29910/bin/Hostx64/x64/"
PATH="/cygdrie/c/Program Files (x86)/Microsoft Visual Studio/2019/Community/Common7/IDE/":$PATH
export PS1="\[$(tput bold)\]\[\033[38;5;172m\]\h\[$(tput sgr0)\]\[$(tput sgr0)\]\[\033[38;5;15m\]-\[$(tput bold)\]\[$(tput sgr0)\]\[\033[38;5;172m\]\l\[$(tput sgr0)\]\[$(tput sgr0)\]\[\033[38;5;15m\] \[$(tput bold)\]\[$(tput sgr0)\]\[\033[38;5;46m\]\W\[$(tput sgr0)\]\[$(tput sgr0)\]\[\033[38;5;15m\]\\$\[$(tput sgr0)\]"
unset color_prompt force_color_prompt
@vcargats
vcargats / settings.json
Created May 22, 2021 04:44
Windows terminal + Cygwin
{
"$schema": "https://aka.ms/terminal-profiles-schema",
// Add custom actions and keybindings to this array.
// To unbind a key combination from your defaults.json, set the command to "unbound".
// To learn more about actions and keybindings, visit https://aka.ms/terminal-keybindings
"actions":
[
// Copy and paste are bound to Ctrl+Shift+C and Ctrl+Shift+V in your defaults.json.
// These two lines additionally bind them to Ctrl+C and Ctrl+V.
// To learn more about selection, visit https://aka.ms/terminal-selection