Skip to content

Instantly share code, notes, and snippets.

View naveenadi's full-sized avatar
🎯
Focusing

Aditya Agarwal naveenadi

🎯
Focusing
View GitHub Profile
@naveenadi
naveenadi / list.md
Created April 9, 2022 19:15 — forked from ih2502mk/list.md
Quantopian Lectures Saved

Installing Arch linux with EFI

  1. Change keyboard layout:

    • loadkeys no
  2. Verify boot mode:

    • ls /sys/firmware/efi/efivars (If the directory exist your computer supports EFI)
  3. Ping some site on the Internet to verify connection:

  • ping archlinux.org
@naveenadi
naveenadi / ts-boilerplate.md
Created April 9, 2022 19:13 — forked from john9384/ts-boilerplate.md
Setup a Node.js project with Typescript, ESLint, Prettier, Husky

Setup a Node.js project with Typescript, ESLint, Prettier, Husky

1_D8Wwwce8wS3auLAiM3BQKA

Starting a personal node project could be easy; starting a team node project could be challenging.

I am a developer currently working in SEEK Australia.

In my experience, common mistakes developer make when starting a projects are:

  • No Linting
@naveenadi
naveenadi / System Design.md
Created April 2, 2022 14:01 — forked from vasanthk/System Design.md
System Design Cheatsheet

System Design Cheatsheet

Picking the right architecture = Picking the right battles + Managing trade-offs

Basic Steps

  1. Clarify and agree on the scope of the system
  • User cases (description of sequences of events that, taken together, lead to a system doing something useful)
    • Who is going to use it?
    • How are they going to use it?
@naveenadi
naveenadi / recording_application_and_microphone.md
Created April 2, 2022 14:01 — forked from varqox/recording_application_and_microphone.md
How to record multiple applications and microphone into one audio file on Linux using PulseAudio

How to record multiple applications and microphone into one audio file on Linux

Step 0. Terminology

Sinks are for output, sources are for input. To stream source to sink a loopback must be created. More shall you find there.

Step 1. Create output sink that will be recorded

Our output sink will be named recording.

pacmd load-module module-null-sink sink_name=recording sink_properties=device.description=recording
@naveenadi
naveenadi / docker fic.md
Created February 26, 2022 12:36
Docker premission fix

Example 1: Got permission denied while trying to connect to the Docker daemon socket

sudo chmod 666 /var/run/docker.sock

Example 2: Got permission denied while trying to connect to the Docker daemon socket at unix:///var/run/docker.sock: Get http://%2Fvar%2Frun%2Fdocker.sock/v1.40/containers/json: dial unix /var/run/docker.sock: connect: permission denied

sudo usermod -aG docker ${USER}
@naveenadi
naveenadi / Fix vscode Error : Extension host terminated unexpectedly.md
Last active April 9, 2022 19:08
fix vs code extension problem in arch linux

Problem

Error

Solution

  • Open your vscode and launch the command palette by ctrl + shift + p

  • Start the Extension Bisect

Bisect

@naveenadi
naveenadi / appimage_builder
Created October 18, 2021 16:16
Create AppImage from Flutter App Linux
#! /bin/bash
export ARCH=$(uname -m)
echo "INFO:Generator:Searching AppDir"
read -p "? ID [Eg: com.example.app]: " appId
read -p "? Application Name: " appName
read -p "? Icon: " appIcon
read -p "? Executable path relative to AppDir [usr/bin/app]: " appExec
# read -p "? Arguments [Default: $@]: " appExec_args
@naveenadi
naveenadi / installing-node-with-nvm.md
Created February 19, 2021 10:03 — forked from d2s/installing-node-with-nvm.md
Installing Node.js to Linux & macOS & WSL with nvm

Installing Node.js with nvm to Linux & macOS & WSL

A quick guide on how to setup Node.js development environment.

Install nvm for managing Node.js versions

nvm allows installing several versions of Node.js to the same system. Sometimes applications require a certain versions of Node.js to work. Having the flexibility of using specific versions can help.

  1. Open new Terminal window.
@naveenadi
naveenadi / install_docker.sh
Created February 17, 2021 17:07
Install Docker for Linux, Mac OS, and Window with WSL
#! /bin/sh
set -e
reset="\033[0m"
red="\033[31m"
green="\033[32m"
yellow="\033[33m"
cyan="\033[36m"
white="\033[37m"