Skip to content

Instantly share code, notes, and snippets.

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)"
@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.
@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 / 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 ([email protected])
# 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 / tun.py
Created June 26, 2024 04:03 — forked from abdelrahman-t/tun.py
Create a TUN interface in Python
"""tun.py
*CAP_NET_ADMIN capability is required to create TUN interfaces.*
Based on: https://github.com/povilasb/iptun/blob/master/iptun/tun.py
"""
import logging as LOGGER
import os
import struct
import subprocess
@lakshmankumar12
lakshmankumar12 / docker_descendants.py
Created August 11, 2024 09:08 — forked from altaurog/docker_descendants.py
Python3 script to find descendants of one or more docker images
#!/usr/bin/python3
#
# usage: python3 docker_descendants.py <image_id> ...
import sys
from subprocess import check_output
def main(images):
image_ids = set(images)