Skip to content

Instantly share code, notes, and snippets.

View acivitillo's full-sized avatar

Alessio Civitillo acivitillo

View GitHub Profile
@acivitillo
acivitillo / Dashboards are not having a good impact on data analytics.md
Created June 28, 2020 06:15
Dashboards are not having a good impact on data analytics

Here is a quick question to you: what's more valuable? A dashboard or a good decision?

You will be tempted to say: well, dashboards enable decisions, right?

Unfortunately they do not. Dashboards can be very useful but they are still not decisions. In fact, a decision is a decision.

Personally I think commoditizing graphs and charts online has been a good thing. Before companies were spending millions (I am not joking) to do this sort of thing with outsourced contractors. So at least those tools are giving power back to in-house analysts.

But I also think that the hype of data visualization has damaged the reputation of the analytics and BI industry. I have seen plenty of scenarios of badly implemented dashboards that looked good but made business users angry and frustrated because they did not provide the information needed to make good decisions.

<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Document</title>
<link rel="stylesheet" href="https://fonts.xz.style/serve/inter.css">
<link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/@exampledev/new.css@1.1.2/new.min.css">
<style>
body {
job "sqlpad" {
datacenters = ["dc1"]
type = "service"
group "sqlpad" {
count = 1
task "sqlpad" {
driver = "docker"
config {
image = "sqlpad/sqlpad:latest"
port_map {
job "filestash2" {
datacenters = ["dc1"]
group "filestash2" {
count = 5
task "filestash2" {
driver = "docker"
config {
image = "machines/filestash"
}
resources {
@acivitillo
acivitillo / gist:c0a33e7008f5600c7ca23fcf6d5000af
Last active May 17, 2020 08:20
running jupyterhub with nomad
## Fabio
### Listen to port 80
Fabio normally listens to port 9999. In order to listen to port 80 you need to add port 80 to the `proxy.addr` configuration. This configuration can be done in a text file or enviroment varialble. If you are using the enviroment variable you need to replace the "." with a "_". Here is how the env nomad stanza should be setup to add port 80 to Fabio:
```hcl
env {
proxy_addr = ":80"
## Setting Up filestash with nomad
### Why
Filestash is a great folder management tool which runs on top of various storage devices like S3, GoogleDrive or FTP. Filestash is a very low consumption app so if you are using a big-ish server it makes sense to run it together with other applications. Nomad is an easy way to orchestrate containers and applications in a single server without having to deal with the complexity of Kubernetes.
### Getting ready
You will need the following software installs: