Skip to content

Instantly share code, notes, and snippets.

View jeromescuggs's full-sized avatar

andrew snow jeromescuggs

View GitHub Profile
@jeromescuggs
jeromescuggs / vimrc
Created December 21, 2022 02:55
my vimrc
"# Basic Settings
set nocompatible " vim-specific settings, non-vi-compatible
set backspace=indent,eol,start " Allow backspace in insert mode
set number " Line numbers
set ai
set hidden " Allow hidden buffers
filetype plugin indent on " Enable file type detection and do language-dependent indenting.
set history=100 " Default = 8
nnoremap ; :
set tabstop=4 " Default tabs are too big
@jeromescuggs
jeromescuggs / .zshrc-wsl
Created August 10, 2021 12:36
zshrc: detect WSL environment and configure X on windows
# WSL1 compatibility with X server (x410, others should work)
if [[ "$(</proc/version)" == *Microsoft* ]] 2>/dev/null; then
export WSL=1
export DISPLAY=localhost:0
export NO_AT_BRIDGE=1
export LIBGL_ALWAYS_INDIRECT=1
# sudo /usr/local/bin/clean-tmp-su
# else
# export WSL=0
fi
#!/bin/bash
# store the current dir
CUR_DIR=$(dirname $(readlink -f $0))
mkdir factory
cd $CUR_DIR/factory
wget https://hg.nginx.org/nginx-quic/archive/quic.tar.gz
tar xvf quic.tar.gz
#!/bin/bash
if [[ -d $HOME/lab ]]; then
JRM_GODIR=$HOME/lab
else
JRM_GODIR=$HOME
fi
echo "installing Golang to /usr/local/go..."
# define go binaries for x86, arm64, arm7
JRM_ARCH=`uname -m`
#!/bin/bash
# ------------ global aliases from ~/dotfiles --------------------------------
# try to keep this unedited if possible to maintain uniformity across desktops
alias ag='sudo apt-get'
alias agi='sudo apt-get install'
alias search='apt search'
alias refreshenv='source ~/.zshrc'
alias zshrc='vim ~/.zshrc'
@jeromescuggs
jeromescuggs / gist:548cc7bf3accc277d427fa263720957f
Created November 9, 2020 21:26
flawless WSL compatibility with X servers (x410, VcXsrv etc) for .zshrc
# WSL1 compatibility with X server (x410, others should work)
if [[ "$(</proc/version)" == *Microsoft* ]] 2>/dev/null; then
export WSL=1
export DISPLAY=localhost:0
export NO_AT_BRIDGE=1
export LIBGL_ALWAYS_INDIRECT=1
fi
# WSL2 compatibility
if [[ "$(</proc/version)" == *microsoft* ]] 2>/dev/null; then
BEGIN MESSAGE.
Eed32G23Ta8HKnq BfEhIs4vu3yjOjS WizLsWjpptljTAB b0QtSdKNQshEHOx
yL5zcQM98ap07RR ROtZWmzjzbzTCKq 6Xr2MZHgg4h7ul9 qgf1pMGMnmPbtrG
pB12pfCuAQC93mQ mJ82TPQcJqcda2k YHrmCXeFKg63pxh knxR1IOSZ3V4akV
2ngnWaab39vAckw gRMJOtS6ZMJZsKq SVE7r2BwlTVlNtt .
END MESSAGE.

Keybase proof

I hereby claim:

  • I am jeromescuggs on github.
  • I am jeromescuggs (https://keybase.io/jeromescuggs) on keybase.
  • I have a public key ASCDG3ArmdWZ9oqfffzMRj2EJ9fg4ToliqEB3QBLnPcB6Qo

To claim this, I am signing this object:

@jeromescuggs
jeromescuggs / i3
Last active September 14, 2020 00:05
# deps
# ----
# sudo apt install libxcb1-dev libxcb-keysyms1-dev libpango1.0-dev libxcb-util0-dev libxcb-icccm4-dev libyajl-dev libstartup-notification0-dev libxcb-randr0-dev libev-dev libxcb-cursor-dev libxcb-xinerama0-dev libxcb-xkb-dev libxkbcommon-dev libxkbcommon-x11-dev autoconf xutils-dev libtool
# manual compile for a needed dep
# ------------------------------
# mkdir tmp
# cd /tmp
# git clone https://github.com/Airblader/xcb-util-xrm
"\e[A": history-search-backward
"\e[B": history-search-forward