Skip to content

Instantly share code, notes, and snippets.

View revant's full-sized avatar

Revant Nandgaonkar revant

View GitHub Profile
@revant
revant / k3d-cluster.md
Last active December 5, 2021 08:46
Commands to install k8s cluster using k3d for local use
  1. Install devcluster, publish ports without traefik.
k3d cluster create devcluster \
  --api-port 127.0.0.1:6443 \
  -p 80:80@loadbalancer \
  -p 443:443@loadbalancer \
  --k3s-arg "--disable=traefik@server:0"
@revant
revant / AWS-EKS-Fargate-MySQLAurora-Elasticache.md
Last active November 20, 2025 15:20
AWS EKS Fargate ERPNext

Prerequisites

  • EKS Fargate profiles for <fargate-profile-namespace>. Guide
  • EKS Fargate coredns profile for coredns pods to run (create profile for kube-system namespace, refer guide from previous step)
  • EFS CSI Driver installed, mount points set and pv.yaml created. Refer Guide
  • EKS ALB Controller, refer Guide.

Install Helm

Refer Helm Installation to install helm command

{
"guestFunctions": [
"erpnext.www.book_appointment.verify.index.get_context(context)",
"erpnext.www.book_appointment.index.get_appointment_settings()",
"erpnext.www.book_appointment.index.get_timezones()",
"erpnext.www.book_appointment.index.get_appointment_slots(date, timezone)",
"erpnext.www.book_appointment.index.create_appointment(date, time, tz, contact)",
"erpnext.templates.utils.send_message(subject='Website Query', message='', sender='', status='Open')",
"erpnext.templates.pages.search_help.get_help_results_sections(text)",
"erpnext.templates.pages.product_search.get_product_list(search=None, start=0, limit=12)",
@revant
revant / README.md
Last active January 12, 2025 02:22
Arch Linux on Lenovo IdeaPad 330-15ARR

Required Kernel params

loglevel=3 iommu=pt acpi_backlight=native
  • iommu=pt Solves sudden freeze of graphics Arch Forum Link
  • acpi_backlight=native Solves back light "failed" message during boot Arch Wiki
  • Use it with other params e.g. loglevel=3 iommu=pt acpi_backlight=native apparmor=1 security=apparmor quiet
# Install these packages (use your favorite AUR tool here)
yay -Syu minikube-bin kubectl docker-machine-driver-kvm2 libvirt qemu-headless docker-machine ebtables
# Get libvirt going
sudo systemctl enable libvirtd.service
sudo usermod -a -G libvirt $(whoami)
# This fix thanks to http://blog.programmableproduction.com/2018/03/08/Archlinux-Setup-Minikube-using-KVM/
sudo virsh net-autostart default
@revant
revant / pacman.conf
Created November 13, 2019 00:07
Arch Linux PC
#
# /etc/pacman.conf
#
# See the pacman.conf(5) manpage for option and repository directives
#
# GENERAL OPTIONS
#
[options]
# The following paths are commented out with their default values listed.
@revant
revant / github-webhook.guard.ts
Created October 20, 2019 10:47
NestJS GithubWebHookGuard
// 2019 Revant Nandgaonkar
// License: MIT
import { CanActivate, ExecutionContext, Injectable } from '@nestjs/common';
import * as crypto from 'crypto';
import * as rawBody from 'raw-body';
@Injectable()
export class GithubWebHookGuard implements CanActivate {
async canActivate(context: ExecutionContext): Promise<boolean> {
@revant
revant / manning_defconfig
Created May 20, 2018 14:41
stock_manning_oreo_defconfig
#
# Automatically generated file; DO NOT EDIT.
# Linux/arm64 3.18.60 Kernel Configuration
#
CONFIG_ARM64=y
CONFIG_64BIT=y
CONFIG_ARCH_PHYS_ADDR_T_64BIT=y
CONFIG_MMU=y
CONFIG_ARCH_MMAP_RND_BITS_MIN=18
CONFIG_ARCH_MMAP_RND_BITS_MAX=24
@revant
revant / .p10k.zsh
Last active February 5, 2022 06:41
Shell Environment Variables
# Generated by Powerlevel10k configuration wizard on 2019-11-13 at 05:50 IST.
# Based on romkatv/powerlevel10k/config/p10k-rainbow.zsh, checksum 41729.
# Wizard options: powerline, rainbow, time, vertical separators, sharp heads,
# flat tails, 2 lines, solid, no frame, darkest, sparse, concise.
# Type `p10k configure` to generate another config.
#
# Config for Powerlevel10k with powerline prompt style with colorful background.
# Type `p10k configure` to generate your own config based on it.
#
# Tip: Looking for a nice color? Here's a one-liner to print colormap.
@revant
revant / envsetup.sh
Last active April 29, 2018 18:07
Environment Setup for building Lineage OS
source ~/android/venv/bin/activate
export LC_TIME=C
export LC_ALL=C
export ANDROID_JACK_VM_ARGS="-Dfile.encoding=UTF-8 -XX:+TieredCompilation -Xmx5G"
export USE_CCACHE=1
export JACK_SERVER_VM_ARGUMENTS="-Dfile.encoding=UTF-8 -XX:+TieredCompilation -Xmx4096m"
export _JAVA_OPTIONS="-Xmx5g"