Skip to content

Instantly share code, notes, and snippets.

Avatar

Hannes Achleitner hannesa2

  • Munich
View GitHub Profile
@hannesa2
hannesa2 / gist:047781c7b552ce1177ea70e03afa6e87
Created Sep 23, 2019
pre-push.sh git-hook to auto format with Android Studio code format
View gist:047781c7b552ce1177ea70e03afa6e87
#!/bin/sh
# $1 -- Name of the remote to which the push is being done (Ex: origin)
# $2 -- URL to which the push is being done (Ex: https://<host>:<port>/<username>/<project_name>.git)
#local_ref = refs/heads/master
#local_sha1 = f8a07ee4f6af8271dc40caae6cc23f283122ed11
#remote_ref = refs/heads/master
#remote_sha1 = ffd4d512f34b11e3cf5c12433bbedd4b1532716f
GREEN='\033[32m'
View sendNotification.sh
#!/bin/bash
clientId=$(hostname)
topic="no topic"
payload="no payload"
title="$(hostname) Detection"
startMillis=$(date +'%s')
startDate=$(date '+%Y-%m-%d %H:%M:%S')
SERVER_KEY=GCM-SERVERKEY # you find it in firebase console
@hannesa2
hannesa2 / openpgp.txt
Created Nov 24, 2017
Verknüpfte OpenKeychain-Identität
View openpgp.txt
This Gist confirms the Linked Identity in my OpenPGP key, and links it to this GitHub account.
Token for proof:
[Verifying my OpenPGP key: openpgp4fpr:66e495f1f2b1de0897ab338cc0c5c5c780424674]
@hannesa2
hannesa2 / openpgp.txt
Created Nov 24, 2017
Verknüpfte OpenKeychain-Identität
View openpgp.txt
This Gist confirms the Linked Identity in my OpenPGP key, and links it to this GitHub account.
Token for proof:
[Verifying my OpenPGP key: openpgp4fpr:66e495f1f2b1de0897ab338cc0c5c5c780424674]
@hannesa2
hannesa2 / openpgp.txt
Created Nov 24, 2017
Verknüpfte OpenKeychain-Identität
View openpgp.txt
This Gist confirms the Linked Identity in my OpenPGP key, and links it to this GitHub account.
Token for proof:
[Verifying my OpenPGP key: openpgp4fpr:66e495f1f2b1de0897ab338cc0c5c5c780424674]