Skip to content

Instantly share code, notes, and snippets.

View mavimo's full-sized avatar
⌨️
coding

Marco Vito Moscaritolo mavimo

⌨️
coding
View GitHub Profile

ThumbsUP Stats (aka 👍 📈)

Welcome to ProntoPro's backend assignment!

Please read through the instructions below and don't hesitate to ask questions in case you need any clarification on the specs.

Good luck and have fun!

Introduction

@mavimo
mavimo / keybase.md
Created September 19, 2019 19:10
keybase.md

Keybase proof

I hereby claim:

  • I am mavimo on github.
  • I am mavimo (https://keybase.io/mavimo) on keybase.
  • I have a public key ASDsM0YBtCYELJ7Gf3byPsmS_Eo6vlkqOCqmvDG656Trsgo

To claim this, I am signing this object:

@mavimo
mavimo / keybase.md
Created September 19, 2019 19:07
keybase.md

mavimo

Keybase proof

I hereby claim:

  • I am mavimo on github.
  • I am mavimo (https://keybase.io/mavimo) on keybase.
  • I have a public key ASDsM0YBtCYELJ7Gf3byPsmS_Eo6vlkqOCqmvDG656Trsgo

To claim this, I am signing this object:

mavimo
### Keybase proof
I hereby claim:
* I am mavimo on github.
* I am mavimo (https://keybase.io/mavimo) on keybase.
* I have a public key ASDsM0YBtCYELJ7Gf3byPsmS_Eo6vlkqOCqmvDG656Trsgo
To claim this, I am signing this object:
apiVersion: v1
kind: Service
metadata:
labels:
app: cassandra
name: cassandra
spec:
clusterIP: None
ports:
- port: 9042
@mavimo
mavimo / dockerscaler.go
Created July 24, 2018 07:03
docker-scaler
package dockerscaler
import (
"context"
"crypto/tls"
"crypto/x509"
"errors"
"fmt"
"io/ioutil"
"net/http"
@mavimo
mavimo / rabbit-dashbard.json
Created January 1, 2018 22:29
monitoring RabbitMQ with Grafana
{
"annotations": {
"list": [
{
"builtIn": 1,
"datasource": "-- Grafana --",
"enable": true,
"hide": true,
"iconColor": "rgba(0, 211, 255, 1)",
"name": "Annotations & Alerts",
/**
 * Implements hook_js_alter().
 */
function THEME_NAME_js_alter(&$javascript) {
 foreach ($javascript as $key => &$file) {
 if ($file['type'] === 'file') {
 $filename_min = preg_replace('/.js$/i', '.min.js', $file['data']);
if (file_exists($filename_min)) {
 $file['data'] = $filename_min;
 }
/**
 * Implements hook_css_alter().
 */
function THEME_NAME_css_alter(&$css) {
foreach ($css as &$style) {
 $style['weight'] += $style['group'];
 $style['group'] = CSS_DEFAULT;
 $style['every_page'] = TRUE;
 }
}
/**
 * Implements hook_js_alter().
 */
function THEME_NAME_js_alter(&$javascript) {
 foreach ($javascript as &$script) {
  $script[‘weight’] += $script[‘group’];
 $script[‘group’] = JS_DEFAULT;
 $script[‘every_page’] = TRUE;
 }
}