Skip to content

Instantly share code, notes, and snippets.

Working from home

Kevin Griffin m00sey

Working from home
  • Philadelphia
View GitHub Profile
View tmux-cheatsheet.markdown

tmux shortcuts & cheatsheet

start new:


start new with session name:

tmux new -s myname
m00sey / StoreRocksDB.scala
Created Feb 23, 2021 — forked from pauca/StoreRocksDB.scala
Template for testing: RocksDB with Scala
View StoreRocksDB.scala
import org.rocksdb._
import org.rocksdb.util.SizeUnit
import scala.collection.JavaConversions._
// build.sbt
// name := "RocksDB"
// version := "0.1"
// scalaVersion := "2.12.0"
// libraryDependencies += "org.rocksdb" % "rocksdbjni" % "5.0.1"

Keybase proof

I hereby claim:

  • I am m00sey on github.
  • I am m00sey ( on keybase.
  • I have a public key ASBNN-hQ9uNuuGCpT-FEKCrQAej6IbV3dpk_kynDj1sLOAo

To claim this, I am signing this object:


1. Open your mac...

2. Install some software

  • Chrome / Chromium
  • Git
  • Slack
  • Brew

3. Install Scoir back-end dependencies

m00sey / gist:ddb5f9ef7622c83e9c4afbf4b3cb44ce
Last active Nov 16, 2016
Dagger/Firebase compilation exception
View gist:ddb5f9ef7622c83e9c4afbf4b3cb44ce
FAILURE: Build failed with an exception.
* What went wrong:
Execution failed for task ':app:compileDebugJavaWithJavac'.
> java.lang.IllegalArgumentException
* Exception is:
org.gradle.api.tasks.TaskExecutionException: Execution failed for task ':app:compileDebugJavaWithJavac'.
at org.gradle.api.internal.tasks.execution.ExecuteActionsTaskExecuter.executeActions(
m00sey / AndroidManifest.xml
Created Sep 10, 2011
Building an NFC enabled Android application with PhoneGap
View AndroidManifest.xml
<action android:name="android.nfc.action.NDEF_DISCOVERED" />
<data android:mimeType="my/mimetype" />
<category android:name="android.intent.category.DEFAULT" />
View plugins.xml
<?xml version="1.0" encoding="utf-8"?>
<plugin name="App" value="com.phonegap.App" />
<plugin name="Geolocation" value="com.phonegap.GeoBroker" />
<plugin name="Device" value="com.phonegap.Device" />
<plugin name="Accelerometer" value="com.phonegap.AccelListener" />
<plugin name="Compass" value="com.phonegap.CompassListener" />
<plugin name="Media" value="com.phonegap.AudioHandler" />
<plugin name="Camera" value="com.phonegap.CameraLauncher" />
<plugin name="Contacts" value="com.phonegap.ContactManager" />
m00sey / index.html
Created Jul 8, 2011
Updates registering plugins
View index.html'bar');
View gist:1069675
public class ToastPlugin extends Plugin {
private static final String TAG = "ToastPlugin";
private static final String LONG_TOAST_ACTION = "show_long";
private static final int TOAST_MESSAGE_INDEX = 0;
public PluginResult execute(String action, JSONArray data, String callbackId) {
String toastMessage;
try {
m00sey / gist:1059312
Created Jul 1, 2011
Loading Plugins from AndroidManifest
View gist:1059312

Loading plugins from the AndroidManifest.xml As an alternative to registering plugins through JavaScript plugins can now be loaded via the AndroidManifest, using the meta-data element.

A demo can be found at (you'll need to update the jar to 9.6.1)

Registering a plugin

Plugin names are prefixed with plugin. this is so the keys can be identified when loading the meta data. The value is the fully qualified name.