Skip to content

Instantly share code, notes, and snippets.

View mastrolinux's full-sized avatar

Luca Cipriani mastrolinux

View GitHub Profile
@mastrolinux
mastrolinux / arduino-iot-node-red-flow.json
Created September 15, 2020 12:39
Arduino IoT Cloud - Node-RED Sample Flow
[
{
"id": "aba1269b.035938",
"type": "tab",
"label": "Flow 1",
"disabled": false,
"info": ""
},
{
"id": "c928098d.1cced8",
@mastrolinux
mastrolinux / CoreMark-portenta-h7-m7-O2.txt
Last active July 3, 2020 10:32
CoreMark Results for Portenta H7
CoreMark Performance Benchmark
CoreMark measures how quickly your processor can manage linked
lists, compute matrix multiply, and execute state machine code.
Iterations/Sec is the main benchmark result, higher numbers are better
Running.... (usually requires 12 to 20 seconds)
2K performance run parameters for coremark.
CoreMark Size : 666
package main
import (
"bufio"
"fmt"
"os"
"strconv"
"strings"
"github.com/aws/aws-sdk-go/aws"
@mastrolinux
mastrolinux / minion
Created April 2, 2014 09:13
/etc/salt/minion masterless
file_client: local
file_roots:
base:
- /srv/salt
pillar_roots:
base:
- /srv/salt/pillar
@mastrolinux
mastrolinux / init.sls
Created April 2, 2014 08:36
Common/init.sls
{% set home = pillar.get('home', '/home/ubuntu') %}
{% set user = pillar.get('user', 'ubuntu') %}
main_user:
user.present:
- name: {{ user }}
- home: {{ home }}
- createhome: True
- shell: /bin/bash
# - gid_from_name: True
- groups:
{% set ide_num = grains['nodename'].split('-')[1].lstrip('0') %}
{{ (10 * ide_num|int) % 60 }} 1,5,9,13,17,21 * * * /usr/local/bin/supervisorctl -c /home/ubuntu/etc/supervisord.conf restart ide:ide-00
@mastrolinux
mastrolinux / init.sls
Created August 7, 2013 15:44
A saltstack state for datadog agent installation
datadog-repo:
pkgrepo:
- managed
- humanname: "DataDog Agent"
- name: deb http://apt.datadoghq.com/ unstable main
- keyserver: keyserver.ubuntu.com
- keyid: C7A7DA52
- file: /etc/apt/sources.list.d/datadog.list
datadog-pkg:
('rabbitmq.queue.memory', 1369413043, 90112,
{'hostname': 'rabbitmq',
'tags': ['rabbitmq_node:rabbit@rabbitmq',
'rabbitmq_vhost:c9',
'rabbitmq_queue:backup/0',
'rabbitmq_policy:']
}),