Skip to content

Instantly share code, notes, and snippets.

View dbrtly's full-sized avatar

Daniel Bartley dbrtly

View GitHub Profile
#!/bin/sh
VERSION=1.11.5
# Determine the platform and architecture
get_architecture() {
UNAME_S="$(uname -s)"
UNAME_M="$(uname -m)"
case "$UNAME_S" in
@dbrtly
dbrtly / jj-installer.sh
Last active August 4, 2025 02:36
How to install Jujutsu/jj on google cloud shell
#/usr/local/bin/
# download and decompress binary, add executable permission, move app to apps dir
# set variables
TAG_NAME=$(gh release list --repo jj-vcs/jj --limit 1 --json tagName | jq -r '.[0].tagName')
if [[ "$(uname -m)" == *x86* ]]; then ARCH="x86_64"; else ARCH="aarch64"; fi
OS_TYPE=$(uname -s | tr '[:upper:]' '[:lower:]')
# download release
@dbrtly
dbrtly / github-workflow-cloud-run.yaml
Created December 21, 2023 21:06
github-workflow-cloud-run-yaml
- name: Setup service manifest
working-directory: ./application
env:
CLOUDRUN_SA: ${{ secrets.CLOUD_RUN_SA }}
FIRESTORE_DB: ${{ secrets.FIRESTORE_DB }}
APP_NAME: ${{ env.app_name }}
GCP_PROJECT: ${{ env.gcp_project }}
GCP_PROJECT_NUMBER: ${{ env.gcp_project_number }}
GCP_REGION: ${{ env.gcp_region }}
run: |