Skip to content

Instantly share code, notes, and snippets.

Avatar

Jared Hendry jaredh

View GitHub Profile
View gitlab.json
{"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
View syrup
#!/bin/bash
mint run -s https://github.com/Shopify/syrup.git@master syrup $@
@jaredh
jaredh / pam-pushover.sh
Created Feb 21, 2016
Script for notifying Pushover of successful SSH logins
View pam-pushover.sh
#!/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
You can’t perform that action at this time.