Skip to content

Instantly share code, notes, and snippets.

View dustinschultz's full-sized avatar
😃

Dustin Schultz dustinschultz

😃
View GitHub Profile
@dustinschultz
dustinschultz / gist:6d731fd880c8c0ac226e
Last active August 29, 2015 14:20
Lucene Fuzzy Query Edit Distance
import java.io.IOException;
import java.io.StringReader;
import org.apache.lucene.analysis.Analyzer;
import org.apache.lucene.analysis.TokenStream;
import org.apache.lucene.analysis.en.EnglishAnalyzer;
import org.apache.lucene.analysis.tokenattributes.CharTermAttribute;
import org.apache.lucene.document.Document;
import org.apache.lucene.document.Field.Store;
import org.apache.lucene.document.TextField;
@dustinschultz
dustinschultz / osx_developer_clean_install.md
Last active March 26, 2020 16:54
OSX Developer Clean Install

Homebrew

/usr/bin/ruby -e "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install)"

Hombrew Cask

brew tap caskroom/cask

Software

brew cask install java - installs JDK8, not just Java

brew cask install java7 - installs JDK7

@dustinschultz
dustinschultz / h2_with_query_statistics.md
Created December 8, 2019 04:14
enable h2 with query statistics

jdbc:h2:mem:database_name;QUERY_STATISTICS=true

### Keybase proof
I hereby claim:
* I am dustinschultz on github.
* I am dustinschultz (https://keybase.io/dustinschultz) on keybase.
* I have a public key ASBMLhA58F245YCoTcbUHFGqC4o1u5HOojI5T3ymkl7xzgo
To claim this, I am signing this object:
@dustinschultz
dustinschultz / keybase.md
Created January 20, 2020 18:40
keybase.md

Keybase proof

I hereby claim:

  • I am dustinschultz on github.
  • I am dustinschultz (https://keybase.io/dustinschultz) on keybase.
  • I have a public key ASBMLhA58F245YCoTcbUHFGqC4o1u5HOojI5T3ymkl7xzgo

To claim this, I am signing this object:

@dustinschultz
dustinschultz / db-activity-stream.json
Created September 11, 2020 15:17
Example of a message from AWS Database Activity Stream
{
"type": "DatabaseActivityMonitoringRecord",
"clusterId": "cluster-XXXXXXXXXXXXXXXXXXXXXXXXXX",
"instanceId": "db-XXXXXXXXXXXXXXXXXXXXXXX",
"databaseActivityEventList": [
{
"logTime": "2019-12-26 06:56:09.090054+00",
"statementId": 3731,
"substatementId": 1,
"objectType": "TABLE",