Skip to content

Instantly share code, notes, and snippets.

Avatar
🏠
Working from home

Rajeev Ranjan errajeevranjan

🏠
Working from home
View GitHub Profile
View MY VS CODE SETTING
{
"workbench.colorTheme": "Dracula",
"editor.fontSize": 15,
"workbench.iconTheme": "vscode-icons",
"files.autoSave": "onFocusChange",
"files.autoSaveDelay": 100,
"terminal.integrated.shell.windows": "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
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
require('dotenv/config')
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: [
"Visakhapatnam",
"Vijayawada",
"Rajamahendravaram",
"Guntur",
"Kakinada",
"Nellore",
@errajeevranjan
errajeevranjan / spotihosts
Created Jun 14, 2020 — forked from teomaragakis/spotihosts
The hosts file entries to block Spotify audio ad servers.
View spotihosts
127.0.0.1 media-match.com
127.0.0.1 adclick.g.doublecklick.net
127.0.0.1 www.googleadservices.com
127.0.0.1 open.spotify.com
127.0.0.1 pagead2.googlesyndication.com
127.0.0.1 desktop.spotify.com
127.0.0.1 googleads.g.doubleclick.net
127.0.0.1 pubads.g.doubleclick.net
127.0.0.1 audio2.spotify.com
127.0.0.1 www.omaze.com
View Fix-Slow-apt-get-update-Optimize-Kali-Linux-2019
Open Terminal and type - leafpad /etc/resolv.conf
add this - nameserver 8.8.8.8
nameserver 8.8.4.4
save and exit
now open new terminal and type - leafpad /etc/apt/sources.list
add this - #Repositories :
deb http://kali.cs.nctu.edu.tw/kali kali-rolling main contrib non-free
deb-src http://kali.cs.nctu.edu.tw/kali 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: https://aka.ms/terminal-documentation
{
"$schema": "https://aka.ms/terminal-profiles-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:
HISTSIZE=10000
SAVEHIST=10000
HISTFILE=~/.cache/zsh/history
View initialise wsl ubuntu.txt
after install linux distros
1st command
sudo apt update && sudo apt upgrade
2nd command
sudo apt install zsh
@errajeevranjan
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.