Skip to content

Instantly share code, notes, and snippets.

@akeemphilbert
akeemphilbert / docker-compose.yml
Created July 24, 2021 21:48
Sample Docker Compose
version: "3.1"
services:
redis:
image: redis:3.2
db:
image: mysql:5
environment:
- MYSQL_ROOT_PASSWORD=$MYSQL_ROOT_PASSWORD
- MYSQL_DATABASE=$MYSQL_DATABASE
- MYSQL_USER=$MYSQL_USER

Keybase proof

I hereby claim:

  • I am akeemphilbert on github.
  • I am kanundrum (https://keybase.io/kanundrum) on keybase.
  • I have a public key ASAt4nVP2QIkOiCAUawxJQ1-GVd-jtpky93E5b-aet6ZoQo

To claim this, I am signing this object:

@akeemphilbert
akeemphilbert / AndroidManifest.xml.patch
Created April 13, 2020 18:24
Patches for ViroReact + React Native 0.62
--- app/android/app/src/main/AndroidManifest.xml (date 1586122131892)
+++ app/android/app/src/main/AndroidManifest.xml (date 1586122131892)
@@ -2,6 +2,7 @@
package="com.app">
<uses-permission android:name="android.permission.INTERNET" />
+ <uses-permission android:name="android.permission.CAMERA" />
<application
android:name=".MainApplication"
@akeemphilbert
akeemphilbert / designer.html
Last active August 24, 2018 23:13
designer
<link rel="import" href="../core-scaffold/core-scaffold.html">
<link rel="import" href="../core-header-panel/core-header-panel.html">
<link rel="import" href="../core-menu/core-menu.html">
<link rel="import" href="../core-item/core-item.html">
<link rel="import" href="../core-icon-button/core-icon-button.html">
<link rel="import" href="../core-toolbar/core-toolbar.html">
<link rel="import" href="../core-menu/core-submenu.html">
<link rel="import" href="../google-map/google-map.html">
<polymer-element name="my-element">
@akeemphilbert
akeemphilbert / CustomAuthorizer.java
Last active August 6, 2018 14:46
Example of using a Custom Authorizer with Couchbase Lite in Java
package com.domain.example
import com.couchbase.lite.Database;
import com.couchbase.lite.auth.Authorizer;
import com.couchbase.lite.util.Log;
import java.net.URL;
import java.util.ArrayList;
import java.util.HashMap;
import java.util.List;
@akeemphilbert
akeemphilbert / MockitoGuiceModule
Last active August 29, 2015 14:08
Android integration between robolectric + roboguice 3 + mockito. Mocks can be created in tests using the @mock annotation and injected via roboguice. Note This setup relies on having a custom Application class set and having a corresponding TestApplication for Robolectric to load. You should also have roboguice 3 and mockito installed as well
/**
Copyright (c) 2014, Akeem Philbert
All rights reserved.
Redistribution and use in source and binary forms, with or without
modification, are permitted provided that the following conditions are met:
Redistributions of source code must retain the above copyright notice,
this list of conditions and the following disclaimer.