Skip to content

Instantly share code, notes, and snippets.

View evrardjp's full-sized avatar

Jean-Philippe Evrard evrardjp

View GitHub Profile
#!/bin/bash
# This is a companion script to https://github.com/konstantin-kelemen/arduino-amiibo-tools
# The original post this was crafted for was https://games.kel.mn/en/create-amiibo-clones-with-arduino/
# For more info go to https://games.kel.mn/en/companion-script-to-simplify-amiibo-cloning-with-arduino/
#requirements:
#sha1sum (part of coreutils)
#xxd (part of vim)
#hexdump
#amiitool (https://github.com/socram8888/amiitool)
@evrardjp
evrardjp / Vagrantfile
Created July 10, 2017 15:45
Vagrant for leapfrog
Vagrant.configure(2) do |config|
config.vm.define "a" do |trusty|
trusty.vm.hostname = "a"
trusty.vm.box = "ubuntu/trusty64"
trusty.vm.provider "virtualbox" do |v|
v.name = "OpenStack-Ansible_Ubuntu-14.04_#{Time.now.getutc.to_i}"
v.memory = 8192
v.cpus = 8
#!/usr/bin/env bash
# This is a simple script to do bulk operations on all projects we support
# Operation:
# The script clones project config from OpenStack infra then parses the gerrit
# projects for all of our known projects. Known projects are determined by the
# name using "openstack/openstack-ansible". Once all projects are discovered a
# string is built with the "<NAME>|<URL>" and printed. The script then clones
# all projects into the workspace and runs the ``bulk_function``. When complete
@evrardjp
evrardjp / very_random_choice.py
Created July 27, 2017 11:21
Lookup that works the same way as with_items.
# (c) 2013, Michael DeHaan <[email protected]>
# (c) 2017, Jean-Philippe Evrard <[email protected]>
# Fork from random choice lookup
#
# This file is part of Ansible
#
# Ansible is free software: you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
# the Free Software Foundation, either version 3 of the License, or
# (at your option) any later version.
@evrardjp
evrardjp / get_vagrant.sh
Last active May 11, 2018 14:07
CentOS bootstrap of vagrant
wget http://download.virtualbox.org/virtualbox/5.1.22/VirtualBox-5.1-5.1.22_115126_el7-1.x86_64.rpm
yum -y install gcc make
yum -y install kernel-devel
echo "INSTALL kernel-devel FOR YOUR VERSION TOO. If you don't know, try vboxconfig it will tell you what to install"
yum -y install VirtualBox-5.1-5.1.22_115126_el7-1.x86_64.rpm
/sbin/vboxconfig
wget https://releases.hashicorp.com/vagrant/1.9.4/vagrant_1.9.4_x86_64.rpm?_ga=2.5716723.133835329.1494518854-1323366021.1493378754
mv vagrant_1.9.4_x86_64.rpm?_ga=2.5716723.133835329.1494518854-1323366021.1493378754 vagrant_1.9.4_x86_64.rpm
@evrardjp
evrardjp / bootstrap_host_overrides.yml
Created August 3, 2017 16:49 — forked from logan2211/bootstrap_host_overrides.yml
OSA CI Configuration for unbound + ceph + calico
---
# Copyright 2016, Logan Vig <[email protected]>
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
@evrardjp
evrardjp / ansible.log
Created August 17, 2017 15:53
Tempest issue in log. Instance cache not found
fatal: [rantlsp-76-740b_utility_container-eceb8ba0]: FAILED! => {"changed": false, "cmd": "export RUN_TEMPEST_OPTS='--serial'
export TESTR_OPTS=''
bash /opt/openstack_tempest_gate.sh scenario defcore", "delta": "1:14:34.477285", "end": "2017-08-16 05:36:44.728182", "failed": true, "rc": 1, "start": "2017-08-16 04:22:10.250897", "stderr": "+ test_lists='scenario defcore'
+ testr_output_lines=100
+ RUN_TEMPEST_OPTS=--serial
+ TESTR_OPTS=
++ sed -n '/^gen_test_list_/s/gen_test_list_//p'
++ compgen -A function
+ available_test_lists='all
api
@evrardjp
evrardjp / ansible.log
Created August 17, 2017 15:53
Tempest issue in log. Instance cache not found
fatal: [rantlsp-76-740b_utility_container-eceb8ba0]: FAILED! => {"changed": false, "cmd": "export RUN_TEMPEST_OPTS='--serial'
export TESTR_OPTS=''
bash /opt/openstack_tempest_gate.sh scenario defcore", "delta": "1:14:34.477285", "end": "2017-08-16 05:36:44.728182", "failed": true, "rc": 1, "start": "2017-08-16 04:22:10.250897", "stderr": "+ test_lists='scenario defcore'
+ testr_output_lines=100
+ RUN_TEMPEST_OPTS=--serial
+ TESTR_OPTS=
++ sed -n '/^gen_test_list_/s/gen_test_list_//p'
++ compgen -A function
+ available_test_lists='all
api
@evrardjp
evrardjp / example.yml
Created August 23, 2017 14:49
example.yml
- name: Test
hosts: localhost
user: root
gather_facts: no
connection: local
vars:
maas_private_monitoring_zone: "aaa"
maas_private_monitoring_zone2: ""
#maas_private_monitoring_zone3: ""
tasks:
@evrardjp
evrardjp / example.yml
Created August 23, 2017 14:49
example.yml
- name: Test
hosts: localhost
user: root
gather_facts: no
connection: local
vars:
maas_private_monitoring_zone: "aaa"
maas_private_monitoring_zone2: ""
#maas_private_monitoring_zone3: ""
tasks: