Skip to content

Instantly share code, notes, and snippets.

View dsewnr's full-sized avatar
⛰️
LNT

Peter Lu dsewnr

⛰️
LNT
View GitHub Profile
@dsewnr
dsewnr / init.vim
Created June 1, 2021 16:02
Neovim rc file
" Specify a directory for plugins
" - For Neovim: stdpath('data') . '/plugged'
" - Avoid using standard Vim directory names like 'plugin'
call plug#begin('~/.vim/plugged')
" On-demand loading
Plug 'KeitaNakamura/neodark.vim'
let g:neodark#background = '#202020'
" let g:neodark#use_256color = 1
Plug 'ryanoasis/vim-devicons'
@dsewnr
dsewnr / ecr-cred-updater.sh
Created July 22, 2021 06:46 — forked from cablespaghetti/ecr-cred-updater.sh
Automatic Updating Amazon ECR Credentials in Kubernetes
#!/bin/bash
# Get directory of script
DIR="$( cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd )"
if [[ $# -ne 1 ]]
then
echo "ERROR: This script expects the namespace name to be given as an argument"
echo "e.g. ./ecr-cred-updater.sh my-namespace"
exit 1
@dsewnr
dsewnr / gnupg_scdaemon.md
Created November 6, 2021 15:39 — forked from artizirk/gnupg_scdaemon.md
OpenPGP SSH access with Yubikey and GnuPG

OpenPGP SSH access with Yubikey and GnuPG

Yubikey, Smart Cards, OpenSC and GnuPG are pain in the ass to get working. Those snippets here sould help alleviate pain.

Yubikey Config under Ubuntu

To reset and disable not used modes on Yubikey you need the ykman program

You can install it using those commands

@dsewnr
dsewnr / config.lua
Created February 18, 2025 01:57
My LunarVim Config
-- Read the docs: https://www.lunarvim.org/docs/configuration
-- Example configs: https://github.com/LunarVim/starter.lvim
-- 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
lvim.colorscheme = "onedark_dark"
lvim.plugins = {
{ "almo7aya/openingh.nvim" },