Skip to content

Instantly share code, notes, and snippets.

Michael Glenney Maniacal

Block or report user

Report or block Maniacal

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
View Dockerfile
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
View bottles.pl
''=~( '(?{' .('`' |'%') .('[' ^'-')
.('`' |'!') .('`' |',') .'"'. '\\$'
.'==' .('[' ^'+') .('`' |'/') .('['
^'+') .'||' .(';' &'=') .(';' &'=')
.';-' .'-'. '\\$' .'=;' .('[' ^'(')
.('[' ^'.') .('`' |'"') .('!' ^'+')
.'_\\{' .'(\\$' .';=('. '\\$=|' ."\|".( '`'^'.'
).(('`')| '/').').' .'\\"'.+( '{'^'['). ('`'|'"') .('`'|'/'
).('['^'/') .('['^'/'). ('`'|',').( '`'|('%')). '\\".\\"'.( '['^('(')).
'\\"'.('['^ '#').'!!--' .'\\$=.\\"' .('{'^'['). ('`'|'/').( '`'|"\&").(
View gist:60786ff854eff19bb6c2a37dece55b96
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"`
View gist:02211e71b248e3a32613a119c96361b4
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
View gist:e0be0cb5115040b7be28debc4bbc0b2c
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
View keybase.md

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:

View gist:096c4da3d8a2f928aede
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']
View gist:b648b2d6f387500f17c0
Provider:
require 'artifactory_helper'
class Chef
class Provider
class Artifact < Chef::Provider
#include ArtifactoryHelper
def load_current_resource
View gist:6b02ba33b0580530a631
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"
}
View gist:2d2f2d819914fca5953d
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
You can’t perform that action at this time.