Skip to content

Instantly share code, notes, and snippets.

View jaredh's full-sized avatar

Jared Hendry jaredh

View GitHub Profile
#!/bin/bash
mint run -s https://github.com/Shopify/syrup.git@master syrup $@
{"data":{"__schema":{"queryType":{"name":"Query"},"mutationType":{"name":"Mutation"},"subscriptionType":null,"types":[{"kind":"INPUT_OBJECT","name":"AddAwardEmojiInput","description":"Autogenerated input type of AddAwardEmoji","fields":null,"inputFields":[{"name":"awardableId","description":"The global id of the awardable resource","type":{"kind":"NON_NULL","name":null,"ofType":{"kind":"SCALAR","name":"ID","ofType":null}},"defaultValue":null},{"name":"name","description":"The emoji name","type":{"kind":"NON_NULL","name":null,"ofType":{"kind":"SCALAR","name":"String","ofType":null}},"defaultValue":null},{"name":"clientMutationId","description":"A unique identifier for the client performing the mutation.","type":{"kind":"SCALAR","name":"String","ofType":null},"defaultValue":null}],"interfaces":null,"enumValues":null,"possibleTypes":null},{"kind":"OBJECT","name":"AddAwardEmojiPayload","description":"Autogenerated return type of AddAwardEmoji","fields":[{"name":"awardEmoji","description":"The award emoji after mu
@jaredh
jaredh / pam-pushover.sh
Created February 21, 2016 22:24
Script for notifying Pushover of successful SSH logins
#!/bin/sh
PUSHOVER_API_URL="https://api.pushover.net/1/messages.json"
PUSHOVER_APPTOKEN="<YOUR_APP_TOKEN>"
PUSHOVER_USERKEY="<YOUR_USER_KEY>"
if [ "$PAM_TYPE" != "close_session" ]; then
MESSAGE="User '$PAM_USER' logged into '`hostname`' from IP address '$PAM_RHOST'"
curl -s -F "user=$PUSHOVER_USERKEY" -F "token=$PUSHOVER_APPTOKEN" -F "message=$MESSAGE" $PUSHOVER_API_URL
@jaredh
jaredh / build.gradle
Last active July 27, 2022 05:14
Dependency kitchen sink
implementation 'androidx.core:core-ktx:1.8.0'
implementation 'androidx.appcompat:appcompat:1.4.2'
implementation 'com.google.android.material:material:1.6.1'
implementation 'androidx.constraintlayout:constraintlayout:2.1.4'
implementation 'io.ktor:ktor-client-android:2.0.3'
implementation 'io.ktor:ktor-client-core:2.0.3'
implementation 'io.ktor:ktor-client-okhttp:2.0.3'
implementation 'io.ktor:ktor-client-content-negotiation:2.0.3'
implementation 'io.ktor:ktor-serialization-kotlinx-json:2.0.3'