Skip to content

Instantly share code, notes, and snippets.

@JeanFred
JeanFred / serialstation-convert.py
Created November 6, 2024 12:22
serialstation-convert
mapping= {
"1": "4b42053c-1596-4a52-96e8-12dfe91b0942",
"2": "e4432c3b-1db0-4171-a8a6-1f77f722d1be",
"3": "37dca5a1-5879-4dc4-9c82-6b0dc58ddbdb",
"4": "dcc71528-da14-4248-b92e-97c78370e568",
"5": "15cbaccf-0b87-4b40-add7-25adfd0daa94",
"6": "9b278192-e80b-4466-9de8-b1eb393cf7c5",
"7": "741630d3-089c-4956-b85b-026962aedd92",
"8": "2876d8a9-45d4-41a3-81e0-bae4c70d0525",
"10": "93a7aa13-f7e1-420a-adc3-0ea0853e5bc0",

Keybase proof

I hereby claim:

  • I am jeanfred on github.
  • I am jeanfred (https://keybase.io/jeanfred) on keybase.
  • I have a public key ASCiykGZHmUa3kTHFpwug24b7X9jQNK_yMcXiD-_2PcvbAo

To claim this, I am signing this object:

@JeanFred
JeanFred / overpass-query-to-json-with-municipality.py
Last active July 25, 2017 20:23
Retrieve all cemeteries in a given region (here states of Austria) with their municipality
import itertools
import logging
import json
import time
import overpy
api = overpy.Overpass()
@JeanFred
JeanFred / carbon.yml
Last active January 4, 2018 23:02
Ansible role provisioning Graphite (sitting behind Nginx)
---
- name: Carbon config files
template:
src: '{{ item }}'
dest: '{{graphite_venv_path}}/conf/{{ item }}'
validate: "python -c \"import ConfigParser; config = ConfigParser.RawConfigParser(); config.read('%s')\""
with_items:
- carbon.conf
- storage-schemas.conf
- storage-aggregation.conf