Skip to content

Instantly share code, notes, and snippets.

@kprasad99
kprasad99 / iflink.adoc
Created November 29, 2023 14:26
Find Iflink of docker container
@kprasad99
kprasad99 / pnpm_config.adoc
Last active October 17, 2023 07:25
Configure pnpm for angular

Configuring pnpm for angular.

ng config -g cli.packageManager pnpm

Install Python-3.11 and pip on Windows

@kprasad99
kprasad99 / poetry.md
Last active August 29, 2023 11:49
Steps to create Python Package using Python Poetry

Create Python Package Using Python-poetry

  • Install Poetry
$ pip install poetry
  • Create New Project
$ poetry new my-pkg
@kprasad99
kprasad99 / extensions.json
Last active July 30, 2022 10:30
List of Recommended Visual code extensions for Angular, Python and Go
{
"recommendations": [
"42Crunch.vscode-openapi",
"Angular.ng-template",
"asciidoctor.asciidoctor-vscode",
"BazelBuild.vscode-bazel",
"christian-kohler.path-intellisense",
"cyrilletuzi.angular-schematics",
"dbaeumer.vscode-eslint",
"eamodio.gitlens",
@kprasad99
kprasad99 / switch-pkg-manager.md
Last active July 30, 2022 09:09
Switch Package Manager from Angular CLI

Below command switches package manager from NPM to YARN

$ ng config -g cli.packageManager yarn
@kprasad99
kprasad99 / gradle_copy.md
Created August 4, 2020 08:12
Copy libs and dependency to directory in Gradle

Solution-1

Using two tasks to copy dependencies and subproject jars

task appLibs(type: Copy) {
    def jars=[]
    subprojects.each {
 jars+=it.libsDir
@kprasad99
kprasad99 / nested_virtualization_enable.adoc
Created April 24, 2020 18:53
Enable Nested Virtualization for VirtualBox VMs

How to enable Nested Virtualization for VirtualBox VMs

To enable nest virt for VirtualBox VMs execute below command

VBoxManage modifyvm <vm-name> --nested-hw-virt on
Note
Nested Virt, VT-X is supported on Intel i7 7-generation+ cpus and AMD CPUs
@kprasad99
kprasad99 / mariadb_malloc.adoc
Last active January 27, 2020 09:18
Custom Memory Allocator configuration for MariaDB

Steps to configure Custom Malloc library for MariaDB

  • Install Prefered malloc library.

    1. Jemalloc

      $ yum install jemalloc
@kprasad99
kprasad99 / Dockerfile
Last active February 19, 2020 15:59
JRE 11 Docker file
# reference https://stackoverflow.com/questions/53669151/java-11-application-as-lightweight-docker-image
FROM alpine:latest as builder
RUN apk --no-cache add openjdk11-jdk openjdk11-jmods
ENV JAVA_MINIMAL="/opt/java-minimal"
# build minimal JRE
RUN /usr/lib/jvm/java-11-openjdk/bin/jlink \