Skip to content

Instantly share code, notes, and snippets.

View sirianni's full-sized avatar

Eric Sirianni sirianni

View GitHub Profile
@sirianni
sirianni / intellij-monokai-theme.icls
Last active August 3, 2017 19:15 — forked from darekkay/intellij-monokai-theme.xml
Monokai Theme for JetBrains IDEs (IntelliJ IDEA, Webstorm, PhpStorm, PyCharm etc.)
<scheme name="Monokai" version="142" parent_scheme="Default">
<option name="EDITOR_FONT_SIZE" value="12" />
<option name="EDITOR_FONT_NAME" value="Consolas" />
<colors>
<option name="ADDED_LINES_COLOR" value="295622" />
<option name="ANNOTATIONS_COLOR" value="b2c0c6" />
<option name="CARET_COLOR" value="bbbbbb" />
<option name="CARET_ROW_COLOR" value="" />
<option name="CONSOLE_BACKGROUND_KEY" value="2b2b2b" />
<option name="FILESTATUS_ADDED" value="629755" />
@sirianni
sirianni / script.sh
Last active December 13, 2016 20:56
Elasticsearch Query to CSV
curl -v --data @query.json http://localhost:9200/myindex/_search \
| jq --compact-output --raw-output \
'.hits.hits[] | ._source | [.["@timestamp"], .user.login, .user.accountName, .user.class, .user.accountType, .request.urlPath] | @csv'
@sirianni
sirianni / Main.java
Last active October 5, 2016 19:56
Vertica Timestamp JDBC Bug
package adhoc;
import java.sql.Connection;
import java.sql.DriverManager;
import java.sql.ResultSet;
import java.sql.Statement;
import java.sql.Timestamp;
import java.time.Instant;
import java.time.ZoneId;
import java.time.ZonedDateTime;