Skip to content

Instantly share code, notes, and snippets.

View tvieira's full-sized avatar

Tiago Moreira Vieira tvieira

View GitHub Profile
@tvieira
tvieira / datadog_on_openshift.md
Created September 25, 2022 14:21
A personal note on how to install Datadog on OpenShift

Install Datadog on OpenShift

  1. First we want to create a namespace for the datadog agent:
oc new-project datadog
  1. Once you create the namespace, lets create secrets to hold the appkey and apikey:
@tvieira
tvieira / datadog_ocp_values.yaml
Created September 23, 2022 15:56
Install Datadog agent on OpenShift with HELM
datadog:
clusterName: openshift
apiKey: <API_KEY>
appKey: <APP_KEY>
site: datadoghq.com
apm:
portEnabled: true
logs:
enabled: true
containerCollectAll: true
@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 / phantomjs_helpers.js
Created February 2, 2018 16:49
Event listeners for PhantomJS (taken from PhantomJS examples)
"use strict";
var sys = require("system"),
page = require("webpage").create(),
logResources = false;
if (sys.args.length > 1 && sys.args[1] === "-v") {
logResources = true;
}
@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

Keybase proof

I hereby claim:

  • I am tvieira on github.
  • I am tmoreira (https://keybase.io/tmoreira) on keybase.
  • I have a public key whose fingerprint is 2525 D9C5 A152 54C0 575F 102E 2CB8 A45A E245 073D

To claim this, I am signing this object:

@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.