Skip to content

Instantly share code, notes, and snippets.

@nhtzr
nhtzr / template.user.js
Last active March 4, 2016 01:08
Userscript boiler plate. Stolen from tampermonkey.
// ==UserScript==
// @name My Fancy New Userscript
// @namespace http://your.homepage/
// @version 0.1
// @description enter something useful
// @author You
// @match https://gist.github.com/a
// @grant none
// ==/UserScript==
Windows Registry Editor Version 5.00
[HKEY_CLASSES_ROOT\*\Shell\vim]
@="Edit with &Vim"
"Icon"="\"C:\\Program Files\\Vim\\vim74\\gvim.exe\""
[HKEY_CLASSES_ROOT\*\shell\vim\command]
@="gvim \"%1\""
@nhtzr
nhtzr / gvim.bat
Created March 4, 2016 05:17
Copy this into your C:\Windows folder as gvim.bat vim.bat vimdiff.bat and gvimdiff.bat
@ECHO OFF
SETLOCAL
rem Determine if we are supposed to call term mode
if "%~n0%"=="gvim" set EXE_NAME=gvim.exe
if "%~n0%"=="gvimdiff" set EXE_NAME=gvim.exe
if "%~n0%"=="vim" set EXE_NAME=vim.exe
if "%~n0%"=="vimdiff" set EXE_NAME=vim.exe
if %EXE_NAME%=="" goto notfound
@nhtzr
nhtzr / elasticsearch.yml
Created April 7, 2017 00:02 — forked from reyjrar/elasticsearch.yml
ElasticSearch config for a write-heavy cluster
##################################################################
# /etc/elasticsearch/elasticsearch.yml
#
# Base configuration for a write heavy cluster
#
# Cluster / Node Basics
cluster.name: logng
# Node can have abritrary attributes we can use for routing
# name: Pressing Ctrl-D exits session
# type: bool
# Ctrl-D exits cmd.exe when it is pressed on an empty line.
ctrld_exits = 1
# name: Toggle if pressing Esc clears line
# type: bool
# Clink clears the current line when Esc is pressed (unless Readline's Vi mode
# is enabled).
esc_clears_line = 1
package us.peopleconnect.microservicecore.util;
import java.io.IOException;
import java.io.Serializable;
import java.sql.PreparedStatement;
import java.sql.ResultSet;
import java.sql.SQLException;
import java.sql.Types;
import java.util.HashMap;
import java.util.Map;
#contentArea {
position: inherit !important;
}
#rightCol {
display: none !important;
}
#pagelet_sidebar {
display: none !important;
@nhtzr
nhtzr / Makefile
Last active July 16, 2018 21:47
How to self signed cert (java curl client auth) (remember to update vars with your desired host pass and paths)
KEYSTORE=keystore.jks
TRUSTSTORE=truststore.jks
PASSWORD=changeit
HOSTNAME=localhost
CLIENTNAME=client
# CN = Common Name
# OU = Organization Unit
# O = Organization Name
tap "datawire/blackbird"
tap "hairyhenderson/tap"
tap "homebrew/bundle"
tap "homebrew/cask"
tap "homebrew/cask-fonts"
tap "homebrew/cask-versions"
tap "homebrew/core"
tap "homebrew/dupes"
tap "homebrew/services"
tap "homebrew/versions"
@nhtzr
nhtzr / data.json
Created November 12, 2018 22:40
Approach for multi value retrieva in stream mode
{
"A": [
{
"B": {
"C": [
{
"D": {
"app": "Utility",
"date": "2018-10-01",
"applicationNumberText": {