Skip to content

Instantly share code, notes, and snippets.

View dymurray's full-sized avatar

Dylan Murray dymurray

  • Red Hat
  • Raleigh, NC
View GitHub Profile
#!/usr/bin/env python
import time, sys
from electroncash import SimpleConfig, Network
from electroncash.util import print_msg, json_encode
tx = sys.argv[1]
c = SimpleConfig()
network = Network(c)
network.start()
#!/bin/sh
for repo in rhscl-postgresql-apb mediawiki123-apb jenkins-apb manageiq-apb wordpress-ha-apb thelounge-apb rocketchat-apb rhscl-mariadb-apb rds-postgres-apb pyzip-demo-apb pyzip-demo-db-apb nginx-apb hello-world-db-apb hello-world-apb hastebin-apb etherpad-apb rhscl-mysql-apb; do
cd $repo && git add . && git commit -m "Bug 1498185 - Move version label onto APB spec"; cd ..
done
- hosts: localhost
tasks:
- name: "Generate keycloak auth token"
uri:
url: "http://localhost:8545"
method: POST
body: "{\"jsonrpc\":\"2.0\",\"method\":\"eth_accounts\",\"params\":[],\"id\":1}"
validate_certs: no
register: response
until: response.status == 200
#!/bin/bash
# Example for the Docker Hub V2 API
# Returns all images and tags associated with a Docker Hub organization account.
# Requires 'jq': https://stedolan.github.io/jq/
# set username, password, and organization
# NOTE: We're expecting to break the dependency upon this script soon.
FROM centos:latest
MAINTAINER Vessel Maintainers
ENV USER_NAME=www-data \
USER_UID=1001 \
BASE_DIR=/home/www-data
ENV HOME=${BASE_DIR}
RUN curl https://copr.fedorainfracloud.org/coprs/g/ansible-service-broker/ansible-service-broker-latest/repo/epel-7/group_ansible-service-broker-ansible-service-broker-latest-epel-7.repo -o /etc/yum.repos.d/asb.repo
FROM centos:7
RUN useradd -ms /bin/bash lounge
WORKDIR /home/lounge
RUN yum -y install gcc-c++ make
RUN curl -sL https://rpm.nodesource.com/setup_6.x | bash -
RUN yum -y install nodejs git
RUN git clone https://github.com/thelounge/lounge
WORKDIR /home/lounge/lounge
apiVersion: v1
items:
- apiVersion: servicecatalog.k8s.io/v1alpha1
bindable: true
brokerName: ansible-service-broker
description: Note taking web application
externalID: 6f180cb4-30d4-4a8a-975e-e91ca7ed2ed9
externalMetadata:
dependencies:
- docker.io/mariadb:latest
apiVersion: servicecatalog.k8s.io/v1alpha1
bindable: false
brokerName: ansible-service-broker
description: This APB deploys RocketChat backed by MongoDB
externalID: dc2189ac-0e42-4523-a8c2-0a9b9ba51d05
externalMetadata:
dependencies:
- rocket.chat:latest
- mongo:3.2
displayName: RocketChat (APB)
{
"services": [
{
"name": "etherpad-apb",
"id": "6f180cb4-30d4-4a8a-975e-e91ca7ed2ed9",
"description": "Note taking web application",
"bindable": true,
"metadata": {
"dependencies": [
"docker.io/mariadb:latest",
{
"services": [
{
"name": "rhscl-postgresql-apb",
"id": "8a049637-8c70-4434-993c-a15c3d310513",
"description": "SCL PostgreSQL apb implementation",
"tags": [
"databases",
"postgresql"
],