This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
-libraryjars libs/commons-codec.jar | |
-libraryjars libs/guava-r09.jar | |
-libraryjars libs/sqlcipher.jar | |
-optimizationpasses 5 | |
-dontusemixedcaseclassnames | |
-dontskipnonpubliclibraryclasses | |
-dontskipnonpubliclibraryclassmembers | |
-dontpreverify | |
-dontobfuscate |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
package net.zetetic.tests; | |
import android.content.Context; | |
import android.database.Cursor; | |
import net.sqlcipher.database.SQLiteDatabase; | |
import net.sqlcipher.database.SQLiteOpenHelper; | |
import net.zetetic.ZeteticApplication; | |
public class ReadableWritableAccessTest extends SQLCipherTest { |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#include <stdio.h> | |
#include <stdbool.h> | |
#include <pthread.h> | |
#include <semaphore.h> | |
#include <signal.h> | |
#include <errno.h> | |
#include <string.h> | |
#include <unistd.h> | |
#include <openssl/hmac.h> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
android list avd | awk '/Name: /{print("android delete avd -n " $2)}' | |
android list targets | egrep "(android-)|(Name:)" | xargs -L 3 | grep "^id:" | awk '{print("android -s create avd -c 1000M -n emulator-" $7 " -t " $2)}' |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
;;; tango-2-theme.el --- Tango 2 color theme for GNU Emacs 24 | |
;; Author: Nick Parker | |
;; Version: 1.0.0 | |
;; | |
;; Ported theme to Emacs 24 color theme Nick Parker <nickp@developernotes.com> | |
;; original from Will Farrington <wcfarrington@gmail.com> | |
;; | |
;; This program is free software; you can redistribute it and/or | |
;; modify it under the terms of the GNU General Public License as | |
;; published by the Free Software Foundation; either version 3 of |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
public class CrossProcessCursorWrapper extends CursorWrapper implements CrossProcessCursor { | |
public CrossProcessCursorWrapper(Cursor cursor) { | |
super(cursor); | |
} | |
@Override | |
public CursorWindow getWindow() { | |
return null; | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
ps -A | grep diskimages-helper | awk '{print $1}' | xargs kill -9 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
public static void WhenNotNullPerform<TType, TResult>(this IEnumerable<TType> items, Func<TType, TResult> conditionToCheck, Action<TResult> actionToApply) where TResult : class | |
{ | |
items.Each(x => | |
{ | |
var result = conditionToCheck.Invoke(x); | |
if (result != null) | |
{ | |
actionToApply.Invoke(result); | |
} | |
}); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?xml version="1.0" encoding="UTF-8"?> | |
<!DOCTYPE plist PUBLIC "-//Apple Computer//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd"> | |
<plist version="1.0"> | |
<dict> | |
<key>Label</key> | |
<string>emacs-daemon</string> | |
<key>RunAtLoad</key> | |
<true/> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
require 'utils' | |
class UpdateAll | |
def run | |
display("Updating homebrew and all installed packages, also cleaning up old packages:") | |
safe_system("brew update && brew upgrade && brew cleanup") | |
end | |
def display(message, &block) |