Skip to content

Instantly share code, notes, and snippets.

View rlogiacco's full-sized avatar
💭
I may be slow to respond, be patient...

Roberto Lo Giacco rlogiacco

💭
I may be slow to respond, be patient...
View GitHub Profile
Server listening on :: port 22.
Server listening on 0.0.0.0 port 22.
2023/02/14 21:42:18 cmd/web.go:106:runWeb() [I] Starting Gitea on PID: 18
2023/02/14 21:42:18 cmd/web.go:160:runWeb() [I] Global init
2023/02/14 21:42:18 routers/init.go:116:GlobalInitInstalled() [I] Git Version: 2.36.4, Wire Protocol Version 2 Enabled (home: /data/gitea/home)
2023/02/14 21:42:18 routers/init.go:117:GlobalInitInstalled() [I] AppPath: /usr/local/bin/gitea
2023/02/14 21:42:18 routers/init.go:118:GlobalInitInstalled() [I] AppWorkPath: /app/gitea
2023/02/14 21:42:18 routers/init.go:119:GlobalInitInstalled() [I] Custom path: /data/gitea
2023/02/14 21:42:18 routers/init.go:120:GlobalInitInstalled() [I] Log path: /data/gitea/log
2023/02/14 21:42:18 routers/init.go:121:GlobalInitInstalled() [I] Configuration file: /data/gitea/conf/app.ini
@rlogiacco
rlogiacco / ProxyBeacon.src
Created February 3, 2022 21:56
Verify ProxyBeacon on Etherscan
// Sources flattened with hardhat v2.8.3 https://hardhat.org
// File openzeppelin/proxy/beacon/IBeacon.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts v4.4.1 (proxy/beacon/IBeacon.sol)
pragma solidity ^0.8.0;
/**
version: '3.6'
volumes:
zookeeper-data:
driver: local
zookeeper-log:
driver: local
kafka-data:
driver: local
@rlogiacco
rlogiacco / Clipper
Created January 13, 2019 19:43
PDF Clip
import com.itextpdf.text.DocumentException;
import com.itextpdf.text.pdf.PdfArray;
import com.itextpdf.text.pdf.PdfDictionary;
import com.itextpdf.text.pdf.PdfName;
import com.itextpdf.text.pdf.PdfReader;
import com.itextpdf.text.pdf.PdfStamper;
import java.io.File;
import java.io.FileOutputStream;
import java.io.IOException;
@rlogiacco
rlogiacco / Plastico.ino
Last active November 17, 2018 02:03
Innov@ction
#include "Arduino.h"
#include <FastLED.h>
#include <elapsedMillis.h>
#include <FormattingSerialDebug.h>
#define PIN_LEGENDA 2
#define PIN_PLASTICO 3
#define NUM_STANZE 13
#define LED_COUNT_LEGENDA 13
@rlogiacco
rlogiacco / CapTouch Test
Created September 25, 2018 11:36
CapTouch
int ref0, ref1; //reference values to remove offset
int ADCTouch_read(byte ADCChannel, int samples) {
long _value = 0;
for(int _counter = 0; _counter < samples; _counter ++)
{
pinMode(ADCChannel, INPUT_PULLUP);
analogRead(ADCChannel);
@rlogiacco
rlogiacco / freeRam.h
Created September 5, 2017 21:02
Arduino free RAM
int freeRam() {
extern int __heap_start, *__brkval;
int v;
return (int) &v - (__brkval == 0 ? (int) &__heap_start : (int) __brkval);
}
@rlogiacco
rlogiacco / Cubo3x3x3.ino
Created May 8, 2017 13:42
GeekL@b Cube
#include <Effects.h>
#include <Elapsed.h>
#include <Qube.h>
#define BUTTON_PIN 2
#define SIZE 3
const int pins[SIZE][SIZE] = { //
{ 3, 4, 5 }, // row 1
{ 6, 7, 8 }, // row 2
{ 9, 10, 11 } // row 3
@rlogiacco
rlogiacco / CircularBuffer.h
Last active April 25, 2017 01:50
CircularBuffer
/*
CircularBuffer.h - Circular buffer library for Arduino.
Copyright (c) 2017 Roberto Lo Giacco. All right reserved.
This library is free software; you can redistribute it and/or
modify it under the terms of the GNU Lesser General Public
License as published by the Free Software Foundation; either
version 2.1 of the License, or (at your option) any later version.
This library is distributed in the hope that it will be useful,
@rlogiacco
rlogiacco / final_3x3x3.ino
Created March 31, 2017 00:26
Innov@ction
#include <Elapsed.h>
#include <Effects.h>
#include <Qube.h>
#include <FormattingSerialDebug.h>
#define BUTTON_PIN 2
#define SIZE 3
const int pins[SIZE][SIZE] = { //
{ 3, 4, 5 }, // row 1
{ 6, 7, 8 }, // row 2