Skip to content

Instantly share code, notes, and snippets.

View beetsolutions's full-sized avatar

Etukeni Ndecha beetsolutions

  • BEET Technologies Ltd.
  • Wolverhampton, United Kingdom
View GitHub Profile
@beetsolutions
beetsolutions / .java
Last active March 21, 2019 14:03
Draw a perfect circle in OpenGL ES 2.0 Android
import android.opengl.GLES20;
import java.nio.ByteBuffer;
import java.nio.ByteOrder;
import java.nio.FloatBuffer;
import java.nio.ShortBuffer;
public class GLCircleSprite {
Dial *#*#2846579#*#*
Go to the Project Menu > Background Setting > Log setting
@beetsolutions
beetsolutions / gist:c539b0a64ef064930bd3bcaf8187760c
Last active December 13, 2016 12:11
Get Certificate pinning sha with Square OKHTTP 3
// Make sure this does not run on the main thread.
String hostname = "yourdomain.com";
CertificatePinner certificatePinner = new CertificatePinner.Builder()
.add(hostname, "sha256/AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA=")
.build();
OkHttpClient client = new OkHttpClient.Builder()
.certificatePinner(certificatePinner)
.build();
Request request = new Request.Builder()