A Dashing widget to show a Google Visualizations Pie Chart on a dashboard.
Copy the google_pie.coffee
, google_pie.html
and google_pie.scss
file to into /widgets/google_pie
directory.
Add the following to the dashboard layout file:
/* | |
** Parameters | |
*/ | |
@minLength(3) | |
@maxLength(6) | |
@description('Prefix to be used by all resources deployed by this template') | |
param resourcePrefix string = 'demo' | |
@allowed([ | |
'Standard_LRS' |
import Foundation | |
import Combine | |
enum APIError: Error, LocalizedError { | |
case unknown, apiError(reason: String), parserError(reason: String) | |
var errorDescription: String? { | |
switch self { | |
case .unknown: | |
return "Unknown error" |
#!groovy | |
import groovy.json.JsonOutput | |
import groovy.json.JsonSlurper | |
def label = "mypod-${UUID.randomUUID().toString()}" | |
podTemplate(label: label, yaml: """ | |
spec: | |
containers: | |
- name: mvn | |
image: maven:3.3.9-jdk-8 |
#!/bin/bash | |
export vault=/usr/local/bin/vault | |
export VAULT_TOKEN=$(cat /root/.vault-token) | |
vault_cacert='-ca-cert=/path/to/your/ca.pem' | |
local_vault="-address=https://$(hostname -f):8200" | |
unsealed_vault="-address=https://$(getent hosts $(dig +short vault.service.consul | tail -n 1) | awk '{ print $2 }'):8200" | |
leader_vault="-address=https://$($vault status $vault_cacert $unsealed_vault 2> /dev/null | grep Leader | awk '{ print $2 }' | sed 's/^http\(\|s\):\/\///g'):8200" | |
vault_read="$vault read $vault_cacert $leader_vault" | |
vault_unseal="$vault unseal $vault_cacert $local_vault" |
A Dashing widget to show a Google Visualizations Pie Chart on a dashboard.
Copy the google_pie.coffee
, google_pie.html
and google_pie.scss
file to into /widgets/google_pie
directory.
Add the following to the dashboard layout file:
A Dashing widget to show a Google Visualizations Gauge on a dashboard.
Copy the google_gauge.coffee
, google_gauge.html
and google_gauge.scss
file to into /widgets/google_gauge
directory.
Add the following to the dashboard layout file:
A Dashing widget to show a Google Visualizations Column Chart on a dashboard.
Copy the google_column.coffee
, google_column.html
and google_column.scss
file to into /widgets/google_column
directory.
Add the following to the dashboard layout file:
First, we need to figure out what the actual error is. This is obviously frustrating given that the error message is intentionally truncating it. | |
1) SSH in to your node (various guides available for this if you're not already familiar with this). | |
2) Run this command (basically an Elastic Beanstalk wrapper command for npm install I found in a blog post [1]): | |
$ sudo /opt/elasticbeanstalk/containerfiles/ebnode.py --action npm-install 2 | |
3) Find the actual error message in the output from the npm install. | |
Once you know the error, it should hopefully be fairly obvious how to fix it. I've run into two different errors over the last couple days on Elastic Beanstalk: | |
The first was a dependency that was using the new "^X.Y.Z" version syntax, which is only supported in Node >= v0.10.26 (whereas Elastic Beanstalk only supports up to v0.10.21 as of today). The solution here was easy: hardcode a dependency version *prior* to when that dependency adopted to the new syntax. |
#!/bin/sh | |
function moveAssetImages | |
{ | |
usage="usage: moveAssetImages /path/to/folderOfImages /path/to/Images.xcassets" | |
sourceDir=$1 | |
assetsDir=$2 | |
if [ $# != 2 ]; then |
This is a simple widget that lets you render pie charts in Dashing. Forked from stevenleeg/pie.coffee It looks a little bit like this:
dashboard.erb
: