Skip to content

Instantly share code, notes, and snippets.

View johanforssell's full-sized avatar

Johan Forssell johanforssell

  • NaN
  • Sweden
  • 03:20 (UTC +02:00)
View GitHub Profile
@johanforssell
johanforssell / find_unused_amis.sh
Created April 29, 2024 08:04
Find all of your own AMIs which are not in use by any EC2 instance, nor are a "backup"
#!/usr/bin/env bash
# Find your AMIs which are not in use by any EC2 instance.
# Filter by a keyword; defaults to removing 'backup'.
# Set AWS credentials and region as normal.
# Remove AMIs with this keyword in the name
FILTERED_KEYWORD="backup"
aws ec2 describe-instances --query 'Reservations[*].Instances[*].ImageId' --output text | sort > /tmp/aws_ec2_ami.all
@johanforssell
johanforssell / aws-vpn-starter.scpt
Last active February 7, 2025 14:11
Start Amazon AWS Client VPN and autopress the connect-button
-- Open the AWS Client VPN app and click the first button in the list.
-- Created because the app itself refuses to press the button on "enter" or "space".
--
-- Open this in "Script Editor", save as Application, start the new app and give it permission to "control your computer" under Accessibility in System Settings.
--
-- External dependency: 'cliclick' installed as `/opt/homebrew/bin/cliclick`!
-- brew install cliclick
-- Using this because I COULD NOT GET reliable clicking done with Apple Script >:-/
try
@johanforssell
johanforssell / zelda botw cooking recepies.md
Created August 8, 2025 08:58
Zelda Breath of the Wild Cooking recepies

Sourcing

This document have not been fact checked by me. Sourced from https://www.reddit.com/r/botw/comments/czbgop/over_100_recipes_i_have_found_most_useful_botw/.

HEARTS FULL RECOVERY PLUS EXTRA

  • +25 5x big hearty radish or 5x big hearty salmon radish
  • +20 Durian x5
  • +12 2x palm fruit, 3x hearty Durian
  • +9 1x Hyrule herb, 1x hearty radish, 3x hearty bass
  • +8 1x big hearty truffle, 1x hyrule herb, 1x hyrule Bass, 2x hearty bass
  • +8 1x hearty salmon, 1x hearty radish, 1x truffle, 2x Hyrule Bass