Skip to content

Instantly share code, notes, and snippets.

@lakshmankumar12
lakshmankumar12 / parted_mkpart_calc.sh
Created January 29, 2024 11:01 — forked from markhorsfield/parted_mkpart_calc.sh
using parted find optimal partition alignment
#!/bin/bash
# vim: softtabstop=4 shiftwidth=4 expandtab
# Copyright (c) 2015-2019 Jari Turkia (jatu@hqcodeshop.fi)
# This program is free software: you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
# the Free Software Foundation, either version 3 of the License, or
# (at your option) any later version.
@lakshmankumar12
lakshmankumar12 / sysctl.conf
Created October 20, 2020 04:45 — forked from voluntas/sysctl.conf
Sysctl configuration for high performance
### KERNEL TUNING ###
# Increase size of file handles and inode cache
fs.file-max = 2097152
# Do less swapping
vm.swappiness = 10
vm.dirty_ratio = 60
vm.dirty_background_ratio = 2
@lakshmankumar12
lakshmankumar12 / protectterm.vim
Created September 3, 2019 17:13 — forked from ds26gte/protectterm.vim
Don't kill terminal buffers inadvertently when exiting Neovim
" Last modified 2017-11-30
" Dorai Sitaram
" By default, Neovim warns you only of unsaved file buffers
" before you exit, not of unclosed terminal buffers, which will
" be summarily killed. Unintentionally killing a terminal buffer
" can be frustrating, not only because of killed processes (which
" could be restarted) but also for the lost scroll history. This
" plugin prevents that loss.
diff --git a/functions/vcs.zsh b/functions/vcs.zsh
index 04a07e5..6b8d7fc 100755
--- a/functions/vcs.zsh
+++ b/functions/vcs.zsh
@@ -7,6 +7,9 @@
################################################################
set_default POWERLEVEL9K_VCS_SHOW_SUBMODULE_DIRTY false
+function +vi-git-replacement() {
+ hook_com[misc]+=" $(git_super_status)"
#!/usr/bin/python
from __future__ import print_function
import re
import sys
import json
import collections
import os
try:
diff --git a/autoload/airline/themes/solarized.vim b/autoload/airline/themes/solarized.vim
index b88e1a4..76447a9 100644
--- a/autoload/airline/themes/solarized.vim
+++ b/autoload/airline/themes/solarized.vim
@@ -194,6 +194,21 @@ function! airline#themes#solarized#refresh()
let g:airline#themes#solarized#palette.replace_modified.airline_warning =
\ g:airline#themes#solarized#palette.normal.airline_warning
+ let g:airline#themes#solarized#palette.terminal = airline#themes#generate_color_map(
+ \ [s:R1[0].g, s:R1[1].g, s:R1[0].t, s:R1[1].t, s:R1[2]],
@lakshmankumar12
lakshmankumar12 / nvim-terminal-edit.py
Last active October 19, 2020 04:04 — forked from tarruda/nvim-terminal-edit.py
Edit file in host Neovim instance from a :terminal buffer
#!/usr/bin/env python2.7
"""Edit a file in the host nvim instance."""
from __future__ import print_function
import os
import sys
from neovim import attach
args = sys.argv[1:]
if not args:
diff --git a/lakshman.vim b/lakshman.vim
index 49199bf..c0e1d99 100755
--- a/lakshman.vim
+++ b/lakshman.vim
@@ -254,17 +254,17 @@ endfunction
" functions
-nmap gGG <Esc>:call PanosTags("../tags_f")<CR>
diff --git a/gitconfig b/gitconfig
index 6f5bf4d..0f94f5b 100644
--- a/gitconfig
+++ b/gitconfig
@@ -22,7 +22,7 @@
tool = meld
renameLimit = 25000
[push]
- default = upstream
diff --git a/bashrc.local b/bashrc.local
index 1f6827b..a916c23 100644
--- a/bashrc.local
+++ b/bashrc.local
@@ -1,5 +1,5 @@
export EMAIL_ADDR=lakshmankumar@gmail.com
-alias ls='ls --color -F'
+alias ls='gls --color -F'
alias grep='egrep --color'
alias gitnp='git --no-pager'