Skip to content

Instantly share code, notes, and snippets.

View zyegfryed's full-sized avatar

Sébastien Fievet zyegfryed

View GitHub Profile
@zyegfryed
zyegfryed / .aliases
Last active January 15, 2021 09:33
kargo alias
#
# Usage: kargo manifests kargo.edn
#
# Note: MUST be a function and NOT an alias because `pwd` MUST be interpreted each time the command runs.
# When using an alias, `pwd` will resolve to $HOME instead!
#
function kargo() {
docker run --rm -v `pwd`:`pwd` -w `pwd` \
-e ENVIRONMENT=${ENVIRONMENT:=preprod} \
-e ZONE=${ZONE:=ch-gva2-1} \
@zyegfryed
zyegfryed / .aliases
Created January 15, 2021 09:23
cljfmt
#
# Usage: cljfmt [check|fix] <FILE_OR_PATH>
#
alias cljfmt="clojure -Sdeps '{:deps {cljfmt/cljfmt {:mvn/version \"0.7.0\"}}}' -m cljfmt.main"
@zyegfryed
zyegfryed / cloudinit.yml
Last active July 30, 2021 09:16
API error when provisioning VMs with cloud-init
#cloud-config
apt:
sources:
sury.list:
source: "deb https://packages.sury.org/php $RELEASE main"
key: |
-----BEGIN PGP PUBLIC KEY BLOCK-----
mQGNBFyPb58BDADTDlJLrGJktWDaUT0tFohjFxy/lL2GcVYp4zB981MWIDC0aIQZ