Skip to content
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
53 commits
Select commit Hold shift + click to select a range
7875765
Torch vim setup.
cesutherland Aug 31, 2024
15e74c2
Init lazy.vim.
cesutherland Oct 19, 2024
c085f26
Disable update notification.
cesutherland Oct 19, 2024
08c2693
Added fugitive.
cesutherland Oct 19, 2024
6925cf1
Add nvim.lazy lockfile.
cesutherland Oct 24, 2024
92db057
Add tabular.
cesutherland Oct 24, 2024
a39a1ed
Add initial git mappings.
cesutherland Oct 24, 2024
0d3c6d8
Add indentation.
cesutherland Oct 24, 2024
7ca5890
Add relative line numbering.
cesutherland Oct 24, 2024
841122f
Tabs over buffers 🫣
cesutherland Oct 24, 2024
ef718d9
Set up gruvbox colorscheme.
cesutherland Oct 24, 2024
ecf0f01
Add lualine for statusline.
cesutherland Oct 24, 2024
566bbb5
Add fuzzy file completion with telescope.
cesutherland Oct 24, 2024
7ffd8f5
Add coc for language server.
cesutherland Oct 24, 2024
2e3fcc3
Add language server install helper.
cesutherland Oct 25, 2024
22a27d4
Merge branch 'main' into nvim
cesutherland Oct 26, 2024
849fd1a
Add quickfix list mappings.
cesutherland Oct 26, 2024
1eae3ed
Add vim-go.
cesutherland Oct 26, 2024
f659640
Add ctrlp for GoDecls.
cesutherland Oct 29, 2024
43869a4
Switch leaders 😬
cesutherland Oct 29, 2024
fd0ad04
Add vim-go mappings.
cesutherland Oct 31, 2024
19b0b96
Add go/bin to path.
cesutherland Oct 31, 2024
fe87dc7
Add vim-rhubarb for GBrowse links.
cesutherland Nov 5, 2024
18e2d7b
Update battery line for osx.
cesutherland Nov 27, 2024
6b75f36
Add initial zshrc.
cesutherland Nov 27, 2024
4bd6047
Configure nvim for git.
cesutherland Nov 28, 2024
fc472b5
Fix config ordering (for vim bindings).
cesutherland Nov 28, 2024
870e7c1
Update lockfile.
cesutherland Nov 28, 2024
27cf5bc
Add techdocs cli.
cesutherland Dec 11, 2024
a12e910
Minor updates for moving into new computer.
cesutherland Dec 11, 2024
b5aaead
Add vim-jsonnet.
cesutherland Dec 11, 2024
74a0e28
Configure php-ls.
cesutherland Dec 11, 2024
4f75377
Custom zsh theme... in progress.
cesutherland Dec 13, 2024
6a1e370
Switch to custom theme.
cesutherland Dec 13, 2024
6cfe362
Flower power.
cesutherland Dec 13, 2024
8afdc5d
Add rancher.
cesutherland Dec 31, 2024
17ff4fc
Extract secerts.
cesutherland Dec 31, 2024
e5a490c
Include path in lualine.
cesutherland Dec 31, 2024
0bfa408
Fix support for build tags e2e & integration.
cesutherland Dec 31, 2024
bc2df38
Fix the git status line.
cesutherland Dec 31, 2024
bade7c8
Add unpushed status.
cesutherland Dec 31, 2024
0d441f8
Add wildmode.
cesutherland Jan 3, 2025
a0551b5
Lose docker, gain tools.
cesutherland Feb 25, 2025
9246df3
Add autoread.
cesutherland Apr 12, 2025
960757c
Ignore packages.
cesutherland Apr 12, 2025
4960200
Diff.
cesutherland Apr 12, 2025
7dbba05
Disable swap.
cesutherland Apr 14, 2025
dfcd634
Add docker lib to ignores.
cesutherland Apr 14, 2025
5e2adeb
Add terraform.
cesutherland Apr 14, 2025
41b0562
Update lock.
cesutherland Apr 14, 2025
b639452
Config updates for zshrc.
cesutherland Jun 11, 2025
1e4dcba
Update lazy lock.
cesutherland Aug 20, 2025
bca12e1
Disable jsonnet format on save.
cesutherland Aug 28, 2025
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
101 changes: 1 addition & 100 deletions .gitmodules
Original file line number Diff line number Diff line change
@@ -1,102 +1,3 @@
[submodule "vim/bundle/vim-fugitive"]
path = vim/bundle/vim-fugitive
url = git://github.com/tpope/vim-fugitive.git
[submodule "vim/bundle/vim-coffee-script"]
path = vim/bundle/vim-coffee-script
url = git://github.com/kchmck/vim-coffee-script.git
[submodule "vim/bundle/vim-stylus"]
path = vim/bundle/vim-stylus
url = git://github.com/wavded/vim-stylus.git
[submodule "vim/bundle/vim-less"]
path = vim/bundle/vim-less
url = https://github.com/groenewege/vim-less.git
[submodule "vim/bundle/vim-numbers"]
path = vim/bundle/vim-numbers
url = git://github.com/myusuf3/numbers.vim.git
[submodule "vim/bundle/vim-javascript"]
path = vim/bundle/vim-javascript
url = https://github.com/pangloss/vim-javascript.git
[submodule "vim/bundle/vim-json"]
path = vim/bundle/vim-json
url = https://github.com/elzr/vim-json.git
[submodule "vim/bundle/editorconfig-vim"]
path = vim/bundle/editorconfig-vim
url = https://github.com/editorconfig/editorconfig-vim.git
[submodule "vim/bundle/syntastic"]
path = vim/bundle/syntastic
url = https://github.com/scrooloose/syntastic.git
[submodule "vim/bundle/ctrlp.vim"]
path = vim/bundle/ctrlp.vim
url = [email protected]:ctrlpvim/ctrlp.vim.git
[submodule "vim/bundle/vim-php"]
path = vim/bundle/vim-php
url = [email protected]:StanAngeloff/php.vim.git
[submodule "vim/bundle/tabular"]
path = vim/bundle/tabular
url = git://github.com/godlygeek/tabular.git
[submodule "vim/bundle/vim-vue"]
path = vim/bundle/vim-vue
url = https://github.com/posva/vim-vue.git
[submodule "vim/bundle/vim-rhubarb"]
path = vim/bundle/vim-rhubarb
url = [email protected]:tpope/vim-rhubarb.git
[submodule "vim/bundle/vim-blade"]
path = vim/bundle/vim-blade
url = git://github.com/jwalton512/vim-blade.git
[submodule "vim/bundle/typescript-vim"]
path = vim/bundle/typescript-vim
url = [email protected]:leafgarland/typescript-vim.git
[submodule "vim/bundle/vim-jsx-typescript"]
path = vim/bundle/vim-jsx-typescript
url = [email protected]:peitalin/vim-jsx-typescript.git
[submodule "vim/bundle/vim-gitgutter"]
path = vim/bundle/vim-gitgutter
url = [email protected]:airblade/vim-gitgutter.git
[submodule "Pictures"]
path = Pictures
url = [email protected]:cesutherland/Pictures.git
[submodule "vim/bundle/coc"]
path = vim/bundle/coc
url = [email protected]:neoclide/coc.nvim.git
[submodule "vim/bundle/nerdtree"]
path = vim/bundle/nerdtree
url = [email protected]:preservim/nerdtree.git
[submodule "vim/bundle/gruvbox"]
path = vim/bundle/gruvbox
url = [email protected]:gruvbox-community/gruvbox.git
[submodule "vim/bundle/vim-airline"]
path = vim/bundle/vim-airline
url = [email protected]:vim-airline/vim-airline.git
[submodule "vim/bundle/vim-typescript"]
path = vim/bundle/vim-typescript
url = [email protected]:leafgarland/typescript-vim.git
[submodule "vim/bundle/vim-jsx-pretty"]
path = vim/bundle/vim-jsx-pretty
url = [email protected]:MaxMEllon/vim-jsx-pretty.git
[submodule "vim/bundle/ag-vim"]
path = vim/bundle/ag-vim
url = [email protected]:rking/ag.vim.git
[submodule "vim/bundle/vim-mdx-js"]
path = vim/bundle/vim-mdx-js
url = [email protected]:jxnblk/vim-mdx-js.git
[submodule "vim/bundle/vim-node"]
path = vim/bundle/vim-node
url = https://github.com/moll/vim-node
[submodule "vim/bundle/vim-surround"]
path = vim/bundle/vim-surround
url = [email protected]:tpope/vim-surround.git
[submodule "vim/bundle/vim-markdown"]
path = vim/bundle/vim-markdown
url = [email protected]:plasticboy/vim-markdown.git
[submodule "vim/bundle/vim-terraform"]
path = vim/bundle/vim-terraform
url = https://github.com/hashivim/vim-terraform.git
[submodule "vim/bundle/vdebug"]
path = vim/bundle/vdebug
url = [email protected]:vim-vdebug/vdebug.git
[submodule "vim/bundle/vim-jsonnet"]
path = vim/bundle/vim-jsonnet
url = [email protected]:google/vim-jsonnet.git
[submodule "vim/bundle/vim-go"]
path = vim/bundle/vim-go
url = [email protected]:fatih/vim-go.git
url = [email protected]:cesutherland/Pictures.git
4 changes: 2 additions & 2 deletions bashrc
Original file line number Diff line number Diff line change
Expand Up @@ -266,7 +266,7 @@ export VOLTA_HOME="$HOME/.volta"
export PATH="$VOLTA_HOME/bin:$PATH"

# Rust
. "$HOME/.cargo/env"
[[ -s "$HOME/.cargo/env" ]] && source "$HOME/.cargo/env"

# go
export PATH=$PATH:/usr/local/go/bin
export PATH=$PATH:/usr/local/go/bin:~/go/bin
128 changes: 128 additions & 0 deletions bin/run-techdocs-local.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,128 @@
#!/bin/bash

# NAME
# run-techdocs-local.sh - invokes the techdocs-preview-local docker image to generate a site from Backstage documentation and
# serve it
#
# SYNOPSIS
# run-techdocs-local.sh --verbose --catalog-file=PATH --port=NUMBER --entity-directory=PATH
#
# DESCRIPTION
# Parses command line arguments and runs the techdocs-preview-local docker image to generate a site from Backstage documentation and
# serve it

# bash strict mode
set -euo pipefail

# constants
IMAGE_NAME=artifactory.squarespace.net/squarespace/backstage/backstage-techdocs-preview-local
IMAGE_TAG=latest

# flag default values
VERBOSE=false
PORT=7007
CATALOG_FILE=""
ENTITY_DIRECTORY=$(pwd)

# check_prerequisites ensures that all programs needed to run this script are
# installed. It will fatally exit the script if one of the prerequites are not
# found.
check_prerequisites() {
reqs=("basename" "readlink" "docker")
for req in "${reqs[@]}"; do
command -v "$req" &>/dev/null || {
echo "Requirement $req not found. Install it and try again"
exit 1
}
done
}

# help provides usage information
help() {
echo "Usage: $(basename $0) [OPTIONS]"
echo
echo "Options:"
echo "--verbose Enable verbose mode"
echo "--port=[NUMBER] Set port to [NUMBER]. Default: 7007"
echo "--catalog-file=[PATH] Set path of the catalog file to [PATH]. Script will search if none provided"
echo "--entity-directory=[PATH] Set path of the entity directory to [PATH]. Default: Current directory ($(pwd))"
}

# parse_flags parses command line flags. Prints the help output if an invalid flag is passed
parse_flags() {
while (( "$#" )); do
case "$1" in
--verbose)
VERBOSE=true
shift
;;
--verbose=*)
VERBOSE="${1#*=}"
shift
;;
--port=*)
PORT="${1#*=}"
shift
;;
--catalog-file=*)
CATALOG_FILE="${1#*=}"
shift
;;
--entity-directory=*)
ENTITY_DIRECTORY="${1#*=}"
shift
;;
--help)
help
exit 0
shift
;;
--) # end argument parsing
shift
break
;;
-*|--*=) # unsupported flags
echo "Error: Unsupported flag $1" >&2
help
exit 1
;;
esac
done
}

# resolve_relative_links resolves any relative links passed as command line flags
# and turns them into absolute links
resolve_relative_links() {
CATALOG_FILE_VOLUME=""
MOUNTED_CATALOG_FILE=""
if [ ! -z "${CATALOG_FILE}" ]; then
CATALOG_FILE=$(readlink -f $CATALOG_FILE)
CATALOG_FILE_VOLUME="-v ${CATALOG_FILE}:/usr/src/catalog/catalog-info.yml:ro"
MOUNTED_CATALOG_FILE="/usr/src/catalog/catalog-info.yml"
fi
ENTITY_DIRECTORY=$(readlink -f $ENTITY_DIRECTORY)
}

# invoke_docker runs the docker image to build and display techdocs
invoke_docker() {
docker run \
--pull always \
--platform linux/amd64 \
-v ${ENTITY_DIRECTORY}:/usr/src/entity/:ro ${CATALOG_FILE_VOLUME} \
--name techdocs-preview \
-p ${PORT}:7007 \
-e CATALOG_FILE=${MOUNTED_CATALOG_FILE} \
-e VERBOSE=${VERBOSE} \
-e HOST_PORT=${PORT} \
--rm -it \
${IMAGE_NAME}:${IMAGE_TAG}
}

main() {
parse_flags "$@"
check_prerequisites
resolve_relative_links
invoke_docker
}

main "$@"
18 changes: 5 additions & 13 deletions bin/setup
Original file line number Diff line number Diff line change
Expand Up @@ -7,11 +7,10 @@ sudo add-apt-repository multiverse
sudo apt-get install \
aptitude \
git \
ack-grep \
ack \
silversearcher-ag \
neovim \
vim \
vim-gtk \
tmux \
tmuxinator \
firefox \
Expand All @@ -22,14 +21,14 @@ sudo apt-get install \
g++ \
redshift \
libnotify-bin \
sqlite \
postgresql \
steam \
vlc \
mplayer \
mpv \
usb-creator-kde \
python-is-python3 \
python3-venv \
build-essential \
libssl-dev \
jq \
Expand All @@ -39,16 +38,9 @@ sudo apt-get install \
fonts-powerline \
shellcheck \
watchman \
acpi

# Docker:
sudo apt install \
docker \
docker-compose \
sudo groupadd docker
sudo usermod -aG docker $USER
newgrp docker

acpi \
mkcert \
gnupg2

# Laptop:
# sudo apt-get install powertop a2ps acpi
Expand Down
6 changes: 3 additions & 3 deletions bin/tmux_status
Original file line number Diff line number Diff line change
Expand Up @@ -76,8 +76,8 @@ sub print_battery_ioreg {

#gather battery info
my @info = split(/%?;?\s+/, $battery);
my $state = $info[3];
my $percent = $info[2];
my $state = $info[4];
my $percent = $info[3];

#print a lightning when charging:
my $decoration = '';
Expand All @@ -98,7 +98,7 @@ sub print_battery_status {
my $spark = $sparks[POSIX::floor(0.0799 * $percent)];

# color text when battery low
if ($state eq 'Discharging') {
if ($state eq 'discharging') {
if ($percent <= 40) {
print $colors{'yellow'};
}
Expand Down
6 changes: 6 additions & 0 deletions config/nvim/coc-settings.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
{
"intelephense.environment.phpVersion": "8.3.0",
"go.goplsEnv": {
"GOFLAGS": "-tags=e2e,integration"
}
}
Loading