This file contains 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 | |
""" | |
A Python3 tool that uses the NASA-Acronym data to find similar expansions. | |
This code uses the Levenshtein Distance to calculate the difference between | |
sequences of characters in the expansions field of the data. | |
This file relies on thefuzz python package: https://github.com/seatgeek/thefuzz |
This file contains 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 | |
""" | |
A Python3 tool that uses the NASA-Acronym data to find similar expansions. | |
This code uses the Levenshtein Distance to calculate the difference between | |
sequences of characters in the expansions field of the data. | |
This file relies on thefuzz python package: https://github.com/seatgeek/thefuzz |
This file contains 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
hosts.ini | |
[ios] | |
sg250a ansible_host=192.168.1.254 | |
[ios:vars] | |
ansible_become=yes | |
ansible_become_method=enable | |
ansible_connection=ansible.netcommon.network_cli | |
ansible_network_os=cisco.ios.ios |
This file contains 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/bash | |
# Implement method 1 to compress the VM differencing disks. | |
LIBVIRT_IMAGES=/var/lib/libvirt/images | |
TARGET_DOMAIN=${1} | |
function sparsify { | |
local TARGET_DISK=${1} | |
# Print the size of the differencing disk. |
This file contains 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/python3 | |
import argparse | |
import getpass | |
import os | |
import pty | |
import re | |
import sys | |
import time |
This file contains 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: mbruzek test | |
hosts: localhost | |
vars: | |
glusterfs_nodes: | |
- cns-1.scale-ci.example.com | |
- cns-2.scale-ci.example.com | |
- cns-0.scale-ci.example.com | |
l_glusterfs_count: "{{ glusterfs_count | default(glusterfs_nodes | count) }}" | |
tasks: |
This file contains 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
for ironic_id in $(ironic node-list | awk {'print $2'} | grep -v UUID | egrep -v '^$'); do | |
ironic node-set-provision-state $ironic_id manage; | |
done | |
# Check ironic node-list for managemable | |
for ironic_id in $(ironic node-list | awk {'print $2'} | grep -v UUID | egrep -v '^$'); do | |
openstack baremetal node clean $ironic_id --clean-steps '[{"interface": "deploy", "step": "erase_devices_metadata"}]'; | |
done | |
# watch ironic node list until all cleaned |
This file contains 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: test the instackenv logic | |
hosts: localhost | |
vars: | |
num_controllers: 3 | |
num_storage: 5 | |
vars_prompt: | |
- name: "instack_url" | |
prompt: "What is th instackenv url?" | |
private: false |
This file contains 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/bash | |
# Send a file to a Jenkins build using curl. | |
# The first parameter must be the URL of the Jenkins job to build. | |
# The second parameter must be the local file to send to Jenkins. | |
url=$1 | |
local_file=$2 | |
# curl $JENKINS_URL/job/$JOB_NAME/build -F file_key=@file_path -F json='{"parameter": [{"name": "param_name", "file": "file_key"}]}' |
This file contains 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/bash | |
# This script uploads e2e results from a Jenkins run using gcloud. | |
set -o errexit | |
set -o xtrace | |
set -o nounset | |
set -o pipefail | |
source logging.sh |
NewerOlder