Skip to content

Instantly share code, notes, and snippets.

View bcawrse's full-sized avatar

Ben Cawrse bcawrse

View GitHub Profile
@bcawrse
bcawrse / tmux.conf
Last active October 29, 2021 16:54
tmux configuration file
## Use vi keys for scrolling etc.
set-window-option -g mode-keys vi
## Do not allow tmux to rename windows
set-option -g allow-rename off
## Extend how long pane #s are displayed
## Useful for `ctrl-b q` # to switch between panes
set -g display-panes-time 4000
@bcawrse
bcawrse / README.md
Created August 21, 2022 19:49 — forked from matusnovak/README.md
GPG + Git SSH Authentication and Signing on Windows 10

GPG + Git SSH Authentication and Signing on Windows 10

Introduction

This simple Gist will explain how to settup your GPG key to work for SSH authentication (with Git) and Git commit signing on Windows 10. This may seem straightforward on Linux, but there are certain tweaks needed on Windows.

No Cygwin, no MinGW, no Git Bash or any other Linux emulated environment. This works in pure Windows 10.

Software needed

@bcawrse
bcawrse / notes.md
Created December 24, 2022 04:37
GPG Setup Notes

GPG management

What do the files mean that may be in this directory.

[keyid].pub.asc Public ASCII armored primary key [keyid].sec.asc PRIVATE ASCII armored primary key [keyid].rev.crt Revocation certificate for primary key [keyid].ssb.asc PRIVATE ASCII armored Sub keys (should have all public keys, including primary) ssh.pub public authentication subkey exported for ssh

@bcawrse
bcawrse / .aliases
Last active May 24, 2023 19:48
Setup Zsh on fresh debian-based install
# General CLI utility.
alias la='ls -lAhF'
alias lar='ls -AhF'
alias ll='ls -lhF'
alias l='ls -hF'
alias cl='clear; lar'
alias c='clear;'
alias xg='xargs egrep -sin --color'
alias hostip="ip route get 0.0.0.0/0 | grep -Eo 'via \S+' | awk '{ print \$2 }'"