Skip to content

Instantly share code, notes, and snippets.

View maruf89's full-sized avatar

Marius Miliunas maruf89

  • Vilnius, Lithuania
View GitHub Profile
@dublado
dublado / sips.sh
Last active October 24, 2023 05:51
sips convert HEIC jpeg or PNG jpeg
for i in *.png; do sips -s format jpeg -s formatOptions 70 "${i}" --out "${i%png}jpg"; done
for i in *.HEIC; do sips -s format jpeg -s formatOptions 70 "${i}" --out "${i%HEIC}jpg"; done
@clintongormley
clintongormley / gist:1088986
Created July 18, 2011 09:19
Create index for partial matching of names in ElasticSearch
# First, create the synonyms file /opt/elasticsearch/name_synonyms.txt
# with the contents:
#
# rob,bob => robert
#
## CREATE THE INDEX WITH ANALYZERS AND MAPPINGS
curl -XPUT 'http://127.0.0.1:9200/test/?pretty=1' -d '
{