Skip to content

Instantly share code, notes, and snippets.

View tvieira's full-sized avatar

Tiago Moreira Vieira tvieira

View GitHub Profile
@tvieira
tvieira / dnsmasq.md
Created June 11, 2018 13:18 — forked from jlebon/dnsmasq.md
How to set up dnsmasq on an OpenShift cluster

This gist is mostly based on the dnsmasq appendix from the openshift-training repo. However, I updated it and included fixes for the many gotchas I found along the way.

This is useful for folks who want to set up a DNS service as part of the cluster itself, either because they cannot easily change their DNS setup outside of the cluster, or just because they want to keep the cluster setup self-contained.

Clone the openshift-ansible repo, check out the 3.9 branch.

# git clone https://github.com/openshift/openshift-ansible.git
# cd openshift-ansible
# git checkout release-3.9

Create an inventory, I'm calling it 2-node.yml, with contents like these, substituting your correct master and node hostnames:

@tvieira
tvieira / bobp-python.md
Created November 27, 2017 21:50 — forked from sloria/bobp-python.md
A "Best of the Best Practices" (BOBP) guide to developing in Python.

The Best of the Best Practices (BOBP) Guide for Python

A "Best of the Best Practices" (BOBP) guide to developing in Python.

In General

Values

  • "Build tools for others that you want to be built for you." - Kenneth Reitz
  • "Simplicity is alway better than functionality." - Pieter Hintjens
@tvieira
tvieira / .conkyrc-todo
Created February 25, 2016 18:23 — forked from thecatwasnot/.conkyrc-todo
GTD w/Linux notify-send/conky/remind/task
# Create own window instead of using desktop (required in nautilus)
# own_window yes
# own_window_type override
background no
own_window yes
own_window_type normal
own_window_transparent yes
own_window_hints undecorated,below,sticky,skip_taskbar,skip_pager
# Use double buffering (reduces flicker, may not work for everyone)
@tvieira
tvieira / myweechat.md
Created February 24, 2016 15:46 — forked from pascalpoitras/config.md
My always up-to-date WeeChat configuration (weechat-dev)

WeeChat Screenshot

Encrypted password in sec.conf

/secure passphrase <pass>
/secure set bncpass <pass>
/secure set relaypass <pass>
@tvieira
tvieira / pedantically_commented_playbook.yml
Created February 24, 2016 15:45 — forked from marktheunissen/pedantically_commented_playbook.yml
Insanely complete Ansible playbook, showing off all the options
---
# ^^^ YAML documents must begin with the document separator "---"
#
#### Example docblock, I like to put a descriptive comment at the top of my
#### playbooks.
#
# Overview: Playbook to bootstrap a new host for configuration management.
# Applies to: production
# Description:
# Ensures that a host is configured for management with Ansible.