Skip to content

Instantly share code, notes, and snippets.

View jmlucjav's full-sized avatar

jmlucjav

  • Europe
View GitHub Profile
@jmlucjav
jmlucjav / jsonArrayToElasticsearch.js
Created June 5, 2018 12:28 — forked from stiekel/jsonArrayToElasticsearch.js
Import array in JSON file to Elasticsearch
// import json array file to elasticsearch
const fs = require('fs')
const shelljs = require('shelljs')
let endpoint = process.argv[2]
let jsonFile = process.argv[3]
if (!endpoint || !jsonFile || endpoint.search('_bulk') === -1) {
console.log('sample: node jsonArrayToES.js localhost:9200/bank/customer/_bulk customer.json')
process.exit()
}
<?xml version="1.0" encoding="utf-8"?>
<key name="Software">
<key name="ConEmu">
<key name=".Vanilla" modified="2015-05-13 15:37:53" build="150409">
<value name="TabMargins" type="hex" data="00,00,00,00,17,00,00,00,00,00,00,00,00,00,00,00"/>
<value name="ColorTable00" type="dword" data="00d5e8ee"/>
<value name="ColorTable01" type="dword" data="00e3f6fd"/>
<value name="ColorTable02" type="dword" data="00756e58"/>
<value name="ColorTable03" type="dword" data="00837b65"/>
<value name="ColorTable04" type="dword" data="00164bcb"/>
@jmlucjav
jmlucjav / cvim settings
Last active January 6, 2020 18:30
cvim settings
" Settings
"dont autofocus on any field
set noautofocus
let blacklists = ["https://mail.google.com/*","https://groups.google.com/*","https://photos.google.com/*"]
let completionengines = ["google", "amazon", "wikipedia"]
"let mapleader = <space>
# Boxstarter script for blog post http://blog.zerosharp.com/provisioning-a-new-development-machine-with-boxstarter
# Allow reboots
$Boxstarter.RebootOk=$true
$Boxstarter.NoPassword=$false
$Boxstarter.AutoLogin=$true
# Basic setup
Update-ExecutionPolicy Unrestricted
Set-WindowsExplorerOptions -EnableShowHiddenFilesFoldersDrives -EnableShowProtectedOSFiles -EnableShowFileExtensions -EnableShowFullPathInTitleBar
# Enable-RemoteDesktop