Skip to content

Instantly share code, notes, and snippets.

View yaneshtyagi's full-sized avatar
💭
I may be slow to respond.

Yanesh Tyagi yaneshtyagi

💭
I may be slow to respond.
View GitHub Profile
@yaneshtyagi
yaneshtyagi / attbution.md
Last active October 24, 2023 17:20
Obsidian dark purple theme

I have modified the purple aurora obsidian theme to suite my need.

image

image

image

@yaneshtyagi
yaneshtyagi / settings.jsonc
Created September 19, 2023 04:48
Make VS code icons in left bar small
// in user settings
{
"window.zoomLevel": -1,
"editor.fontSize": 16,
"terminal.integrated.fontSize": 16,
}
//The whole editor will get smaller so you need to compensate editor.fontSize and terminal.integrated.fontSize
//ref: https://stackoverflow.com/a/47157867/226181
@yaneshtyagi
yaneshtyagi / git-pull-all-branches-to-local.sh
Created March 13, 2023 12:42
Git fetch and pull all git branches locally
git branch -r | grep -v '\->' | sed "s,\x1B\[[0-9;]*[a-zA-Z],,g" | while read remote; do git branch --track "${remote#origin/}" "$remote"; done
git fetch --all
git pull --all
@yaneshtyagi
yaneshtyagi / atomicBit.omp.json
Created October 22, 2022 09:12
AtomicBit Oh My Posh Theme - Yanesh Tyagi's version
{
"$schema": "https://raw.githubusercontent.com/JanDeDobbeleer/oh-my-posh/main/themes/schema.json",
"blocks": [
{
"alignment": "left",
"segments": [
{
"style": "plain",
"template": "\u256d\u2500[<#ffff55>{{ .UserName }}</><#ff5555>@</><#55ff55>{{ .HostName }}</>]\u2500",
"type": "session"
@yaneshtyagi
yaneshtyagi / google-sheet.md
Created October 18, 2022 08:57
My Mac Shortcuts

Google Sheet Shortcuts for Mac

Menu Commands

  1. Open Format Menu - + + o

Common Tasks

  1. Insert Row/Col: + + +
@yaneshtyagi
yaneshtyagi / indian-number-format.md
Created October 11, 2022 09:06
Indian Number Format - Google Sheet and Excel

Indian currency format displays numbers like below

1 - One Rupee
10 - Ten Rupee
100 - One Hundred Rupee
1,000 - One Thousand Rupee
10,000 - Ten Thousand Rupee
1,00,000 - One Lac Rupee
10,00,000 - Ten Lac Rupee
@yaneshtyagi
yaneshtyagi / WebStorm-keymaps-customized.md
Last active June 24, 2022 19:03
My customized keyboard shortcuts

WebStorm customized keybaord shortcuts

Keymap: MacOS (copy)

Customized keys:

  • split and move right: + .
  • search everywhere: + + P
  • switcher: + s

launch the command prompt with administrator priviledges

runas /user:Administrator cmd

Remove a directory recursively

rmdir c:\test /s /q

/q -> suppress the prompt

@yaneshtyagi
yaneshtyagi / wifiPassword.bat
Created December 27, 2021 03:28
See windows 10 wifi password : For connected wifi
netsh wlan show profile name=ssid key=clear
{
viewer {
repositories(first: 100) {
totalCount
nodes {
nameWithOwner
}
pageInfo {
endCursor
hasNextPage