Skip to content

Instantly share code, notes, and snippets.

@worldofgeese
worldofgeese / main.md
Created January 28, 2024 18:51
Logseq

tags:: Resources graph-hide:: true

  • template:: Lazy RPG Prep checklist template-including-parent:: false graph-hide:: true
    • characters:: [[Toad]] [[Ashley Kendall Anderson]] [[Toros Acale]] [[Ember]] [[Butler]]
    • Session summary


# Define the base directory
$baseDir = Join-Path (Resolve-Path "~") ".garden"
$gardenBinPath = Join-Path $baseDir "bin"
# Remove existing Garden binary directory
Remove-Item -Path $baseDir -Recurse -Force -ErrorAction SilentlyContinue
# Fetch the latest Garden release URL for Windows
$releaseData = Invoke-RestMethod -Uri "https://api.github.com/repos/garden-io/garden/releases/latest"
$assetUrl = $releaseData.assets | Where-Object { $_.browser_download_url -match "windows-amd64.zip$" } | Select-Object -ExpandProperty browser_download_url
@worldofgeese
worldofgeese / .gitpod.yml
Last active August 21, 2023 15:07
Development containers compatible with Gitpod and GitHub Codespaces
image:
file: prebuild-devcontainer/Dockerfile
tasks:
- init: |
direnv allow
vscode:
extensions:
- jetpack-io.devbox
- ms-python.python
FROM gitpod/workspace-base:latest
USER root
RUN addgroup --system nixbld \
&& adduser gitpod nixbld \
&& for i in $(seq 1 30); do useradd -ms /bin/bash nixbld$i && adduser nixbld$i nixbld; done \
&& mkdir -m 0755 /nix && chown gitpod /nix \
&& mkdir -p /etc/nix && echo 'sandbox = false' > /etc/nix/nix.conf
USER gitpod
@worldofgeese
worldofgeese / download_and_install.sh
Created August 16, 2023 21:43
Fira Code install script
#!/usr/bin/env bash
fonts_dir="${HOME}/.local/share/fonts"
if [ ! -d "${fonts_dir}" ]; then
echo "mkdir -p $fonts_dir"
mkdir -p "${fonts_dir}"
else
echo "Found fonts dir $fonts_dir"
fi
@worldofgeese
worldofgeese / getting-started.md
Last active June 3, 2023 10:35
Clear Linux on Framework setup

Setup Clear Linux on Framework

Allow user to execute privileged commands without password

sudo mkdir -p /etc/sudoers.d && echo 'taohansen ALL=(ALL) NOPASSWD: ALL' | sudo tee /etc/sudoers.d/visudo > /dev/null

Enable powersaving

sudo swupd bundle-add TLP 
sudo systemctl enable tlp.service
@worldofgeese
worldofgeese / cloud-shell-garden-tutorial.md
Last active May 24, 2023 15:11
Cloud Shell Garden tutorial

Garden quickstart for Cloud Shell

Let's get started

This quickstart will show you how to start a minikube cluster and deploy a simple application to it using Garden.

  • Setup your environment
    • Install Garden and start a minikube cluster you'll use to deploy your app to.
  • Deploy the app
  • You will be guided through the process of deploying a simple app to the cluster using Garden.

Old example using Modules which we're going to transform into the Actions driven format

The example mentions cockroachdb, but the old version never mentions how that was deployed but shows the dependency on my-cockroachdb while the new version drops the cockroachdb entirely. I think it would be good to mention how one would express that dependency. Also previously the container module depended on the create-db task but now it’s just a Run. How would I ensure that the test and deploy actually spawn the DB first and then run create-db before?

We’ve just announced a new Garden version, which we’re naming Bonsai! This update is one of the most substantial of the year, as it incorporates a range of new features and enhancements that significantly augment the power and flexibility of Garden ✈️.

Garden’s philosophy centers around the idea that every step involved in developing and testing an application falls into one of four types, each with its own semantics:  

![](https:

@worldofgeese
worldofgeese / backstage-getting-started.md
Last active March 17, 2023 09:57
Backstage from zero
curl https://get.volta.sh | bash
volta install node for latest LTS
volta install yarn (wrong yarn version)
volta install yarn@v1.22.19
npx @backstage/create-app@latest
@worldofgeese
worldofgeese / multipass-garden-devenv.md
Last active March 2, 2023 13:35
A developer environment for Garden created with Canonical's Multipass

Multipass Garden Devenv

Launch a Minikube blueprint

multipass launch minikube --name garden-dev --memory 4G --disk 60G --cpus 2

Install Homebrew for Linux