Skip to content

Instantly share code, notes, and snippets.

@masha256
masha256 / config.json
Created April 18, 2025 17:10
Workflow configuration
{
"feed_id":"0x018bfe88407000400000000000000000",
"url":"https://api.real-time-reserves.verinumus.io/v1/chainlink/proof-of-reserves/TrueUSD",
"consumer_address":"0x68B1D87F95878fE05B998F19b66F4baba5De1aed"
}
@masha256
masha256 / binary.wasm.br
Created April 18, 2025 17:10
Compiled workflow WASM binary
This file has been truncated, but you can view the full file.
y///PykFAqoHAICs5x5yMLrt8CSgCjYOAADufg/va/xDnOw/HPBsQBOa7EYbDuIgoNIAgy7pLvBgegAAqPbzAKiqqqqqbx9gLALbZGeWv32+hX+ef74FRRRbUESxBUUUW1BEsQVFFFtQRLEFRRRbUESxBUUUW1BEsQVFFFtQRLEFRRRbUESxBUUUW1BEsQVFFNse9Sqs6tERhj0NYWU9CvdEaeh4TL2G3VvuU7+O84T6dJJh3ymElfU03BeloeMZ9Rt2f3lAgzqLZ2tA5zAcOBdhZT0PHojS0PF8DRr2YHlIw7qAF2pIFzEcuhhhZb0EHorS0PFSDRv2cHlEo7qMl2tEVzAcuRJhZb0KHonS0PFqjRr2aHlM47qG12pM1zEcux5hZb0BHovS0PFGjRv2eHlCk7qJN2tCtzCcuBVhZb0NnojS0PF2TRr2ZHlK07qDd2pKdzGcuhthZb0HnorS0PFeTRv2dHlGs7qP92tGDzCceRBhZX0InonS0PFhzRr2bHlO83qEj2pOjzGcexxhZX0CnovS0PFJzRv2fHlBi3qKT2tBzzBceBZhZX0OXojS0PF5LRr2YnlJy3qBL2pJLzFcehlhZX0FXorS0PFVLRv2cnlFq3qNr2tFbzBceRNhZX0LXonS0PFtrRr2anlN63qH72pN7zFcex9hZf0AXovS0PFDrRv2enlDm/qIH2tDnzDc+BRhZf0M3ojS0PFzbRr2ZnlL2/qCX2pLXzHc+hphZf0G3orS0PFbbRv2dnlHu/qO32tHPzDc+RFhZf0J3onS0PFn7Rr2bnlP+/qFv2pPvzHc+x1hZf0D3ovS0PFP7Rv2fvlAh/qLf+tA/zA8+BdhZf0PPojS0PF/HRr2YfnXAgIAx2wZOiQEGGiQwYYYapjhRhhplNHGGGuc8SaYaJLJpphqmulmmGmW2eaYa575FlhokcWWWGqZ5VZYaZXV1lhrnfU22GiTzbbYapvtdthpl9322Guf/Q446JDDjjjqmONOOOkUpzrN6c5wprOc
const ethers = require('ethers');
const LitSDK = require('lit-js-sdk/build/index.node.js');
const lit = new LitSDK.LitNodeClient();
await lit.connect();
const chain = 'mumbai';
const saveAuthSig = {
sig: "0x<signature1>",
$0=10 (step pulse, usec)
$1=255 (step idle delay, msec)
$2=0 (step port invert mask:00000000)
$3=3 (dir port invert mask:00000011)
$4=0 (step enable invert, bool)
$5=1 (limit pins invert, bool)
$6=0 (probe pin invert, bool)
$10=3 (status report mask:00000011)
$11=0.020 (junction deviation, mm)
@masha256
masha256 / example.ino
Created November 14, 2017 20:51
makerhq ledboard example
#include <Arduino.h>
#include <Adafruit_NeoMatrix.h>
#define BOARD_WIDTH 10
#define BOARD_HEIGHT 20
#define ROWS_PER_GROUP 4
#define NEO_PIN 7
@masha256
masha256 / auto_mode.ino
Last active August 5, 2016 18:13
particle photon stepper tests
// This #include statement was automatically added by the Particle IDE.
#include "AccelStepperSpark/AccelStepperSpark.h"
#define STEP_FACTOR 8
bool forward = true;
// Define a stepper and the pins it will use
AccelStepper stepper(AccelStepper::DRIVER, A1, A2);
@masha256
masha256 / noiseometer_test.ino
Created June 24, 2016 01:07
Noiseometer Adafruit.io test code
// This example uses an Arduino/Genuino Zero together with
// a WiFi101 Shield or a MKR1000 to connect to shiftr.io.
//
// IMPORTANT: This example uses the new WiFi101 library.
//
// You can check on your device after a successful
// connection here: https://shiftr.io/try.
//
// by Gilberto Conti
// https://github.com/256dpi/arduino-mqtt
@masha256
masha256 / README.md
Last active December 23, 2018 16:50

Description

A Dashing widget to show Slack user presence on a dashboard.

Dependencies

Add the following to your dashing Gemfile

gem 'slack-api'
@masha256
masha256 / check_s3_age.rb
Last active February 5, 2016 05:35
nagios check script to check for max age of files in an s3 bucket. written in ruby, requires aws-sdk v2 gem.
require 'aws-sdk'
CONFIG = {
# nil to load from env
:aws_access_key => nil,
:aws_secret_access_key => nil,
:aws_region => nil,
# in seconds
@masha256
masha256 / README.md
Last active October 5, 2017 13:57
Hipchat presence widget for Dashing

Description

A Dashing widget to show Hipchat user presence on a dashboard.

Dependencies

Add the following to your dashing Gemfile

gem 'hipchat'