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 json | |
import logging | |
from eventmanager import Evt | |
# | |
# @author Arnaud Morin <[email protected]> | |
# | |
class GFPVAutoFreqs(): | |
"""This class handles update of RH nodes freqs""" |
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
- name: install mysql | |
apt: | |
name: ['mariadb-server', 'python-pymysql', 'python-mysqldb', 'mycli'] | |
state: latest | |
update_cache: yes |
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 | |
import openstack | |
import os | |
import base64 | |
def create_connection(): | |
return openstack.connect( | |
auth_url=os.environ.get('OS_AUTH_URL'), |
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
# Configure the OpenStack Provider | |
# It will read info from env OS_xxx | |
provider "openstack" { | |
} | |
# | |
# BACKENDS | |
# | |
# Create one server per region | |
resource "openstack_compute_instance_v2" "servers" { |
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
{ | |
"builders": [ | |
{ | |
"type": "openstack", | |
"username": "xxx", | |
"password": "yyy", | |
"identity_endpoint": "https://auth.cloud.ovh.net/v3/", | |
"region": "DE1", | |
"tenant_id": "zzz", | |
"image_name": "debian10-arnaud", |
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 | |
BASE=$HOME/Maildir | |
ARCHIVEBASE=$HOME/Maildir/archive. | |
for folder in `find $BASE -maxdepth 1 -type d \! -regex '.*/archive\..*' \! -name cur \! -name tmp \! -name new` | |
do | |
folder=$(basename $folder) | |
if [ "${folder}" = "Maildir" ]; then folder=INBOX; fi | |
./cleanup-maildir.py --archive-folder=${ARCHIVEBASE}${folder} --maildir-root=$BASE --folder-prefix= --age=365 -d 1 -k -u -v archive ${folder} |
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/python | |
import unirest | |
from pprint import pprint as pp | |
import xml.etree.ElementTree as xml | |
from datetime import datetime | |
from time import sleep | |
base_url = "https://www.waze.com/row-RoutingManager/routingRequest?" | |
from_y = "48.32957" |