Skip to content

Instantly share code, notes, and snippets.

@hgminh95
hgminh95 / modify_key.sh
Last active January 10, 2017 08:39
Swap Caplocks and A
#!/bin/bash
setxkbmap -option caps:none
xmodmap -e "keycode 66 = a"
curl -XDELETE localhost:9200/test
#create a test index with shingle mapping
curl -XPUT localhost:9200/test -d '{
"settings":{
"index":{
"analysis":{
"analyzer":{
"analyzer_shingle":{
"tokenizer":"standard",