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
  • 18:24 (UTC -05:00)
View GitHub Profile

Red Hat UBI OpenJDK Image

Table of Contents

Informational variables

Table 1. Table Informational variables

Name

Value

Description

@rafaeltuelho
rafaeltuelho / jvmCoreDump.sh
Created September 1, 2016 18:12 — forked from MatthewHannigan/gist:5210474
atlassian gdb dump core script with modifications to use mktemp and trap to clean upuntested :-)
#!/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
@rafaeltuelho
rafaeltuelho / PushingToOpenShiftRegistry.md
Last active July 8, 2016 21:47 — forked from rhuss/gist:1015bf1ffa6bedcd72e6
Pushing to an OpenShift registry

How to setup an OpenShift registry

  • Create registry with oadm
oadm registry --latest-images --create \
              --credentials=/var/lib/openshift/openshift.local.config/master/openshift-registry.kubeconfig
  • Create route (optional, alternatively you can use also the internal ip of the registry service later)
#!/usr/bin/env bash
# Remember to install jq (e.g. brew install jq; yum install jq; apt-get install jq)
set -e
RED='\033[0;31m'
NORMAL='\033[0m'
printf "${RED}Getting OAuth2 token from Keycloak (includes access_token, refresh_token, etc):${NORMAL}\n"
KEYCLOAK_RESPONSE=`curl -s -X POST http://127.0.0.1:8080/auth/realms/stottie/protocol/openid-connect/token -H "Content-Type: application/x-www-form-urlencoded" -d 'username=rincewind' -d 'password=apiman' -d 'grant_type=password' -d 'client_id=apiman'`
printf "$KEYCLOAK_RESPONSE \n\n"
@rafaeltuelho
rafaeltuelho / app.yaml
Last active August 29, 2015 14:21 — forked from darktable/app.yaml
application: you-app-name-here
version: 1
runtime: python
api_version: 1
default_expiration: "30d"
handlers:
- url: /(.*\.(appcache|manifest))
mime_type: text/cache-manifest