Skip to content

Instantly share code, notes, and snippets.

View rafaeltuelho's full-sized avatar
🎯
Focusing

Rafael T. C. Soares (A.K.A Tuelho) rafaeltuelho

🎯
Focusing
  • Red Hat Inc.
  • Frisco, TX, USA
  • 03:51 (UTC -05:00)
View GitHub Profile
@MatthewHannigan
MatthewHannigan / gist:5210474
Created March 21, 2013 03:28
atlassian gdb dump core script with modifications to use mktemp and trap to clean up untested :-)
#!/bin/bash
# atlassian-heap-dump.sh - dump a heap using GDB for a crashed application
# Accepts a single argument: the PID of the JVM
# Author: James Gray (jgray@atlassian.com)
# Copyright Atlassian P/L
# License: MIT
# Are we root?
if [ $UID -ne 0 ]; then
@aaronwalker
aaronwalker / blueprint.xml
Last active December 6, 2016 01:27
sample blueprint xml
<?xml version="1.0" encoding="UTF-8"?>
<blueprint xmlns="http://www.osgi.org/xmlns/blueprint/v1.0.0"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xmlns:cm="http://aries.apache.org/blueprint/xmlns/blueprint-cm/v1.0.0"
xmlns:camel="http://camel.apache.org/schema/blueprint"
xmlns:ext="http://aries.apache.org/blueprint/xmlns/blueprint-ext/v1.0.0"
xsi:schemaLocation="
http://www.osgi.org/xmlns/blueprint/v1.0.0 http://www.osgi.org/xmlns/blueprint/v1.0.0/blueprint.xsd
http://aries.apache.org/blueprint/xmlns/blueprint-ext/v1.0.0 http://aries.apache.org/blueprint/xmlns/blueprint-ext/v1.0.0/blueprint-ext.xsd
http://camel.apache.org/schema/blueprint http://camel.apache.org/schema/blueprint/camel-blueprint.xsd
@rmoff
rmoff / README.md
Last active April 19, 2017 15:54
A very simple OBIEE 11g JMeter script.

Save the JMX file to your local machine and open it in JMeter. Tested with OBIEE 11.1.1.7.1. Other versions may require modifications to the Assertion tests.

NB you need to change instanceconfig.xml so that the Loading... text doesn't disrupt the test. See here for more details, and additional information on using JMeter with OBIEE.

@hodrigohamalho
hodrigohamalho / ose-demo.adoc
Last active July 11, 2017 05:45
ose-demo.adoc

Demo Openshift

  1. Introdução ao docker

  2. dockerhub & images

  3. Demo

Executa o fedora docker run -it fedora cat /etc/fedora-release

Deploying Yeoman apps to Heroku

Prerequisites

This assumes you already have a Yeoman app and are ready for publishing

Build for Production

Create production directory & assets

@defnull
defnull / gist:1224387
Created September 17, 2011 21:22
Deploy a Bottle app on Heroku
mkdir heroku
cd heroku/
virtualenv --no-site-packages env
source env/bin/activate
pip install bottle gevent
pip freeze > requirements.txt
cat >app.py <<EOF
import bottle
import os
@Lasherbr
Lasherbr / named.conf
Created February 27, 2018 21:21
Configuracao /etc/named.conf
//
// named.conf
//
// Provided by Red Hat bind package to configure the ISC BIND named(8) DNS
// server as a caching only nameserver (as a localhost DNS resolver only).
//
// See /usr/share/doc/bind*/sample/ for example named configuration files.
//
// See the BIND Administrator's Reference Manual (ARM) for details about the
// configuration located in /usr/share/doc/bind-{version}/Bv9ARM.html
@Lasherbr
Lasherbr / example.com.db
Created February 27, 2018 21:20
Conf Bind Named /var/named/example.com.db
$TTL 1D
$ORIGIN example.com.
@ IN SOA example.com. root.cloudapps.example.com. (
10 ; serial
1D ; refresh
1H ; retry
1W ; expire
3H ) ; minimum
IN NS ns1.example.com.
ns1 IN A 127.0.0.1
@hodrigohamalho
hodrigohamalho / nodejs-openshift-deploy.sh
Created April 24, 2018 20:52
NodeJS Nginx Chained Build
oc create -f https://github.com/sclorg/s2i-nodejs-container/blob/master/imagestreams/nodejs-rhel7.json -n openshift
oc new-project app-nodejs
oc new-build nodejs:8~https://github.com/hodrigohamalho/sal-frontend --name=sal-frontend-s2i
oc new-build --name=sal-frontend-nginx \
--docker-image=registry.access.redhat.com/rhscl/nginx-112-rhel7 \
--source-image=sal-frontend-s2i \
--source-image-path=/opt/app-root/src/dist/:. \
@rafaeltuelho
rafaeltuelho / osev3-basic-installation-steps.md
Last active May 4, 2018 14:19
OSEv3 Basic installation steps (commands)

Environment Setup

SSH Access

ssh rsoares-redhat.com@oselab-dcff.oslab.opentlc.com 
	ssh infranode00-dcff
	ssh master00-dcff
	ssh node00-dcff