Skip to content

Instantly share code, notes, and snippets.

Avatar

Luca Cipriani mastrolinux

View GitHub Profile
@mastrolinux
mastrolinux / arduino-iot-node-red-flow.json
Created Sep 15, 2020
Arduino IoT Cloud - Node-RED Sample Flow
View arduino-iot-node-red-flow.json
[
{
"id": "aba1269b.035938",
"type": "tab",
"label": "Flow 1",
"disabled": false,
"info": ""
},
{
"id": "c928098d.1cced8",
@mastrolinux
mastrolinux / CoreMark-portenta-h7-m7-O2.txt
Last active Jul 3, 2020
CoreMark Results for Portenta H7
View CoreMark-portenta-h7-m7-O2.txt
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
View fastname-to-route53.go
package main
import (
"bufio"
"fmt"
"os"
"strconv"
"strings"
"github.com/aws/aws-sdk-go/aws"
@mastrolinux
mastrolinux / minion
Created Apr 2, 2014
/etc/salt/minion masterless
View minion
file_client: local
file_roots:
base:
- /srv/salt
pillar_roots:
base:
- /srv/salt/pillar
View 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:
View ide.cron
{% 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 Aug 7, 2013
A saltstack state for datadog agent installation
View init.sls
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:
View gist:5644734
('rabbitmq.queue.memory', 1369413043, 90112,
{'hostname': 'rabbitmq',
'tags': ['rabbitmq_node:rabbit@rabbitmq',
'rabbitmq_vhost:c9',
'rabbitmq_queue:backup/0',
'rabbitmq_policy:']
}),
You can’t perform that action at this time.