This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
version: '2.4' | |
services: | |
elasticsearch: | |
image: docker.elastic.co/elasticsearch/elasticsearch:6.4.1 | |
environment: | |
- "ES_JAVA_OPTS=-Xms${MEMORY:-256}m -Xmx${MEMORY:-256}m" | |
- discovery.type=single-node | |
- cluster.name=docker-cluster | |
- bootstrap.memory_lock=true | |
ulimits: |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
def nullString: ( | |
if . == null then "" else . end | |
); | |
def terraformify: ( .. |= | |
if type == "object" then | |
to_entries | map(.value |= nullString) | from_entries | |
elif type == "array" then | |
map(nullString) | |
elif . == true then |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
nazarewk@s2 ~/kubernetes/kubernetes-cluster % bin/setup-cluster-configure 10.146.225.{4,5,8,9} (.env)(git)-[master] | |
DEBUG: Adding group all | |
DEBUG: Adding group kube-master | |
DEBUG: Adding group kube-node | |
DEBUG: Adding group etcd | |
DEBUG: Adding group k8s-cluster:children | |
DEBUG: Adding group calico-rr | |
DEBUG: Adding group vault | |
DEBUG: adding host node1 to group all |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
### Keybase proof | |
I hereby claim: | |
* I am nazarewk on github. | |
* I am nazarewk (https://keybase.io/nazarewk) on keybase. | |
* I have a public key ASA2rSLeFZwg3Evrm4qb93abIEy4DkCSk7EJApydIT4-sQo | |
To claim this, I am signing this object: |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import functools | |
from django.db import models | |
from django.db.models import query | |
from django.utils.functional import empty | |
from elasticsearch_dsl import Search | |
class BaseSearchIterable(query.BaseIterable): | |
def __init__(self, queryset): |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
[defaults] | |
sudo_flags = SSH_AUTH_SOCK="$SSH_AUTH_SOCK" -H -S -n | |
[ssh_connection] | |
ssh_args=-o ForwardAgent=yes |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Windows Registry Editor Version 5.00 | |
[HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\WindowsUpdate\OSUpgrade] | |
"AllowOSUpgrade"=dword:00000000 | |
"ReservationsAllowed"=dword:00000000 | |
[HKEY_LOCAL_MACHINE\SOFTWARE\Policies\Microsoft\Windows\GWX] | |
"DisableGWX"=dword:00000001 | |
[HKEY_LOCAL_MACHINE\SOFTWARE\Policies\Microsoft\Windows\WindowsUpdate] |
NewerOlder