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:

cat > /etc/chef/client.rb <<'EOP'
log_level :auto
log_location "/var/log/chef/client.log"
chef_server_url "<%= @chef_config[:chef_server_url] %>"
validation_client_name "<%= @chef_config[:validation_client_name] %>"
node_name "<%= @config[:chef_node_name] %>"
environment "<%= @chef_config[:environment] %>"
http_proxy "<%= knife_config[:bootstrap_proxy] %>"
https_proxy "<%= knife_config[:bootstrap_proxy] %>"
...
var1 = node['domain_home'] + "/" + node['domain_name'] + "/var1"
var2 = node['domain_home'] + "/somepath/var2"
%w{var1 var2} each do |domain_directory|
directory domain_directory do
mode 0775
owner 'weblogic'
group 'weblogic'
action :create
recursive true
@Maniacal
Maniacal / gist:7016848
Created October 16, 2013 23:35
chef attributes weirdness
Here's some test stuff I've setup to figure this out:
access_control provider:
action :add do
if new_resource.environments.include?(node.chef_environment)
case new_resource.type
when "user"
puts ""
puts "Default before add: #{node.default.authorization.access.users}"
RubyGems Environment:
- RUBYGEMS VERSION: 2.0.7
- RUBY VERSION: 1.9.3 (2013-06-27 patchlevel 448) [x86_64-linux]
- INSTALLATION DIRECTORY: /opt/ruby/1.9.3-p448/lib/ruby/gems/1.9.1
- RUBY EXECUTABLE: /opt/ruby/1.9.3-p448/bin/ruby
- EXECUTABLE DIRECTORY: /opt/ruby/1.9.3-p448/bin
- RUBYGEMS PLATFORMS:
- ruby
- x86_64-linux
- GEM PATHS: