Skip to content

Instantly share code, notes, and snippets.

@abtiwary
abtiwary / init.lua
Last active December 25, 2024 14:33
init.lua.latest
-- leader
vim.keymap.set("n", "<Space>", "<Nop>", { silent = true })
vim.g.mapleader = " "
-- line numbering
vim.opt.number = true
vim.opt.relativenumber = true
--
vim.opt.timeoutlen = 400
@abtiwary
abtiwary / alacritty.toml
Created September 7, 2024 13:48
This lives in ~/.config/alacritty/
import = [
"/home/pimeson/.config/alacritty/alacritty-theme/themes/gruvbox_dark.toml"
]
[font]
size = 12.0
[font.normal]
family = "MesloLGS NF"
@abtiwary
abtiwary / init.lua
Last active July 1, 2024 00:14
Neovim Lua config as of 2024-03-14
-- leader
vim.keymap.set("n", "<Space>", "<Nop>", { silent = true })
vim.g.mapleader = " "
-- line numbering
vim.opt.number = true
vim.opt.relativenumber = true
--
vim.opt.timeoutlen = 400
@abtiwary
abtiwary / transcode_mp4to3.sh
Created September 20, 2023 13:03
Transcode mp4 files to mp3
#!/bin/bash
mkdir ./mp3_out
for f in ./*.mp4; do
echo "Converting ${f} to mp3"
ffmpeg -i "${f}" -b:a 192K -vn ./mp3_out/"${f}".mp3
done
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
<plist version="1.0">
<dict>
<key>Ansi 0 Color</key>
<dict>
<key>Alpha Component</key>
<real>1</real>
<key>Blue Component</key>
<real>0.0</real>
@abtiwary
abtiwary / .zshrc_2022
Created December 15, 2022 13:35
dotfile - zshrc
# Enable Powerlevel10k instant prompt. Should stay close to the top of ~/.zshrc.
# Initialization code that may require console input (password prompts, [y/n]
# confirmations, etc.) must go above this block; everything else may go below.
if [[ -r "${XDG_CACHE_HOME:-$HOME/.cache}/p10k-instant-prompt-${(%):-%n}.zsh" ]]; then
source "${XDG_CACHE_HOME:-$HOME/.cache}/p10k-instant-prompt-${(%):-%n}.zsh"
fi
# If you come from bash you might have to change your $PATH.
# export PATH=$HOME/bin:/usr/local/bin:$PATH
@abtiwary
abtiwary / .vimrc_2022
Created December 15, 2022 13:33
doltfile - vimrc as of 2022
set nocompatible " be iMproved, required
filetype off " required
call plug#begin('~/.vim/plugged')
Plug 'tpope/vim-fugitive'
Plug 'vim-airline/vim-airline'
Plug 'vim-airline/vim-airline-themes'
Plug 'powerline/powerline'
@abtiwary
abtiwary / .zshrc
Last active October 9, 2021 15:26
Zshrc 2021
# Enable Powerlevel10k instant prompt. Should stay close to the top of ~/.zshrc.
# Initialization code that may require console input (password prompts, [y/n]
# confirmations, etc.) must go above this block; everything else may go below.
if [[ -r "${XDG_CACHE_HOME:-$HOME/.cache}/p10k-instant-prompt-${(%):-%n}.zsh" ]]; then
source "${XDG_CACHE_HOME:-$HOME/.cache}/p10k-instant-prompt-${(%):-%n}.zsh"
fi
ZSH_DISABLE_COMPFIX="true"
# If you come from bash you might have to change your $PATH.
@abtiwary
abtiwary / .vimrc
Created July 16, 2021 10:02
Vimrc 2021
set nocompatible " be iMproved, required
filetype off " required
" set the runtime path to include Vundle and initialize
set rtp+=~/.vim/bundle/Vundle.vim
call vundle#begin()
" alternatively, pass a path where Vundle should install plugins
"call vundle#begin('~/some/path/here')