Skip to content

Instantly share code, notes, and snippets.

View skord's full-sized avatar
🤘

Mike Danko skord

🤘
  • Estuary
  • Columbus, OH, USA
View GitHub Profile
version: '2'
services:
maxapi:
build: .
command: jruby bin/rails s -p 9292 -b 0.0.0.0
environment:
- MAXSCALE_MAXINFO_IP_PORT=10.190.0.116:8003
- JRUBY_OPTS=--debug
ports:
- "9292:9292"
mike@dankombp  ~/projects/maria/maxpanel-ember   master ●  ember build --environment production
cleaning up...
Build failed.
File: assets/vendor.js (61602:24)
The Broccoli Plugin: [UglifyWriter] failed with:
Error
at new JS_Parse_Error (eval at <anonymous> (/Users/mike/projects/maria/maxpanel-ember/node_modules/uglify-js/tools/node.js:28:1), <anonymous>:1545:18)
at js_error (eval at <anonymous> (/Users/mike/projects/maria/maxpanel-ember/node_modules/uglify-js/tools/node.js:28:1), <anonymous>:1553:11)
at croak (eval at <anonymous> (/Users/mike/projects/maria/maxpanel-ember/node_modules/uglify-js/tools/node.js:28:1), <anonymous>:2092:9)
at token_error (eval at <anonymous> (/Users/mike/projects/maria/maxpanel-ember/node_modules/uglify-js/tools/node.js:28:1), <anonymous>:2100:9)
@skord
skord / server.rb
Last active November 18, 2016 18:07
class Server
include ActiveModel::Model
extend ActiveModel::Naming
include ActiveModel::Validations
attr_accessor :id, :name, :server, :status, :protocol, :port,
:server_version, :node_id, :master_id, :slave_ids,
:repl_depth, :number_of_connections, :current_no_of_conns,
:current_no_of_operations, :errors
version: '2'
services:
maxscale:
build: maxscale
links:
- node1:node1
- node2:node2
- node3:node3
ports:
- 13306:3306
require 'parslet'
require 'parslet/convenience'
module Maxadmin
class Parser < Parslet::Parser
root(:document)
rule(:document) { root }
rule(:root) {(
(match["[:alnum:][:punct:] "].repeat.as(:root) >> newline) >>
items.repeat
).repeat
@skord
skord / getserver1.json
Created November 15, 2016 13:44
GET /server/1
{
"data": {
"attributes": {
"current-no-of-conns": 1,
"current-no-of-operations": 0,
"id": 1,
"master-id": -1,
"node-id": 1,
"number-of-connections": 19,
"port": 3306,
Session 4 (0x7fed68000be0)
State: Listener Session
Service: read_only_service (0x1d6cdc0)
Client DCB: 0x1d88540
Connected: Sat Nov 12 18:32:42 2016
Session 5 (0x7fed68000f70)
State: Listener Session
Service: read_write_service (0x1d6a160)
Client DCB: 0x7fed68000c80
Connected: Sat Nov 12 18:32:42 2016
@skord
skord / output.yaml
Last active November 10, 2016 18:25
---
"Server 0x1ca8fd0 (mariadb1)":
"Server": "mariadb1"
"Status": "Master, Running"
"Protocol": "MySQLBackend"
"Port": "3306"
"Server Version": "10.1.18-MariaDB"
"Node Id": "1"
"Master Id": "-1"
"Slave Ids": "2, 3 , 4 , 5"
Server 0x1ca8fd0 (mariadb1)
Server: mariadb1
Status: Master, Running
Protocol: MySQLBackend
Port: 3306
Server Version: 10.1.18-MariaDB
Node Id: 1
Master Id: -1
Slave Ids: 2, 3 , 4 , 5
Repl Depth: 0
[{:le=>100, :count=>457879},
{:le=>200, :count=>1859},
{:le=>300, :count=>0},
{:le=>400, :count=>0},
{:le=>500, :count=>0},
{:le=>600, :count=>0},
{:le=>700, :count=>0},
{:le=>800, :count=>0},
{:le=>900, :count=>0},
{:le=>1000, :count=>0},