Skip to content

Instantly share code, notes, and snippets.

View fmassot's full-sized avatar
🎯
Focusing

François Massot fmassot

🎯
Focusing
View GitHub Profile
@fmassot
fmassot / otel-collector-values.yaml
Created February 19, 2024 22:21
OTEL collector on GKE
ode: daemonset
presets:
logsCollection:
enabled: true
kubernetesAttributes:
enabled: true
config:
exporters:
otlp:
endpoint: quickwit-indexer.qw.svc.cluster.local:7281
@fmassot
fmassot / 01_ycollet_query.json
Last active April 11, 2024 13:16
Config files used for the Quickwit benchmark on the Github Archive dataset: https://quickwit.io/blog/benchmarking-quickwit-engine-on-an-adversarial-dataset
{
"query": "actor.login:Cyan4973"
}
@fmassot
fmassot / make-monthly-dataset.sh
Last active December 30, 2021 14:48
gh-archive dataset build script
# Build monthly dataset
year=$1
month=$2
ch_json_output_filename=gh-archive-${year}-${month}.json
ch_gz_output_filename=gh-archive-${year}-${month}.json.gz
quickwit_gz_output_filename=gh-archive-${year}-${month}-text-only.json.gz
s3_ls_result=`aws s3 ls s3://quickwit-datasets-public/gh-archive/${ch_gz_output_filename}`
echo ${s3_ls_result}
@fmassot
fmassot / DockerFile for hug
Created April 16, 2018 10:54
DockerFile for hug
FROM ubuntu:17.10
# -- Install Pipenv:
RUN apt-get update \
&& apt-get install software-properties-common python-software-properties -y \
&& add-apt-repository ppa:pypa/ppa -y \
&& apt-get update \
&& apt-get install git pipenv -y
ENV LC_ALL C.UTF-8
@fmassot
fmassot / gist:e48269bef73e038228ed
Last active August 29, 2015 14:17
AN QE xml api
import xmltodict
def parse_question(response):
data = xmltodict.parse(response.content)
qe = data['QUESTION']
print qe
extracted_data = {
@fmassot
fmassot / france_borders.mss
Created April 12, 2012 17:20
MSS files for france house price map
/* ---- PALETTE ---- */
@city: #000;
@department: #eeeeee;
@region: #eeeeee;
@outline: #000;
/* ---- ZONE BORDERS ---- */
#adminzones::city_border[is_city=true]{