Skip to content

Instantly share code, notes, and snippets.

View itsbalamurali's full-sized avatar
🎯
Focusing

Balamurali Pandranki itsbalamurali

🎯
Focusing
View GitHub Profile
@itsbalamurali
itsbalamurali / EnrollCert.java
Created November 8, 2022 11:04 — forked from kczechbec/EnrollCert.java
Enrollment example using TPP client library
package com.example;
import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Data;
import lombok.NoArgsConstructor;
@Data
@Builder
@NoArgsConstructor
@itsbalamurali
itsbalamurali / Android.mk
Created May 1, 2019 16:21 — forked from kanru/Android.mk
Android GPS using libhardware
LOCAL_PATH:= $(call my-dir)
include $(CLEAR_VARS)
LOCAL_SRC_FILES:= \
gps_test.cpp
LOCAL_SHARED_LIBRARIES := \
libcutils libhardware
LOCAL_MODULE:= test-gps
@itsbalamurali
itsbalamurali / auto_update.md
Created June 13, 2018 19:29 — forked from lifuzu/auto_update.md
Android auto update apk implementation
public class UpdateApp extends AsyncTask<String,Void,Void>{
private Context context;
public void setContext(Context contextf){
    context = contextf;
}

@Override
protected Void doInBackground(String... arg0) {
      try {
@itsbalamurali
itsbalamurali / client.go
Created May 24, 2018 18:13 — forked from spikebike/client.go
TLS server and client
package main
import (
"crypto/tls"
"crypto/x509"
"fmt"
"io"
"log"
)
@itsbalamurali
itsbalamurali / simple-gpg-enc.go
Created January 29, 2018 02:38 — forked from stuart-warren/simple-gpg-enc.go
golang gpg/openpgp encryption/decryption example
package main
import (
"bytes"
"code.google.com/p/go.crypto/openpgp"
"encoding/base64"
"io/ioutil"
"log"
"os"
)
@itsbalamurali
itsbalamurali / How to use:
Created December 22, 2017 01:40 — forked from flovilmart/How to use:
GraphQL Parse Schema
mutation {
NewClass {
create(foo: "hello", bar: false, increment: 1) {
objectId, foo, bar, increment
}
}
}
mutation {
create(className: "NewClass", params: {foo: "Bar", bar: true, increment: 10}) {
@itsbalamurali
itsbalamurali / golang-tls.md
Created May 27, 2017 07:28 — forked from denji/golang-tls.md
Simple Golang HTTPS/TLS Examples
Generate private key (.key)
# Key considerations for algorithm "RSA" ≥ 2048-bit
openssl genrsa -out server.key 2048

# Key considerations for algorithm "ECDSA" ≥ secp384r1
# List ECDSA the supported curves (openssl ecparam -list_curves)
@itsbalamurali
itsbalamurali / sign-pdf.rb
Created March 10, 2017 11:07 — forked from matiaskorhonen/sign-pdf.rb
Quick and dirty PDF signing in Ruby (using Origami)
#!/usr/bin/env ruby
require "openssl"
require "time"
begin
require "origami"
rescue LoadError
abort "origami not installed: gem install origami"
end
@itsbalamurali
itsbalamurali / parse-ionic2.md
Created February 9, 2017 22:09 — forked from alexciesielski/parse-ionic2.md
Ionic 2 Beta + Parse Server Javascript SDK

Integrate Parse Javascript SDK with Ionic 2 Beta

1 Install dependencies

  • npm install parse --save
  • tsd install parse --save // if you use Typescript

2 Modify the 'scripts' task in gulpfile.js to this:

gulpfile.js

@itsbalamurali
itsbalamurali / MyApp.java
Created December 10, 2015 20:43 — forked from artem-zinnatullin/MyApp.java
If you need to set one font for all TextViews in android application you can use this solution. It will override ALL TextView's typefaces, includes action bar and other standard components, but EditText's password font won't be overriden.
public class MyApp extends Application {
@Override
public void onCreate() {
TypefaceUtil.overrideFont(getApplicationContext(), "SERIF", "fonts/Roboto-Regular.ttf"); // font from assets: "assets/fonts/Roboto-Regular.ttf
}
}