Skip to content

Instantly share code, notes, and snippets.

View lvnilesh's full-sized avatar
💭
🏆 Vibranium Status Level

LV Nilesh lvnilesh

💭
🏆 Vibranium Status Level
View GitHub Profile
@lvnilesh
lvnilesh / nginx-minio-static.md
Last active January 17, 2024 06:10 — forked from harshavardhana/nginx-minio-static.md
How to configure static website using Nginx with MinIO ?

How to configure static website using Nginx with MinIO ?

1. Install nginx

2. Install minio

3. Install mc client

4. Create a bucket:

$ mc mb myminio/static
Bucket created successfully ‘myminio/static’.
@lvnilesh
lvnilesh / using_meld_on_mac.md
Created December 28, 2023 00:56 — forked from alpiepho/using_meld_on_mac.md
Using meld on Mac

More Using Meld merging tool on Mac

After switching to 'Meld for Mac' from download instead of from homebrew, I saw problem again.

The problem is related how the app is closed. If you use the Menu option, the saved state is removed cleaning. If you close using the window close (read circle), the saved state remains. Somehow, when this there, the application will not open from command line. Sometimes it will open, but you need to manually switch to the Meld application from the tool bar.

To work around I added /Applications/Meld.app/Contents/MacOS/meld.wrapper.sh:

@lvnilesh
lvnilesh / Installing work-tools in Mac
Created December 27, 2023 18:42 — forked from shivanandmn/Installing work-tools in Mac
Installing Brew, ImageMagick, mongoldb, robo3t and latex_parse
To install Brew:
-/bin/bash -c "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/HEAD/install.sh)"
Install ImageMagick
-brew uninstall --force imagemagick
-brew install imagemagick@6
-echo 'export PATH="/usr/local/opt/imagemagick@6/bin:$PATH"' >> ~/.bash_profile
-brew link imagemagick@6 --force
If you need to have imagemagick@6 first in your PATH, run:
@lvnilesh
lvnilesh / cronjob.yaml
Last active November 1, 2023 18:11
cronjob
apiVersion: batch/v1
kind: CronJob
metadata:
name: pi
spec:
schedule: "*/1 * * * *"
jobTemplate:
spec:
template:
metadata:
@lvnilesh
lvnilesh / cg-storageclass.yaml
Created November 1, 2023 17:28
custom storage class for nfs-server
apiVersion: storage.k8s.io/v1
kind: StorageClass
metadata:
name: cg-storageclass
provisioner: nfs-service
reclaimPolicy: Retain
volumeBindingMode: Immediate
allowVolumeExpansion: false
parameters:
storageaccounttype: Standard_LRS
@lvnilesh
lvnilesh / karabiner.json
Created September 23, 2023 05:59
karabiner.json goes in ~/.config
{
"global": {
"ask_for_confirmation_before_quitting": true,
"check_for_updates_on_startup": true,
"show_in_menu_bar": true,
"show_profile_name_in_menu_bar": true,
"unsafe_ui": false
},
"profiles": [
{
@lvnilesh
lvnilesh / README.md
Created November 6, 2022 23:49 — forked from viertelwissen/README.md
Traefik Reverse Proxy mit DNS-Challenge und Bitwarden (vaultwarden)

Traefik mit Bitwarden

Beispieldateien für Traefik als Reverse-Proxy und Bitwarden als zu nutzender Dienst. Traefik nutzt die DNS-Challenge, um ein Wildcard-Zertifikat zu beantragen und um keinen Port im Heimnetzwerk nach außen öffnen zu müssen. In diesem Beispiel wird davon ausgegangen, dass Netcup als DNS-Provider genutzt wird.

Einträge mit sub.domain.tld müssen mit der eigenen Domain ersetzt werden. Alle Keys und Logins müssen ebenfalls mit den eigenen Daten ersetzt werden.

Anderer DNS-Provider als Netcup

Traefik unterstützt viele weitere Anbieter für die DNS-Challenge. Eine Liste gibt es in der Dokumentation: https://doc.traefik.io/traefik/https/acme/#dnschallenge Wird ein anderer Provider eingesetzt, müssen in der docker-compose.yml von Traefik die Variablen, die mit "NETCUP_" beginnen, entfernt und stattdessen die Variablen für den jeweiligen Provider (siehe Traefik Doku) eingesetzt werden.

@lvnilesh
lvnilesh / docker-compose.yaml
Created June 7, 2023 04:01
version 3 fixed after livestream
version: '3'
services:
nginx-proxy:
image: nginxproxy/nginx-proxy
container_name: nginx-proxy
ports:
- "80:80"
- "443:443"
volumes:
@lvnilesh
lvnilesh / docker-compose.yaml
Last active June 7, 2023 04:01
ERROR - includes Wordpress and mysql along with nginx reverse proxy
version: '2'
services:
nginx-proxy:
image: nginxproxy/nginx-proxy
container_name: nginx-proxy
ports:
- "80:80"
- "443:443"
volumes:
@lvnilesh
lvnilesh / docker-compose.yaml
Created May 31, 2023 04:10
docker-compose.yaml
version: '2'
services:
nginx-proxy:
image: nginxproxy/nginx-proxy
container_name: nginx-proxy
ports:
- "80:80"
- "443:443"
volumes: