Skip to content

Instantly share code, notes, and snippets.

View DrI-T's full-sized avatar

Doctor I·T DrI-T

View GitHub Profile
@DrI-T
DrI-T / README.md
Last active April 2, 2024 16:00
lliptic Curve Digital Signature and perl

Elliptic Curve Digital Signature and perl

The easier way to manipulate [ECC][1] key-pairs and signatures is via the perl module [Crypt::PK::ECC][2].

Below is a simple example of code for

  1. creating the key pair ([secp256k1][3]) : eckeygen.pl
  2. signing and verifying a message : signature.pl
@DrI-T
DrI-T / README.md
Last active July 14, 2022 18:45
simply hostless site

This is a way to redirect a domain name the IPFS version of the site

@DrI-T
DrI-T / DHkeys.pl
Last active March 10, 2022 23:34
GitChain: a eco-organic git based blockchain
#!/usr/bin/perl
#BEGIN { if (-e $ENV{SITE}.'/lib') { use lib $ENV{SITE}.'/lib'; } }
# usage:
# ipfs key export -o /dev/stdout DPKI | perl DHkeys.pl $pku
# header: 08011240
# ipfs key list -l --ipns-base base16 | grep self
# pub-self: f01721220d4ca21fd67b197375c10392f392adc4cd33fbce4575d435e23a664f0cbac60f7
# ........ 1 2 3 4 5 6
@DrI-T
DrI-T / README.md
Last active February 22, 2022 20:12
BKU: starting the Knowledge Economy

brandmarks, knowledgemark and usemarks (BKU)


   *** Disclaimer this is a project in development ***

Not all features are readily available if you are a developper, a talented contributor, or a technology evengelist we will be delighted if you join us. if you want to fund the project to help its release, PLEASE do so

@DrI-T
DrI-T / README.md
Last active February 8, 2022 20:22
btcchain

Bitcoin chain hashes

A block chain is nothing more than a sequences of hashes ... here are the top ones as of Feb 8 21:00

@DrI-T
DrI-T / README.md
Last active February 6, 2022 15:30
using GIT add a blockchain

The git blockchain

GIT already "cryptographically chain commits the only thing we are missing is a secure timestamp to have a concensus among the participants.

Using ots will provide timestamp on the bitcoin chain (BTC)

We only need a way to discover the HEAD (i.e. longuest chain) git pull $(pick-random-node)

@DrI-T
DrI-T / INSTALL.md
Created January 18, 2022 16:56
npm install conflict (SOLVED)
# FRESH START !
unset NODE_ENV
sudo apt-get remove nodejs
sudo apt update
sudo apt autoremove
sudo apt upgrade
# problem with npm and node install
sudo apt-get install npm
apt-cache policy npm
@DrI-T
DrI-T / nftime.pl
Last active December 19, 2021 04:50
nf-req-id.txt
#!/usr/bin/perl
# curl -I https://app.netlify.app/
use YAML::XS qw(Dump);
my $resp = &head_url('http://clock.netlify.app/');
#printf "resp: %s\n",Dump($resp);
#printf "headers: %s\n",Dump($resp->headers);
my $rid = $resp->headers()->{'x-nf-request-id'};
@DrI-T
DrI-T / birth.c
Last active September 20, 2021 10:19
birth time
#define _GNU_SOURCE
#define _ATFILE_SOURCE
#include <stdio.h>
#include <stdlib.h>
#include <sys/types.h>
#include <unistd.h>
#include <fcntl.h>
#include "statx.h"
#include <time.h>
#include <getopt.h>
@DrI-T
DrI-T / README.md
Last active July 21, 2021 15:15
webup.sh

upload a website to IPFS

bot

<style>img[alt=bot] { float: right; display: block; max-width: 24vw; }</style>

initial setup

Get a simple flow to upload your website on the IPFS network

  1. get a domain name