Skip to content

Instantly share code, notes, and snippets.

View georgenica's full-sized avatar

George NICA georgenica

  • Infinium
View GitHub Profile
@cb372
cb372 / query.json
Created March 9, 2016 18:40
Using the Elasticsearch scroll API
{
"sort": ["_doc"],
"size": 100,
"query": {
"bool": {
"must": {
"match_all": {}
},
"filter": {
...
@hvnsweeting
hvnsweeting / mirror.py
Created August 24, 2015 07:42
mirror a PPA
#!/usr/bin/env python2
# -*- coding: utf-8 -*-
'''
PPA=$1
if [ -z $PPA ] then;
echo "PPA is required. E.g:
fi
DIRECTORY=${2:-ubuntu}
@trusktr
trusktr / DefaultKeyBinding.dict
Last active April 21, 2024 06:32
My DefaultKeyBinding.dict for Mac OS X
/* ~/Library/KeyBindings/DefaultKeyBinding.Dict
This file remaps the key bindings of a single user on Mac OS X 10.5 to more
closely match default behavior on Windows systems. This makes the Command key
behave like Windows Control key. To use Control instead of Command, either swap
Control and Command in Apple->System Preferences->Keyboard->Modifier Keys...
or replace @ with ^ in this file.
Here is a rough cheatsheet for syntax.
Key Modifiers
@honzakral
honzakral / -README.rst
Last active August 24, 2020 09:24
WebExpo demo
@karmi
karmi / .gitignore
Last active August 24, 2020 09:25
Elasticat makes Elasticsearch JSON responses pretty • http://git.io/elasticat
.DS_Store
tmp/