layout | title | date | categories |
---|---|---|---|
post |
Apple Silicon and Virtual Machines: Beating the 2 VM Limit |
2023-08-08 07:00:00 -0600 |
macOS |
So you've got a cool app in Ruby, and you want to share it with your friends, but they don't love Ruby as much as you.
What do you do? Package it up along with the Ruby runtime and give it to them. Simple right? Maybe not so.
Thankfully smarter cookies than me, have tackled the problem, here is a map of the current state of play
- Traveling-ruby
- Rb2exe revisted to use the updated traveling-ruby releases in this fork
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
# We don't need return codes for "$(command)", only stdout is needed. | |
# Allow `[[ -n "$(command)" ]]`, `func "$(command)"`, pipes, etc. | |
# shellcheck disable=SC2312 | |
set -u | |
abort() { | |
printf "%s\n" "$@" >&2 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
PROJECT=${PWD##*/} | |
PLATFORM=${PLATFORM:-macos-latest} | |
WORKFLOW=${WORKFLOW:-test.yml} | |
IMAGE=${IMAGE:-runner} | |
SSH_USER=${SSH_USER:-runner} | |
SSH_PASS=${SSH_PASS:-runner} | |
# IMAGE=${IMAGE:-ghcr.io/cirruslabs/macos-ventura-xcode:14.3.1} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
name=$(basename $0) | |
prlctl list --info "${1}" > /dev/null | |
if [ "$?" -eq 0 ] ; then | |
os="$1" | |
id=$(prlctl snapshot-list "${os}" | grep -oE '\*{.*\}' | tr -d '*{}') | |
action="$2" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash -l | |
# prlctl-ssh | |
# ========== | |
# Parallels Desktop command line utility for open a new SSH connection to a given virtual machine. | |
# If the virtual machine is stopped or suspended the utility will attempt to respawn it before it attemts to SSH into the machine. | |
# ## Preconditions |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
packer { | |
required_plugins { | |
tart = { | |
version = ">= 1.2.0" | |
source = "github.com/cirruslabs/tart" | |
} | |
} | |
} | |
source "tart-cli" "tart" { |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
gh release view --repo $REPO $tag --json assets | jq '[.[]|.[]|.name ]' |\ | |
jq -r 'group_by((if contains("linux") then "linux" elif contains("osx") then "osx" elif contains("windows") then "windows" else null end), | |
(if contains("arm64") then "arm64" elif contains("x86_64") then "x86_64" elif contains("-x86.") then "x86" else null end)) | map({platform: .[0]|(if contains("linux") then "linux" elif contains("osx") or contains("darwin") or contains("apple") then "macos" elif contains("windows") then "windows" else null end), arch: .[0]|(if contains("arm64") then "arm64" elif contains("x86_64") then "x86_64" elif contains("-x86.") then "x86" else null end), names: map({name: .})})'; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
pact | |
pactflow.cookie.json | |
tokens.response.json | |
.env | |
.vscode |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
cookie.txt |
NewerOlder