Skip to content

Instantly share code, notes, and snippets.

View elyezer's full-sized avatar

Elyézer Rezende elyezer

View GitHub Profile

Keybase proof

I hereby claim:

  • I am elyezer on github.
  • I am elyezer (https://keybase.io/elyezer) on keybase.
  • I have a public key ASAXJ1HBwswA7eejf4hwjdLnSjnoZjpjgOM9q53o_2lhngo

To claim this, I am signing this object:

#!/usr/bin/env bash
#
# For each file found by `find`, generate a entry on the toctree in
# `docs/api.rst`.
#
# NOTE: This script should be run from the repository docs directory. That is,
# this script should be run from this script's ../docs directory.
set -euo pipefail
@elyezer
elyezer / running_different_drivers.md
Last active February 16, 2018 18:43
widgestastic + pytest-selenium POC
.\" Man page generated from reStructuredText.
.
.TH "BETELGEUSE" "1" "Sep 14, 2017" "0.12.0" "Betelgeuse"
.SH NAME
betelgeuse \- Betelgeuse Documentation
.
.nr rst2man-indent-level 0
.
.de1 rstReportMargin
\\$1 \\n[an-margin]
diff --git a/rho/scancommand.py b/rho/scancommand.py
index f222c92..7fe446e 100644
--- a/rho/scancommand.py
+++ b/rho/scancommand.py
@@ -491,13 +491,23 @@ class ScanCommand(CliCommand):
ansible_vars = {'facts_to_collect': self.facts_to_collect,
'report_path': report_path}
- playbook = utilities.PLAYBOOK_DEV_PATH
- if not os.path.isfile(playbook):
help:
@echo "Please use \`make <target>' where <target> is one of:"
@echo " help to show this message"
@echo " all to to execute test-coverage and lint"
@echo " docs-clean to remove documentation"
@echo " docs-html to generate HTML documentation"
@echo " install to install in editable mode"
@echo " install-dev to install in editable modeplus the dev packages"
@echo " lint to run flake8"
@echo " package to generate installable Python packages"
- name: Create nodepool group.
group:
name: nodepool
- name: Create nodepool user.
user:
createhome: yes
group: nodepool
home: /var/lib/nodepool
name: nodepool

Keybase proof

I hereby claim:

  • I am elyezer on github.
  • I am elyezer (https://keybase.io/elyezer) on keybase.
  • I have a public key whose fingerprint is E8D7 1D65 A9D9 3FCD 69F1 1C35 E0DB B0BF DD55 C601

To claim this, I am signing this object:

@elyezer
elyezer / test_warning_suppression.py
Created April 5, 2017 19:16
Sample code written by @Ichimonji10 to play around with warning suppression behaviour.
# coding=utf-8
"""Play around with warning suppression behaviour.
The standard library's unittest test runner prepends the following rules to
``warnings.filters`` before a test method executes:
.. code-block:: python
('module', re.compile('Please use assert\\w+ instead.', re.IGNORECASE), <class 'DeprecationWarning'>, re.compile(''), 0),
('default', None, <class 'Warning'>, None, 0),
import os
import re
import textwrap
def edit_expected_results():
for dirpath, _, filenames in os.walk('tests/foreman'):
for filename in filenames:
path = os.path.join(dirpath, filename)
if path.endswith('.py') and '__init__.py' not in path: