This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
curl -X POST \ | |
--header 'Content-Type: application/yaml' \ | |
--header "Authorization: Bearer $tkn" \ | |
--data '--- | |
specVersion: 0.0.1 | |
name: petclinic-dev-environment | |
projects: | |
- name: petclinic | |
source: | |
type: git |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#! /bin/bash | |
set +x | |
pid=$(pidof "java") | |
# Let's bombard the server with reindex requests | |
for i in {1..15} | |
do | |
# Using random sleep time |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Bombard launcher-backend with reindex API | |
for i in {1..5} | |
do | |
curl --silent -X GET "http://localhost:8080/api/booster-catalog" -H "accept: application/json" > /dev/null | |
curl -H "Content-Type: application/json" -X POST -d '{}' "http://localhost:8080/api/booster-catalog/reindex?token=abc" | |
curl --silent -X GET "http://localhost:8080/api/booster-catalog" -H "accept: application/json" > /dev/null | |
curl --silent -X GET "http://localhost:8080/api/booster-catalog" -H "accept: application/json" > /dev/null | |
curl -H "Content-Type: application/json" -X POST -d '{}' "http://localhost:8080/api/booster-catalog/reindex?token=abc" | |
# Using random sleep time | |
sleep 0.$[ ( $RANDOM % 100 ) + 1]s |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
"name": "Nodejs Postgres Stack", | |
"components": [], | |
"tags": [ | |
"Nodejs", | |
"Postgres" | |
], | |
"id": "stackgk84089624ggoip2", | |
"workspaceConfig": { | |
"defaultEnv": "default", |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
FROM centos:7 | |
ENV LANG=en_US.utf8 | |
RUN curl --silent --location https://rpm.nodesource.com/setup_8.x | bash - | |
RUN yum -y install nodejs gcc-c++ make git wget | |
RUN wget https://dl.google.com/linux/direct/google-chrome-stable_current_x86_64.rpm | |
RUN yum -y install ./google-chrome-stable_current_*.rpm | |
RUN git clone https://github.com/fabric8-ui/fabric8-planner.git | |
RUN cd fabric8-planner |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/sh | |
# Verify testing setup is working | |
status_code=$(curl -s -o /dev/null -I -w "%{http_code}" http://localhost:8088/) | |
if [ $status_code != "200" ] | |
then | |
echo "Vertical setup not working" | |
exit | |
else | |
echo "Vertical setup working" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env python | |
# Script to automatically populate top-starred-devs-and-repos Readme file | |
import re | |
import urllib2 | |
from bs4 import BeautifulSoup | |
f = open("README.md", 'r') | |
new_file = open("test.md", 'w') |
NewerOlder