Skip to content

Instantly share code, notes, and snippets.

@samsalisbury
samsalisbury / vim-go-build-tags.vim
Created May 8, 2018 16:52
Getting vim-go and syntastic playing nicely with go build tags.
# First update vim-go and syntastic to latest versions.
# Then install/update go tools using :GoInstallBinaries and :GoUpdateBinaries
# Set default go build tags... Update ad-hoc with :GoBuildTags <new list>
let g:go_build_tags = "smoke integration"
# Get Syntastic to use build tags...
let g:syntastic_go_go_test_args = '-tags="smoke integration"'
let g:syntastic_go_go_build_args = '-tags="smoke integration"'
@samsalisbury
samsalisbury / query.jq
Last active March 13, 2019 18:18
Generating spreadsheet of Sous manifests + owners
[
.[]
|
select(
.NumInstances != 0
and ( .SourceID.Location | startswith("github.com/sous") | not )
and ( .SourceID.Location | contains("hack") | not )
and ( .SourceID.Location | contains("demo") | not )
and ( .SourceID.Location | contains("sous") | not )
)

Keybase proof

I hereby claim:

  • I am samsalisbury on github.
  • I am samsalisbury (https://keybase.io/samsalisbury) on keybase.
  • I have a public key ASB9YPaXQaf3WTgYzmcXIFh2fs6Vo8Lqd-9dS6VYuD9XqQo

To claim this, I am signing this object:

#!/usr/bin/env bash
set -Eeuo pipefail
echo "==> Creating volume 'vol1'..."
docker volume create vol1
echo "==> Writing 'hi!'..."
docker run --rm -v vol1:/mounted busybox sh -c 'echo "hi!" > /mounted/hi.txt'
@samsalisbury
samsalisbury / centos-docker
Created November 29, 2022 11:00
docker-compose
FROM centos:7
RUN curl -o /etc/yum.repos.d/hashicorp repo http://rpm.releases.hashicorp.com/RHEL/hashicorp.repo
RUN mkdir /var/linux-build-info/
RUN touch /var/linux-build-info/newfile.txt
COPY do-stuff /
CMD /do-stuff
@samsalisbury
samsalisbury / extra-styles.css
Created July 11, 2023 19:26
fieldnotes.tech feather.io css
@media (min-width: 700px) {
:root {
--title-font-size: 6rem !important;
--logo-size: 8rem !important;
}
}
@media (max-width: 700px) {
:root {
--title-font-size: 4rem !important;
--logo-size: 6rem !important;