Skip to content

Instantly share code, notes, and snippets.

Sakis Kaliakoudas athkalia

Block or report user

Report or block athkalia

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
View OfflineGenerateHash.kt
fun main(args: Array<String>) {
val digest = MessageDigest.getInstance("SHA-256")
args.forEach { digest.update(it.toLowerCase().toByteArray(Charset.forName("UTF-8"))) }
private String calculateHash() {
try {
String certificateFingerprint = getCertificateSha1Fingerprint().toLowerCase(Locale.UK);
MessageDigest digest = MessageDigest.getInstance(SHA_256);
String packageName = context.getPackageName();
Timber.d("Calculating hash for package name %s", packageName);
return HexEncoder.bytesToHexString(digest.digest());
} catch (NoSuchAlgorithmException e) {
public class ClinicalRecordsSdk {
private static ClinicalRecordsSdk instance;
@Inject ClinicalRecordsApi clinicalRecordsApi;
public static ClinicalRecordsApi getApiInstance() {
if (instance == null) {
athkalia / Android Privacy Policy Template
Last active Aug 14, 2018 — forked from alphamu/Android Privacy Policy Template
privacy policy just-another-android-app
View Android Privacy Policy Template
<h2>Privacy Policy</h2>
<p>Developer built the Just-another-android-app app as a open source app. This SERVICE is provided by the developer at no cost and is intended
for use as is.</p>
<p>This page is used to inform website visitors regarding my policies with the collection, use, and
disclosure of Personal Information if anyone decided to use my Service.</p>
<p>No information is collected other than the following</p>
<p><strong>Log Data</strong></p>
<p>I want to inform you that whenever you use my Service, in case of an error in the app I collect
View checkstyle_rules.xml
<?xml version="1.0"?>
"-//Puppy Crawl//DTD Check Configuration 1.3//EN"
<!--All the rules for the checkstyle static analysis tool. Some rules run under
the 'Checker' module while most of them run under the 'TreeWalker' module.-->
<module name="Checker">
<!--=================================================================== Configuration ===================================================================-->
athkalia / pmd_rules.xml
Last active Mar 21, 2018
Rules for pmd
View pmd_rules.xml
<?xml version="1.0"?>
<ruleset name="mybraces"
<description>PMD rules and properties</description>
<!--Specify the rule files and exclusions. Some rules have priority less than
warning and they don't trigger the teamcity fail build capability.-->
athkalia / gist:efb36cb7716e650bf588
Last active Aug 29, 2015 — forked from ishida/gist:2719962
change alias in keystore using keytool
View gist:efb36cb7716e650bf588
$ keytool -changealias -keystore MY_KEYSTORE_2.jks -alias XXX-XXX-XXX-XXX-XXX -destalias MY_ALIAS
athkalia / proguard-project
Created Jun 16, 2015
Android Proguard config that just works
View proguard-project
# // PROGUARD CONFIG FOR ALL ANDROID APPS // *******************************************************************************************************************
-optimizationpasses 5
-optimizations !code/simplification/arithmetic,!field/*,!class/merging/*
You can’t perform that action at this time.