Skip to content

Instantly share code, notes, and snippets.

@uros-r
uros-r / prepare.py
Created August 14, 2024 07:11
Normalise Pandas column names to snake case
# This code is released into the public domain under the Creative Commons Zero (CC0) license.
# You can copy, modify, distribute, and perform the work, even for commercial purposes, all without asking permission.
# For more information, see https://creativecommons.org/publicdomain/zero/1.0/
import re
from collections import defaultdict
def normalise_column_name(x):
@uros-r
uros-r / elk-dc.yml
Created March 5, 2017 09:43
docker-compose for a simple ELK stack
version: '2'
services:
elasticsearch:
image: docker.elastic.co/elasticsearch/elasticsearch:5.2.0
container_name: elasticsearch
environment:
- cluster.name=elasticsearch
- bootstrap.memory_lock=true
- "ES_JAVA_OPTS=-Xms512m -Xmx512m"
ulimits: