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 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
;;; 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
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
#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
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
-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
#! /usr/bin/env sh | |
firstTag=$(git tag | sort -r | head -1) | |
secondTag=$(git tag | sort -r | head -2 | awk '{split($0, tags, "\n")} END {print tags[1]}') | |
echo "Changes between ${secondTag} and ${firstTag}\n" | |
git log --pretty=format:' * %s' ${secondTag}..${firstTag} |
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
// Oracle.DataAccess.Client.OracleDataReader | |
private IntPtr m_pColumnsDataBuffer = IntPtr.Zero; | |
private object m_disposeSyncObj = new object(); | |
internal unsafe OracleDataReader(OracleConnection connection, IntPtr[] opsSqlCtx, IntPtr opsDacCtx, IntPtr opsErrCtx, OpoSqlValCtx* pOpoSqlValCtx, OpoDacValCtx* pOpoDacValCtx, MetaData metaData, int resultCount, CommandBehavior commandBehavior, Hashtable safeMapping, string commandText, int freeOpsSqlCtx, bool bFetchSizePropertySet) | |
{ | |
int num = 0; | |
this.m_bBOF = true; | |
this.m_external = true; | |
this.m_safeMapping = safeMapping; | |
this.m_bFetchSizePropertySet = bFetchSizePropertySet; |
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
<?php | |
try { | |
$db = new SQLite3("demo.db"); | |
$version = $db->query("PRAGMA cipher_version"); | |
if($version){ | |
var_dump($version->fetchArray()); | |
} else { | |
throw new Exception($db->lastErrorMsg()); | |
} |