Skip to content

Instantly share code, notes, and snippets.

Marco Vito Moscaritolo mavimo

Block or report user

Report or block mavimo

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
View 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:

View 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:

View gist:2ffc35c2efab792788f06cf69cec78a6
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:
View hetzner-csi.yaml
---
kind: StorageClass
apiVersion: storage.k8s.io/v1
metadata:
namespace: kube-system
name: hcloud-volumes
annotations:
storageclass.kubernetes.io/is-default-class: "true"
provisioner: csi.hetzner.cloud
volumeBindingMode: WaitForFirstConsumer
View cassandra-service.yaml
apiVersion: v1
kind: Service
metadata:
labels:
app: cassandra
name: cassandra
spec:
clusterIP: None
ports:
- port: 9042
View storage.yaml
kind: StorageClass
apiVersion: storage.k8s.io/v1
metadata:
namespace: kube-system
name: hcloud-volumes
annotations:
storageclass.kubernetes.io/is-default-class: "true"
provisioner: com.hetzner.csi-hcloud
---
View dockerscaler.go
package dockerscaler
import (
"context"
"crypto/tls"
"crypto/x509"
"errors"
"fmt"
"io/ioutil"
"net/http"
@mavimo
mavimo / rabbit-dashbard.json
Created Jan 1, 2018
monitoring RabbitMQ with Grafana
View rabbit-dashbard.json
{
"annotations": {
"list": [
{
"builtIn": 1,
"datasource": "-- Grafana --",
"enable": true,
"hide": true,
"iconColor": "rgba(0, 211, 255, 1)",
"name": "Annotations & Alerts",
View sample.php
/**
 * 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;
 }
View template.php
/**
 * 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;
 }
}
You can’t perform that action at this time.