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
FROM debian:bullseye-slim | |
RUN apt-get update && apt-get -y install --no-install-recommends wget gnupg ca-certificates && rm -rf /var/lib/apt/lists/* | |
RUN wget https://www.postgresql.org/media/keys/ACCC4CF8.asc -O /etc/apt/trusted.gpg.d/pgdg.asc | |
RUN echo "deb http://apt.postgresql.org/pub/repos/apt bullseye-pgdg main" > /etc/apt/sources.list.d/pgdg.list | |
RUN wget https://packagecloud.io/timescale/timescaledb/gpgkey -O /etc/apt/trusted.gpg.d/timescaledb.asc | |
RUN echo "deb https://packagecloud.io/timescale/timescaledb/debian/ bullseye main" > /etc/apt/sources.list.d/timescaledb.list | |
RUN apt-get update && apt-get -y install --no-install-recommends \ | |
postgresql-12 \ | |
timescaledb-2-loader-postgresql-12 \ | |
timescaledb-2-postgresql-12 \ |
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
#!/usr/bin/env python3 | |
import collections | |
import json | |
import logging | |
import re | |
import subprocess | |
import sys | |
LOG = logging.getLogger(__name__) |
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
#!/bin/sh | |
# Async editor for mutt | |
# Usage: set editor=/path/to/this/script | |
# It spawn editor in a new background terminal so I can continue reading mail | |
# while editing. | |
# The title of the terminal is set to "mutt-edit", this allow me to make it | |
# floating in i3 with: | |
# for_window [title="mutt-edit"] floating enable | |
set -e |
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 docker | |
import pytest | |
import testinfra | |
@pytest.fixture(scope="module", name="host") | |
def docker_host(): | |
client = docker.from_env() | |
container = client.containers.run("jenkins", detach=True) | |
yield testinfra.get_host("docker://{}".format(container.id)) |
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
#!/usr/bin/env python | |
from __future__ import print_function | |
import ansible.executor.task_queue_manager | |
import ansible.inventory | |
import ansible.parsing.dataloader | |
import ansible.playbook.play | |
import ansible.plugins.callback | |
import ansible.vars |
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
syn on | |
filetype plugin indent on | |
autocmd Filetype python set et smarttab ts=4 sw=4 list lcs=tab:>-,trail:.,nbsp:_ |
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
PROXY="http://192.168.31.254:3142/" | |
MIRROR="http://ftp.fr.debian.org/debian" | |
SUITE="wheezy" | |
ARCH="amd64" | |
EXTRA_PKGS="acpi-support-base,console-tools,udev,locales,openssh-server,debian-archive-keyring,bzip2,python-apt" |
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
#define LEN(x) (sizeof(x)/sizeof(x[0])) | |
/* connected leds (map temperature between 0°C and 64 °C) */ | |
static int leds[] = {13, 12, 11, 10, 9, 8}; | |
void setup(void) | |
{ | |
int i; | |
Serial.begin(9600); | |
for (i = 0; i < LEN(leds); i++) { | |
pinMode(leds[i], OUTPUT); |
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
#define LEN(x) (sizeof(x)/sizeof(x[0])) | |
/* connected leds (map temperature between 0°C and 64 °C) */ | |
static int leds[] = {13, 12, 11, 10, 9, 8}; | |
void setup(void) | |
{ | |
int i; | |
Serial.begin(9600); | |
for (i = 0; i < LEN(leds); i++) { | |
pinMode(leds[i], OUTPUT); |
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
#!/bin/sh | |
set -e | |
# Used in ssh command, example user@host -p 2222 | |
REMOTE_HOST="diophante" | |
# Source zfs pool | |
POOL_SRC="tank" |