Skip to content

Instantly share code, notes, and snippets.

Avatar
🍻

Elyézer Rezende elyezer

🍻
View GitHub Profile
View keybase.md

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:

View gen_api_docs.sh
#!/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 Feb 16, 2018
widgestastic + pytest-selenium POC
View running_different_drivers.md
View betelgeuse.1
.\" 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]
View gist:8f1df81fd8d6b39ea390274991ccfe5e
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):
View Makefile
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"
View main.yaml
- name: Create nodepool group.
group:
name: nodepool
- name: Create nodepool user.
user:
createhome: yes
group: nodepool
home: /var/lib/nodepool
name: nodepool
View keybase.md

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 Apr 5, 2017
Sample code written by @Ichimonji10 to play around with warning suppression behaviour.
View test_warning_suppression.py
# 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),
View edit_expected_results.py
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:
You can’t perform that action at this time.