Skip to content

Instantly share code, notes, and snippets.

View darthfork's full-sized avatar
:shipit:

Abhishek Rai darthfork

:shipit:
View GitHub Profile
@darthfork
darthfork / docker_in_home.md
Last active April 5, 2023 19:03
Store docker images in /home/ filesystem (linux)

Store docker images in /home/ filesystem (linux)

  1. Stop docker service
sudo systemctl stop docker.service docker.socket
  1. Create a directory in home filesystem for docker images
@darthfork
darthfork / ssh_secrets.md
Created September 1, 2025 19:03
SSH config for passing secrets between host machine and virtual machine

Pass Secrets over SSH

To pass secrets over ssh config, follow the instructions below

Host machine config

On your host machine create an ssh config for your virtual machine in ~/.ssh/config as follows, and list the secrets you want to share using SendEnv

Host dev
@darthfork
darthfork / vimrc
Created September 3, 2025 20:41
Dump of old vimrc to be used in case neovim is not available
" .vimrc - Vim configuration file
let mapleader=' '
filetype plugin on
filetype indent on
syntax enable
runtime ftplugin/man.vim
" Configuration Options
set guicursor=
@darthfork
darthfork / awscreds_lpass
Last active September 30, 2025 19:20
Dump of some old binaries that were kicked out of the dotfiles repo as they are no longer in active use
#!/usr/bin/env bash
# Sample aws credentials file
# [default]
# credential_process = sh -c "$HOME/.local/bin/awscreds_lpass personal_aws_creds"
readonly lastPassEntry=$1
readonly accessKeyId=$(lpass show --username "$lastPassEntry")
readonly secretAccessKey=$(lpass show --password "$lastPassEntry")