Skip to content

Instantly share code, notes, and snippets.

ssh-rsa AAAAB3NzaC1yc2EAAAADAQABAAABgQC9PktHcGvxzxT+PoIZfk4xuqDbKrnnottn/OAUkfw/sCkh57aXLDiSPcWfcXVyEy5FlI4eInAXFxHUfbwh8oyXrx7YtkPg7Sv3vIWDAYJM6f+c5YJg4sO3Vi5KjkQHccCkYpVS/QDGmFVaM3td0q74OJVs829tYf6X0TH2fXAgXH7E6bBHLKOMhkoAY58JbjA+6rwyJAbmt3aS7cPWLzJUh1tsAR2Oz8kyDrMDdAOm9TdoMagE7a0AUEIjsBP1aAhYuKJZPgsivLqA+iBdzZ2oHPCMmmxeOQ84HMfKNGiUHmP5hgkvCzwQsFHCWJ0RqtMJS4OKo363i5URffJtd3uQ67Fsph0r0fBUClQ8yiDdpbZ0l8uA/fIoNYJ4UpCO999Y49ikOG0e6sKZ+wfbbc2S0jQk4anP14J8sKpqWxNL2dpqa67GUpG2PEm4GWB/nvhJogk/QBaR8TAUqjNeqF/l92WOOfDhntq+p1vJeyPsuyZspchMbV90Bd1xlRpfh50= oriol@d0
@oriolrius
oriolrius / oriol.mini6-rsa.pub
Created August 24, 2022 06:59
my SSH public key
ssh-rsa AAAAB3NzaC1yc2EAAAADAQABAAABAQC+eK+pQ//i6/y+nKk89SLAnKh1TY8yls/GLOWOd0fTyFMsNSwiwpI8L+1kuE5FP//Fa9I/TfbYsTCnG2k7l6nWN1nRS9D5lfFVnswCTvc20heYwZ3IUFnNsLIxH1RMhSCaJOmmtmvdzq7wRxXeIEze29saqDDRu51ARQs4dkY+5XXlo1cpLnjk0bZ1FmiiExHUa+Sc+5OVI2BcvyU/Jgbq18XjkEhG4DblCfjUw2huvkx+O8w43hVWS3TWZmS3bK4F5FE5OSZhEubusSVXXMrPzALigpVdkfNzZCPMDv7Y45gSpOZUy4/r/E00csTpw9I0ysQclySAmzj26/Syk14L oriol@mini6
@oriolrius
oriolrius / echo_client.ino
Created November 25, 2019 22:07
Exemple inspirat en un company, PLA5 - echo_client.ino
#include <SPI.h>
#include <WiFi101.h>
#include "arduino_secrets.h"
WiFiClient client;
char ssid[] = SECRET_SSID;
char pass[] = SECRET_PASS;
int status = WL_IDLE_STATUS;
#define PORT 7
@oriolrius
oriolrius / MKREnv101_Wifi.ino
Created November 4, 2019 23:05
PLA7 - Actividad 3 - Parte 2
#include <FlashAsEEPROM.h>
#include <FlashStorage.h>
#include <Adafruit_SleepyDog.h>
#include <Arduino_MKRENV.h>
#include <WiFi101.h>
#include <RTCZero.h>
#include <MQTT.h>
#include <MQTTClient.h>
#include "arduino_secrets.h"
@oriolrius
oriolrius / Grafana Telegraf Monitoring.json
Last active April 8, 2020 04:49
Confinguration file for Grafana, it uses telegraf information from influxdb.
{
"annotations": {
"list": [
{
"builtIn": 1,
"datasource": "-- Grafana --",
"enable": true,
"hide": true,
"iconColor": "rgba(0, 211, 255, 1)",
"name": "Annotations & Alerts",
@oriolrius
oriolrius / placa_solar.svg
Created August 14, 2018 07:11
this is a SVG file used for my hot water solar system
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@oriolrius
oriolrius / bash.ahk
Last active July 18, 2018 05:48
Youtube video: https://youtu.be/B1wMVIObXR4 --- Your linux shell just one click away using Widows 10. Autohotkey allows key binds to super powerful scripts, thanks to that I created a small script for assigning my WSL bash shell to the F1 button and show/hide the shell everytime I click the F1. This is exactly how I do that in linux using Yakuake.
#WinActivateForce
#SingleInstance force
runApp(exe) {
IfWinExist, ahk_exe %exe%
{
IfWinActive
{
WinMinimize
return
@oriolrius
oriolrius / preparing_data_for_nextion.js
Created July 4, 2018 16:03
This is the code that I have in the node which prepares data before it is sent to the Nextion serial protocol.
var str = msg.payload;
var buf = [];
for (var i=0, l = str.length; i < l; i++) {
var ascii = str.charCodeAt(i);
buf.push(ascii);
}
buf.push(255);
buf.push(255);
buf.push(255);
@oriolrius
oriolrius / grafana-script-test.js
Created November 29, 2017 16:32
this is a hello world test for grafana scripted dashboards, please refer to this video for more information: http://oriolrius.cat/blog/2017/11/24/scripted-grafana-dashboards/
'use strict';
var dashboard;
dashboard = {
title: 'this is just a test',
rows : [],
};
dashboard.time = {