Send iMessage to a loved one from the terminal!
Powered by bash and AppleScript!

If you've got any questions feel free to DM on Twitter @reillyjodonnell
Search for a command to run...
Powered by bash and AppleScript!

If you've got any questions feel free to DM on Twitter @reillyjodonnell
No comments yet. Be the first to comment.
Someone shared this image above. At first glance, I wasn’t sure about the perf implications — so let’s break it down from first principles :D Let’s deconstruct this monster Here’s the code: // Function to flatten React Context Providers. const flatte...

Intro Hello it’s me from the future! I originally was going to go over file based routing but pivoted to going over important SSR concepts with React / how Bun makes it easy. It’s full of struggles with hydration (mismatches), React entry points, and...

history? Serverless is EVERYWHERE and for good reason: nearly infinite scalability, physically closer to users, and pay-for-what-you-use pricing. But not without tradeoffs — vendor lock-in, (potentially) higher costs, and the infamous cold-starts. cf...

Sockets can only transmit binary (text.) Imagine we have this data const message = {id: '123', name: 'Reilly', message: 'Hey'} Here's the problem: we want to send this data to the ui but we have hundreds of useEffects spread throughout the codebase....

mkdir ~/bin
Now let's go to it:
cd ~/bin and create a file text.sh
#!/bin/bash
MESSAGE=$1
# Replace with their number (be sure to include the +1)
PHONE_NUMBER=+11234567
if [ "$#" -ne 1 ]; then
echo "Usage: $0 MESSAGE"
exit 1
fi
osascript -e "tell application \"Messages\" to send \"$MESSAGE\" to buddy \" $PHONE_NUMBER\""
Now we need to make the file executable:chmod +x text.sh
Now we can use it!
./text.sh "I LOVE YOU"
To alias it so that you could say something like rach "I LOVE YOU"
Add to your .zshrc or .bashrc the following:
# local bin
export PATH="$HOME/bin:$PATH"
alias rach='text.sh'
Now we can say rach "I LOVE YOU" and it sends!