Skip to content

Instantly share code, notes, and snippets.

@EricLondon
EricLondon / imessage.sh
Last active October 20, 2022 15:51
imessage.sh
#!/bin/sh
if [ "$#" -eq 1 ]; then stdinmsg=$(cat); fi
exec <"$0" || exit; read v; read v; read v; exec /usr/bin/osascript - "$@" "$stdinmsg"; exit
on appIsRunning(appName)
application appname is running
end appIsRunning
-- taken from:
-- http://stackoverflow.com/questions/11812184/how-to-send-an-imessage-text-with-applescript-only-in-provided-service
@EricLondon
EricLondon / test_airbrake.py
Created July 16, 2025 12:06
Airbrake using API and Python Requests
import json
import traceback
import requests
import os
from datetime import datetime
AIRBRAKE_PROJECT_ID = os.getenv("AIRBRAKE_PROJECT_ID")
AIRBRAKE_PROJECT_KEY = os.getenv("AIRBRAKE_PROJECT_KEY")