Skip to content

Instantly share code, notes, and snippets.

View johnduarte's full-sized avatar

John Duarte johnduarte

View GitHub Profile
@johnduarte
johnduarte / bluejeans_rpm_via_alien.md
Last active January 30, 2020 09:28
BlueJeans rpm install on Debian

FYI, for those of us running Debian based systems rather than RedHat, the BlueJeans RPM can be successfully installed via alien

Steps to install BlueJeans on Debian

  • Download BlueJeans RPM
  • Install alien package sudo apt-get install alien
  • Convert BlueJeans RPM to a DEB package sudo alien --to-deb --scripts bluejeans-*.rpm
  • Install resulting DEB sudo dpkg -i bluejeans_*.deb
  • Run BlueJeans with /opt/bluejeans/bluejeans-bin

You may get an error loading the expected udev library

# quick and dirty expression of automating importation
# of L/XL data into grafana from gplt metrics collector data
require "yaml"
time = "1571690335" # this should be introspected from the data directory
tag = "slv-649" # passed as an argument
source = "data/#{tag}"
# parse yaml
data = YAML.load(File.read("jrd-gplt-01/build/pe_xl/nodes.yaml"))
@johnduarte
johnduarte / markdown.md
Created October 4, 2019 16:36
Markdown anchor test

Title

Heading One

Sub-heading

Heading Two

Sub-heading

@johnduarte
johnduarte / create_issues.rb
Created July 11, 2019 14:51
PoC script to create Jira tickets from a given YAML file
# frozen_string_literal: true
# This file needs to be in the winston project
# Requires a yaml file with ticket information in the following
# format:
#
# ---
# issuetype: "1" # global: bug
#
# issues:

Session Based testing

What is it

@johnduarte
johnduarte / gist:133df86fc791dd1430b2c7d60bcac46f
Last active May 23, 2019 18:57
Experiment with command line arguments in Rake task
➜ jrd-gplt git:(master) ✗ git diff <<<
diff --git a/rakefile b/rakefile
index 41f6ecd..af067a8 100644
--- a/rakefile
+++ b/rakefile
@@ -253,7 +253,40 @@ rototiller_task :performance_without_provision do |t|
end
desc 'Run Performance setup for clamps'
-rototiller_task :performance_clamps do |t|
diff --git a/.flake8 b/.flake8
new file mode 100644
index 0000000..5429527
--- /dev/null
+++ b/.flake8
@@ -0,0 +1,16 @@
+[flake8]
+ignore = W503
+max-line-length = 80
+pytest_mark1 = name=test_id
@johnduarte
johnduarte / mnaio_deploy_master_images.sh
Created October 4, 2018 22:35
MNAIO deploy with images
# per https://docs.openstack.org/project-deploy-guide/openstack-ansible/latest/deploymenthost.html#configure-ubuntu
apt-get update
apt-get dist-upgrade
# reboot
apt-get install aptitude build-essential git ntp ntpdate openssh-server python-dev sudo
# deploy
git clone -b master https://git.openstack.org/openstack/openstack-ansible /opt/openstack-ansible
cd /opt/openstack-ansible/
scripts/bootstrap-ansible.sh
@johnduarte
johnduarte / README.md
Last active March 20, 2018 20:47
Broken meathod of MNAIO deploy

Multi-node-aio (mnaio)

WIP: This is still not functional Deploy ironic node, attach 1.3TB volume. Checkout the desired branch and run the test suites

screen -L
sudo su -
cd /opt/rpc-openstack
@johnduarte
johnduarte / Vagrantfile
Created December 8, 2017 19:21
Base Ubuntu Trusty Vagrantfile
# -*- mode: ruby -*-
# vi: set ft=ruby :
Vagrant.configure("2") do |config|
config.vm.box = "ubuntu/trusty64"
end