Skip to content

Instantly share code, notes, and snippets.

View oppegard's full-sized avatar

Glenn Oppegard oppegard

  • Denver, CO
  • 06:48 (UTC -06:00)
View GitHub Profile
@oppegard
oppegard / maven.md
Created December 8, 2022 20:49
Maven Cheatsheet

Get help for a plugin, including the arguments the plugin takes:

mvn help:describe -Dcmd=release:prepare -Ddetail
mvn help:describe -Dplugin=org.sonatype.plugins:nexus-staging-maven-plugin
@oppegard
oppegard / fetch_tile.sh
Created July 9, 2018 21:03
Download a PCF tile from PivNet and upload it to an OpsMan on localhost
#!/bin/bash -ex
# credit to github.com/trevorwhitney
if [ -z "$piv_net_token" ]; then
echo "must set piv_net_token before running $0"
exit 1
fi
if [ -z "$ops_man_username" ]; then
echo "must set ops_man_username before running $0"
exit 1
@oppegard
oppegard / monit-5.2.5.manpage
Last active April 16, 2021 13:13
Monit 5.2.5 man page (used in BOSH Stemcells)
MONIT(1) User Commands MONIT(1)
NAME
Monit - utility for monitoring services on a Unix system
SYNOPSIS
monit [options] {arguments}
@oppegard
oppegard / .gitconfig-lfs
Created August 18, 2016 22:28
~/.gitconfig-lfs
[filter "lfs"]
clean = git-lfs clean -- %f
smudge = git-lfs smudge -- %f
required = true

Keybase proof

I hereby claim:

  • I am oppegard on github.
  • I am oppegard (https://keybase.io/oppegard) on keybase.
  • I have a public key ASCabsCu4UHb8CVQclM9Sht1qs0hqtbvTBx9TaKfXhYmwgo

To claim this, I am signing this object:

require 'rubygems'
require 'sinatra'
require 'json/pure'
require 'haml'
get '/' do
res = "<html><body style=\"margin:0px auto; width:80%; font-family:monospace\">"
res << "<head><title>Cloud Foundry Environment</title></head>"
res << "<h2>Cloud Foundry Environment</h2>"
res << "<div><table>"
---
applications:
.:
name: foobar
url: ${name}.${target-base}
framework:
name: sinatra
info:
mem: 128M
description: Sinatra Application
source 'http://rubygems.org'
gem 'sinatra'
gem 'thin'
gem 'omniauth'
gem 'omniauth-openid'