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 / 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 / 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 / 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:
@lvnilesh
lvnilesh / easy-nip5.md
Last active April 16, 2024 07:33
easy-nip5 on cloudflare

STEP 1: Create a worker and map it to a route like below.

*yourdomain.com/.well-known/nostr.json*

STEP 2: Use this sample as your worker.js

addEventListener('fetch', event => {
@lvnilesh
lvnilesh / Dockerfile
Created January 6, 2023 23:53 — forked from 22phuber/Dockerfile
Ghost Dockerfile how to add the AWS S3 storage adapter
# Docker multistage build ghost blog with AWS S3 storage adapter
# Configure ghost-storage-adapter-s3
# => https://www.npmjs.com/package/ghost-storage-adapter-s3
# stage
FROM ghost:3.17-alpine as ghost-storage-adapter-s3
WORKDIR $GHOST_INSTALL/current
RUN yarn add "ghost-storage-adapter-s3@2.8.0"
# build
version: '3'
services:
bitwarden:
container_name: bitwarden
hostname: bitwarden
image: vaultwarden/server:1.26.0
restart: always
volumes:
- /etc/localtime:/etc/localtime:ro
@lvnilesh
lvnilesh / Running TensorFlow on Apple Silicon.md
Created December 5, 2022 18:13 — forked from svpino/instructions.md
Installing TensorFlow on Apple Silicon