Skip to content

Instantly share code, notes, and snippets.

View lalitmee's full-sized avatar
👨‍💻
Unmarshalling

Lalit Kumar lalitmee

👨‍💻
Unmarshalling
View GitHub Profile
@lalitmee
lalitmee / vscode-settings.json
Created January 25, 2024 08:02
vscode settings
{
// ============
// EDITOR
// ============
"editor.cursorBlinking": "blink",
"editor.cursorSmoothCaretAnimation": "on",
"editor.cursorWidth": 2,
"editor.fontFamily": "Operator Mono Lig Book, CodeNewRoman Nerd Font, Inconsolata, Menlo, Consolas, Fira Code, Monaco, Hack, 'Courier New', monospace",
"editor.fontLigatures": true,
"editor.fontSize": 15,
@lalitmee
lalitmee / rust-command-line-utilities.markdown
Created February 4, 2023 00:08 — forked from sts10/rust-command-line-utilities.markdown
A curated list of command-line utilities written in Rust

A curated list of command-line utilities written in Rust

Note that I have not tried all of these personally, and cannot and do not vouch for all of the tools listed here. In most cases, the descriptions here are copied directly from their code repos. Some may have been abandoned. Investigate before installing/using.

The ones I use regularly include: bat, dust, fd, fend, hyperfine, miniserve, ripgrep, just, cargo-audit and cargo-wipe.

  • atuin: "Magical shell history"
  • bandwhich: Terminal bandwidth utilization tool
  • bat: A replacement for cat that provides syntax highlighting and other features.
  • bottom: Yet another cross-platform graphical process/system monitor.
@lalitmee
lalitmee / oni_keybindings.json
Created July 14, 2021 03:14
Oni keybindings
[
// See the onivim documentation for details on the format:
// https://onivim.github.io/docs/configuration/key-bindings
// Add key bindings here, for example:
// { "key": "<TAB>", "command": "workbench.action.quickOpen", "when": "editorTextFocus" },
// { "key": "jk", "command": "vim.esc", "when": "insertMode" },
{
"key": "<C-n>",
"command": "selectNextSuggestion",
"when": "editorTextFocus && suggestWidgetVisible"
@lalitmee
lalitmee / configuration.json
Created July 14, 2021 03:14
oni configuration
{
"vsicons.dontShowNewVersionMessage": true,
"workbench.colorTheme": "Gruvbox Material Dark",
"editor.detectIndentation": true,
"editor.fontFamily": "Operator Mono Lig Book",
"editor.fontSize": 14,
"editor.largeFileOptimizations": true,
"editor.highlightActiveIndentGuide": true,
"editor.indentSize": 4,
"editor.insertSpaces": true,
#!/bin/bash
result=$(grep -w "sales" "$1" | cut -d ' ' -f 4- | paste -sd+ | bc)
if [[ $result ]]
then
echo "Total Salary = $result"
else
echo "No employee found"
fi
#!/bin/bash
result=$(grep -w "01/12/2019" "$1" | sed "s/01\/12\/2019\s//")
if [[ $result ]]
then
echo "$result"
else
echo "No orders found"
fi
-- NOTE: general
-- require('lk/plugins/neuron')
require('lk/plugins/abolish')
require('lk/plugins/openbrowser')
-- NOTE: Navigation
require('lk/plugins/harpoon')
-- NOTE: UI
require('lk/plugins/colorizer')
vim.lsp.set_log_level('debug')
USER = vim.fn.expand('$USER')
local lsp_config = require('lspconfig')
local lsp_status = require('lsp-status')
local map = lk_utils.map
local telescope_mapper = require('lk.plugins.telescope.mappings')
require('lk.plugins.nvim_lsp.handlers')
require('lk.plugins.nvim_lsp.commands')
@lalitmee
lalitmee / lspconfig.lua
Last active March 31, 2021 16:49
neovim lsp config
require('lk.plugins.nvim_lsp.handlers')
require('lk.plugins.nvim_lsp.commands')
require('lk.plugins.nvim_lsp.mappings')
-- require('lspkind').init({})
-- lsp kind symbols
require('vim.lsp.protocol').CompletionItemKind =
{
@lalitmee
lalitmee / settings.lua
Created March 29, 2021 10:59
nvim settings
local fn = vim.fn
local api = vim.api
local executable = function(e)
return fn.executable(e) > 0
end
local opts_info = vim.api.nvim_get_all_options_info()
local opt = setmetatable(
{}, {