Skip to content

Instantly share code, notes, and snippets.

@renard
renard / hostname
Last active August 29, 2015 14:11
#!/bin/sh
#
#
# Change the host name according to DHCP settings.
#
# Copyright © 2014 Sébastien Gross <seb•ɑƬ•chezwam•ɖɵʈ•org>
# Created: 2014-03-11
# Last changed: 2014-12-03 00:22:50
#
# This program is free software. It comes without any warranty, to
@renard
renard / enclosure.stl
Last active August 29, 2015 14:16
Test enclosure
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
#!/usr/bin/python
# -*- coding: utf-8 -*-
# Copyright © 2019 Sébastien Gross
# Created: 2019-06-05
# Last changed: 2019-06-05 15:31:13
# This program is free software. It comes without any warranty, to
# the extent permitted by applicable law. You can redistribute it
@renard
renard / test-json-query.yml
Last active May 26, 2021 07:00
Simple json_query example with ansible
#!/usr/bin/env ansible-playbook -i localhost,
# Example on how to use json_query as asked by Hagen Bauer (@hbauer)
# https://twitter.com/hbauer/status/1366784668629139458
#
# This requires jmespath python module (pip3 install jmespath).
#
# For further details have a look at:
#