Skip to content

Instantly share code, notes, and snippets.

View mikemilla's full-sized avatar

Mike Miller mikemilla

View GitHub Profile
@mikemilla
mikemilla / gist:4224408b500bd4cf491f8ff0920214aa
Created October 1, 2024 03:15
Build Flutter app via command
#!/bin/bash
# Ask which version to build 🤔
read -p "Which version do you want to build? (1 for dev, 2 for prod): " version_choice
case $version_choice in
1) version="dev" ;;
2) version="prod" ;;
*)
while [[ "$version_choice" != "1" && "$version_choice" != "2" ]]; do
read -p "❌ Invalid input. Please enter '1' for dev or '2' for prod: " version_choice
@mikemilla
mikemilla / ipqr.sh
Last active December 22, 2022 05:20
Script to generate local mac IP as a QR code
#!/bin/bash
# Check if qrencode is installed
if ! [ -x "$(command -v qrencode)" ]; then
# Install qrencode if it is not installed
brew install qrencode
fi
# Find the local IP address of the Mac
ip_address=$(ifconfig | grep "inet " | grep -v 127.0.0.1 | awk '{print $2}')