Skip to content

Instantly share code, notes, and snippets.

@AnurajBhaskar47
AnurajBhaskar47 / python_debug_loop.py
Created July 4, 2024 07:28
python debug statement for a loop
import os
import sys
if not os.path.exists('debug.log'):
with open('debug.log', 'w') as sys.stdout:
print('**** print debug')
else:
with open('debug.log', 'a') as sys.stdout:
print('**** pring debug')
@AnurajBhaskar47
AnurajBhaskar47 / user_profile.ps1
Created June 24, 2024 19:33
My powershell config
# Propmt
oh-my-posh --init --shell pwsh --config '%LOCALAPPDATA%\Programs\oh-my-posh\themes\robbyrussell.omp.json' | Invoke-Expression
# Icons
# Import-Module -Name Terminal-Icons
# PSReadLine
# Set-PSReadLineOption -EditMode Emacs
# Set-PSReadLineOption -BellStyle None
# Set-PSReadLineKeyHandler -Chord 'Ctrl+d' -Function DeleteChar
@AnurajBhaskar47
AnurajBhaskar47 / plugins.lua
Last active July 7, 2024 18:56
lvim_plugins
-- local require = require("lvim.utils.require").require
local core_plugins = {
{ "folke/lazy.nvim", tag = "stable" },
{
"neovim/nvim-lspconfig",
lazy = true,
dependencies = { "mason-lspconfig.nvim", "nlsp-settings.nvim" },
},
{
@AnurajBhaskar47
AnurajBhaskar47 / config.lua
Last active July 7, 2024 18:55
lunarvim_config
-- Read the docs: https://www.lunarvim.org/docs/configuration
-- Video Tutorials: https://www.youtube.com/watch?v=sFA9kX-Ud_c&list=PLhoH5vyxr6QqGu0i7tt_XoVK9v-KvZ3m6
-- Forum: https://www.reddit.com/r/lunarvim/
-- Discord: https://discord.com/invite/Xb9B4Ny
-- Formatting
-- lvim.format_on_save.enabled = true
-- lvim.format_on_save.pattern = { "*.lua", "*.py", "*.cpp", "*.rs" }
-- lvim.transparent_window = true
@AnurajBhaskar47
AnurajBhaskar47 / theme.conf
Created June 4, 2024 15:32
Tokyo Night color scheme for kitty terminal
# Tokyo Night color scheme for kitty terminal emulator
# https://github.com/davidmathers/tokyo-night-kitty-theme
#
# Based on Tokyo Night color theme for Visual Studio Code
# https://github.com/enkia/tokyo-night-vscode-theme
foreground #a9b1d6
background #24283b
# Black
@AnurajBhaskar47
AnurajBhaskar47 / kitty.conf
Created June 4, 2024 15:30
configuration for kitty termimal
font_family CaskaydiaCove Nerd Font Mono
bold_font auto
italic_font auto
bold_italic_font auto
font_size 12.0
window_padding_width 4
include theme.conf
#background_opacity 0.60
#hide_window_decorations yes
@AnurajBhaskar47
AnurajBhaskar47 / .tmux.conf
Last active June 4, 2024 15:29
my tmux config
unbind r
bind r source-file ~/.tmux.conf
set -g prefix C-s
set -g mouse on
set-option -g renumber-windows on
setw -g automatic-rename
# Start windows and panes index at 1, and 0.
@AnurajBhaskar47
AnurajBhaskar47 / .vimrc
Last active April 15, 2024 05:50
dot_file for basic vim config
""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""
"
" ██╗ ██╗██╗███╗ ███╗██████╗ ██████╗
" ██║ ██║██║████╗ ████║██╔══██╗██╔════╝
" ██║ ██║██║██╔████╔██║██████╔╝██║
" ╚██╗ ██╔╝██║██║╚██╔╝██║██╔══██╗██║
" ╚████╔╝ ██║██║ ╚═╝ ██║██║ ██║╚██████╗
" ╚═══╝ ╚═╝╚═╝ ╚═╝╚═╝ ╚═╝ ╚═════╝
"
""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""
@AnurajBhaskar47
AnurajBhaskar47 / settings.json
Last active July 7, 2024 23:03
Vscode_settings
{
"git.autorefresh": true,
"files.autoSave": "afterDelay",
"files.exclude": {
"**/node_modules": true
},
"window.menuBarVisibility": "toggle",
"editor.fontSize": 12,
"editor.scrollbar.vertical": "hidden",
"editor.scrollbar.verticalScrollbarSize": 0,
@AnurajBhaskar47
AnurajBhaskar47 / keybindings.json
Last active July 11, 2024 22:49
Vscode_keybindings
// Place your key bindings in this file to override the defaultsauto[]
[
{
"key": "ctrl+tab",
"command": "workbench.action.nextEditor"
},
{
"key": "ctrl+shift+tab",
"command": "workbench.action.previousEditor"
},