Navigation Menu

Skip to content

Instantly share code, notes, and snippets.

View Maniacal's full-sized avatar

Michael Glenney Maniacal

  • New Context
  • Phoenix, Arizona, US
View GitHub Profile
FROM swaggerapi/swagger-ui
RUN apk add bash && \
mkdir -p /usr/share/nginx/html/specs && \
chown -R nginx:nginx /usr/share/nginx/html/specs
COPY ./api_docs/* /usr/share/nginx/html/specs/
COPY ./docker-run.sh /usr/share/nginx/
RUN chmod +x /usr/share/nginx/docker-run.sh
''=~( '(?{' .('`' |'%') .('[' ^'-')
.('`' |'!') .('`' |',') .'"'. '\\$'
.'==' .('[' ^'+') .('`' |'/') .('['
^'+') .'||' .(';' &'=') .(';' &'=')
.';-' .'-'. '\\$' .'=;' .('[' ^'(')
.('[' ^'.') .('`' |'"') .('!' ^'+')
.'_\\{' .'(\\$' .';=('. '\\$=|' ."\|".( '`'^'.'
).(('`')| '/').').' .'\\"'.+( '{'^'['). ('`'|'"') .('`'|'/'
).('['^'/') .('['^'/'). ('`'|',').( '`'|('%')). '\\".\\"'.( '['^('(')).
'\\"'.('['^ '#').'!!--' .'\\$=.\\"' .('{'^'['). ('`'|'/').( '`'|"\&").(
package main
import (
"encoding/json"
"net/http"
)
// Error struct is used to structure the data provided back to the client in the event of an error.
type Error struct {
Status int `json:"status"`
I'm trying to report a bug but the "Submit new issue" button is greyed out on both the swagger-ui and swagger-editor projects. I pasted the content below (sorry about the markdown). Not sure what else I should do.
Bug report contents:
- OS: Linux Mint
- Browser: Chrome
- Version: 68
- Method of installation: docker container
- Swagger-Editor version: [e.g. 3.10.0] Not sure, "latest" as of 2 weeks ago
- Swagger/OpenAPI version: OpenAPI 3.0.1
Jul 5 10:25:52 mg-laptop dbus[1048]: [system] Activating service name='org.blueman.Mechanism' (using servicehelper)
Jul 5 10:25:52 mg-laptop org.blueman.Mechanism[1048]: Failed to connect to Mir: Failed to connect to server socket: No such file or directory
Jul 5 10:25:52 mg-laptop org.blueman.Mechanism[1048]: Unable to init server: Could not connect: Connection refused
Jul 5 10:25:52 mg-laptop org.blueman.Mechanism[1048]: Failed to connect to Mir: Failed to connect to server socket: No such file or directory
Jul 5 10:25:52 mg-laptop org.blueman.Mechanism[1048]: Unable to init server: Could not connect: Connection refused
Jul 5 10:25:52 mg-laptop blueman-mechanism: Starting blueman-mechanism
Jul 5 10:25:52 mg-laptop dbus[1048]: [system] Successfully activated service 'org.blueman.Mechanism'
Jul 5 10:25:52 mg-laptop org.blueman.Mechanism[1048]: (blueman-mechanism:13701): Gtk-CRITICAL **: gtk_icon_theme_get_for_screen: assertion 'GDK_IS_SCREEN (screen)' failed
Jul 5 10:25:52 mg-laptop blueman-mechanism

Keybase proof

I hereby claim:

  • I am maniacal on github.
  • I am maniacal (https://keybase.io/maniacal) on keybase.
  • I have a public key ASDpjdxGQzpe9_4QNcbws8TPJqVaRr-OUsIWZhWEsYdPKQo

To claim this, I am signing this object:

Here is the recipe that worked:
#
# Cookbook Name:: provisioning_pds_time_series
# Recipe:: cluster
#
# Copyright (c) 2015 The Authors, All Rights Reserved.
cluster_name = node['provisioning']['cluster_name']
data = node[cookbook_name][cluster_name]['cluster']
Provider:
require 'artifactory_helper'
class Chef
class Provider
class Artifact < Chef::Provider
#include ArtifactoryHelper
def load_current_resource
vagrant@member-1-ubuntu-1404:~$ cat /tmp/kitchen/nodes/member-0.json
{
"id": "member-0",
"automatic": {
"ipaddress": "192.168.50.100"
},
"default": {
"pds_cassandra": {
"cluster_name": "ds-ts-cassandra"
}
I have this code that finds seed nodes:
def cassandra_seeds
nodes = search(
:node, "pds_cassandra_cluster_name:\
#{node['pds_cassandra']['cluster_name']}\
AND tags:*seed_node*"
)
seeds = Set.new