Skip to content

Instantly share code, notes, and snippets.

Working from home

Rajeev Ranjan errajeevranjan

Working from home
View GitHub Profile
"workbench.colorTheme": "Dracula",
"editor.fontSize": 15,
"workbench.iconTheme": "vscode-icons",
"files.autoSave": "onFocusChange",
"files.autoSaveDelay": 100,
"": "C:\\Program Files\\PowerShell\\7\\pwsh.exe",
"[javascript]": {
"editor.defaultFormatter": "esbenp.prettier-vscode"
View powershell-into-powerlevel10k
Oh-My-Posh is windows version of Oh-My-zsh, it contains minimal but sufficient plugins and themes that would delight your experience with the terminal.
Open Powershell in the terminal
Install the following modules
Install-Module posh-git -Scope CurrentUser
Install-Module oh-my-posh -Scope CurrentUser
# This would be needed only if its Powershell Core
Install-Module -Name PSReadLine -AllowPrerelease -Scope CurrentUser -Force -SkipPublisherCheck
Open the default profile using following command
notepad $PROFILE
errajeevranjan / phoneAuth.js
Created Jun 26, 2020 — forked from nyx-code/phoneAuth.js
This is the code for creating simple phone authentication REST API using Twilio service.
View phoneAuth.js
const express = require('express')
const app = express()
const port = 3000
const client = require('twilio')(process.env.ACCOUNT_SID, process.env.AUTH_TOKEN)
// /login
// - phone number
View All 29 STATES and their DISTRICTS
state: "Andhra Pradesh",
districts: [
errajeevranjan / spotihosts
Created Jun 14, 2020 — forked from teomaragakis/spotihosts
The hosts file entries to block Spotify audio ad servers.
View spotihosts
View Fix-Slow-apt-get-update-Optimize-Kali-Linux-2019
Open Terminal and type - leafpad /etc/resolv.conf
add this - nameserver
save and exit
now open new terminal and type - leafpad /etc/apt/sources.list
add this - #Repositories :
deb kali-rolling main contrib non-free
deb-src kali-rolling main contrib non-free
now save and exit
View windows terminal config
// This file was initially generated by Windows Terminal 0.11.1251.0
// It should still be usable in newer versions, but newer versions might have additional
// settings, help text, or changes that you will not see unless you clear this file
// and let us generate a new one for you.
// To view the default settings, hold "alt" while clicking on the "Settings" button.
// For documentation on these settings, see:
"$schema": "",
View zshrc
# Luke's config for the Zoomer Shell
# Enable colors and change prompt:
autoload -U colors && colors
PS1="%B%{$fg[red]%}[%{$fg[yellow]%}%n%{$fg[green]%}@%{$fg[blue]%}%M %{$fg[magenta]%}%~%{$fg[red]%}]%{$reset_color%}$%b "
# History in cache directory:
View initialise wsl ubuntu.txt
after install linux distros
1st command
sudo apt update && sudo apt upgrade
2nd command
sudo apt install zsh
errajeevranjan / p10kconfig
Created Apr 13, 2020
personal p10k configuration file
View p10kconfig
# Generated by Powerlevel10k configuration wizard on 2020-04-14 at 00:16 IST.
# Based on romkatv/powerlevel10k/config/p10k-rainbow.zsh, checksum 45196.
# Wizard options: nerdfont-complete + powerline, small icons, rainbow, unicode,
# 24h time, angled separators, sharp heads, blurred tails, 1 line, compact, many icons,
# concise, instant_prompt=verbose.
# 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.
You can’t perform that action at this time.