Skip to content

Instantly share code, notes, and snippets.

View hannesa2's full-sized avatar

Hannes Achleitner hannesa2

  • Munich
View GitHub Profile
@hannesa2
hannesa2 / openpgp.txt
Created November 24, 2017 06:18
Verknüpfte OpenKeychain-Identität
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 November 24, 2017 06:18
Verknüpfte OpenKeychain-Identität
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 November 24, 2017 06:18
Verknüpfte OpenKeychain-Identität
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]
#!/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 / gist:047781c7b552ce1177ea70e03afa6e87
Created September 23, 2019 12:49
pre-push.sh git-hook to auto format with Android Studio code format
#!/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'
#!/bin/bash
currenttime=$(date +%H:%M)
calendarWeek=~/$(date +%Y_%V)
USAGE=0
INTERVAL=1
ERLAUBT=350
ZUVIEL=350
BASEDIR=$(dirname "$0")