Skip to content

Instantly share code, notes, and snippets.

@nejckorasa
nejckorasa / is_pr_in_staging.sh
Last active March 12, 2020 10:19
Git tags scripts to find out what PRs are in staging and if your PR is in staging. Saves you from looking at various CI/CD pipelines.
#!/usr/bin/env bash
set -e
pr=$1
if [ -z "$1" ]
then
echo "PR number needs to be passed"
exit 1
fi
@nejckorasa
nejckorasa / Notifications.java
Created November 7, 2020 15:14
Trigger MacOS notification in Java
import java.io.IOException;
import static java.lang.String.format;
public class Notifications {
public static void main(String[] args) throws IOException {
var sound = args.length >= 3 ? Sound.valueOf(args[2]) : Sound.Purr;
runNotification(new Notification(args[0], args[1], sound));
}