Skip to content

Instantly share code, notes, and snippets.

View anastazya's full-sized avatar
💭
Dreaming and working in Malaga

Theodor Ganescu anastazya

💭
Dreaming and working in Malaga
View GitHub Profile
@anastazya
anastazya / configmap.yaml
Created April 16, 2022 17:49 — forked from tuananh/configmap.yaml
Pi-hole on Kubernetes
apiVersion: v1
kind: ConfigMap
metadata:
name: pihole-config
data:
WEBPASSWORD: pihole
TZ: 'Asia/Ho_Chi_Minh'
DNS1: 1.1.1.1
DNS2: 1.0.0.1
@anastazya
anastazya / 2serv.py
Created April 7, 2022 19:54 — forked from phrawzty/2serv.py
simple python http server to dump request headers
#!/usr/bin/env python2
import SimpleHTTPServer
import SocketServer
import logging
PORT = 8000
class GetHandler(SimpleHTTPServer.SimpleHTTPRequestHandler):
@anastazya
anastazya / single-node-es.md
Created April 4, 2022 16:56 — forked from angristan/single-node-es.md
Elasticsearch settings for single-node cluster (1 shard, 0 replica)

Elasticsearch settings for single-node cluster

1 shard, 0 replica.

For future indices

Update default template:

curl -X PUT http://localhost:9200/_template/default -H 'Content-Type: application/json' -d '{"index_patterns": ["*"],"order": -1,"settings": {"number_of_shards": "1","number_of_replicas": "0"}}'