Skip to content

Instantly share code, notes, and snippets.

@michel47
michel47 / codepen.html
Created February 27, 2021 22:13
using markdown w/ front-matter for codepen web-page
<p class="codepen" data-height="100%" data-theme-id="light" data-default-tab="html,result" data-user="michel47-the-encoder" data-slug-hash="vYyRYYy" style="height: 597px; box-sizing: border-box; display: flex; align-items: center; justify-content: center; border: 2px solid; margin: 1em 0; padding: 1em;" data-pen-title="Dr I%B7T">
<span>See the Pen <a href="https://codepen.io/michel47-the-encoder/pen/vYyRYYy">
Dr I%B7T</a> by Michel G. Combes (<a href="https://codepen.io/michel47-the-encoder">@michel47-the-encoder</a>)
on <a href="https://codepen.io">CodePen</a>.</span>
</p>
<script async src="https://cpwebassets.codepen.io/assets/embed/ei.js"></script>
@michel47
michel47 / README.md
Last active February 28, 2021 19:43
Leap Second List Verification (SHA1)
qmleaps sha1 ntp_mod ntp_exp ntp_offset
Qmet9TULQgmm3gE55BA8Htia7brVtQnVX6YZiSyDzhZ6Jk
89073fa89e913fd760559aa529d1feee5b0f6c91
3819011916
3849638400
2208992400

Verifying leap-seconds list file

The perl script 'leapssha1.pl' is computing the hash (sha1) of the data within a leap-seconds.list file

@michel47
michel47 / README.md
Last active March 31, 2021 11:01
web page integrity check using SHA256
@michel47
michel47 / README.html
Last active April 1, 2021 11:20
a tiny code to fetch your IPFS peerid and give you an url to your published name space (IPNS)
<!DOCTYPE html>
<html xmlns="http://www.w3.org/1999/xhtml" lang="" xml:lang="">
<head>
<meta charset="utf-8" />
<meta name="generator" content="pandoc" />
<meta name="viewport" content="width=device-width, initial-scale=1.0, user-scalable=yes" />
<title>get your IPFS PeerID</title>
<style>
code{white-space: pre-wrap;}
span.smallcaps{font-variant: small-caps;}
@michel47
michel47 / panpandoc.sh
Last active April 1, 2021 09:24
pandoc with fronmatter evaluated with markdown directly ...
#
# problem:
# using $variable$ within a markdown file and have pandoc evaluate them using the frontmatter
# solution:
# run pandoc twice using the file itself as template
# usage:
# sh panpandoc.sh markdownfile.md [outputfile.html]
intent="script to have frontmatter variables evaluated using pandoc"
@michel47
michel47 / README.md
Last active April 5, 2021 06:50
What is TOFU ?

TOFU ?

TOFU is "Time of First Use"

This script is to determine you peerid and track the time of first use

note: you need to allow this origin url within your IPFS' config file

@michel47
michel47 / README.md
Last active April 8, 2021 11:37
Tiny IPFS repository

The minimum size repository for a running ipfs node is about 16KB

screenshot 1

~Dr I·T

@michel47
michel47 / README.md
Created April 8, 2021 20:24
\\SO answer ...

How to access a json key when it is a number?

here is my answer :

@michel47
michel47 / README.md
Last active April 11, 2021 07:06
embed anything into a png

An image to make images ...

perl script

This little perl script makes an image out of anything ...

note: you'd need to have the program convert from [imageMagick][2]

@michel47
michel47 / README.md
Created April 11, 2021 19:19
Gist Icon ?

What do you use for a Gist icon ?