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 July 11, 2021 16:56
hashcash (original)

README for hashcash

gpg --verify hashcash.tgz.sig 
gpg --search-keys=3E7BCAA828B24551
curl -s https://keyserver.ubuntu.com/pks/lookup?search=3E7BCAA828B24551&fingerprint=on&op=index
curl -s https://pgp.uni-mainz.de/pks/lookup?op=index&search=3E7BCAA828B24551
curl -S http://pgpkeys.eu:11371/pks/lookup?search=3E7BCAA828B24551&fingerprint=on&op=index
# not found !
@DrI-T
DrI-T / getobjecthash.sh
Last active July 6, 2021 20:14
SHA-loose
#
# ----------------------------------------------------------
locate -e .git/objects/ | isfile.pl | perl -ne 'print "$1$2\n" if m,/([0-9a-f]{2})/([0-9a-f]{38})$,' | perl -S uniq.pl | gzip -c > objects-0.lof.gz
find ~ -not -path "*/blocks*" -type d -path '*.git/objects' 2>/dev/null | tee -a gitdirs.lof
find /data -not -path "*/blocks*" -type d -path '*.git/objects' 2>/dev/null | tee -a gitdirs.lof
find /media/michelc/ -not -path "*/blocks*" -type d -path '*.git/objects' 2>/dev/null | tee -a gitdirs.lof
@DrI-T
DrI-T / 1stcommit.sh
Last active July 5, 2021 09:32
The mother of all code
#
# just after a ``git init`` you might want to do a
#
# sh 1stcommit.sh
# source GIT urls:
# - http://127.0.0.1:8080/ipfs/QmcpcVDXp31YsEBjZGieFF1abUTweuZk9EBxVWjKjx2qKp
# - http://127.0.0.1:8080/ipns/hologit.ml/anony/source.git
# - http://127.0.0.1:8080/ipfs/QmPwfV3f5PsfaPpRV6umWJzn8kjmneQY5ZAoKdBKqd8Yeu/8c8042a378f1db0ba13e0c8216590155.git
@DrI-T
DrI-T / README.md
Last active July 5, 2021 07:26
Nightingale

nightingale (NFT)

When an image can sing ...

With a few bash commands you can make this image sing :)

requirements:

  • /bin/sh
  • curl
  • convert from ImageMagick
We couldn’t find that file to show.
@DrI-T
DrI-T / README.md
Last active July 4, 2021 07:54
bitcoin bootstrap
@DrI-T
DrI-T / README.md
Last active June 20, 2021 02:16
a page to check if your internet connection is on
@DrI-T
DrI-T / t2q22.pl
Last active June 7, 2021 19:43
count numbers of path from 0,0 to n,m avoiding obstacles
#!/usr/bin/perl
use strict;
use warnings;
# number of paths from [0,0] to [n,m] ...
my $seed = srand(2323043460);
printf "seed: %s\n",$seed;
my ($n,$m) = (6,5);
my @A = ();
@DrI-T
DrI-T / t2q23.pl
Created June 7, 2021 14:05
return on investment maximizer
#!/usr/bin/perl
use strict;
use warnings;
my $saving = 1187;
my $stocks = [39,16,124,172,110,273,245,261,43,231,97,162,217,59,240,157,179,207,227,235,24,8,126,153,232,81,267,150,202,92,44,122,127,176,171,113,82,209,263,266,14,120,291,155,84,199,223,66,265,121,63,37,52,215,44,134,262,92,138,227,151,231,108,202,284,42,148,125,146,289,14,137,27,206,172,120,134,169,104,249,34,185,262,295,174,262,42,175,235,185,26,69,199,49,45,126];
my $future = [16,252,240,226,243,1,242,55,297,49,240,86,299,238,121,282,228,0,234,267,133,277,61,51,269,79,25,26,268,282,232,250,232,293,118,298,290,261,238,257,297,27,50,200,16,247,244,28,294,259,117,298,229,278,152,229,182,168,58,245,291,10,36,275,258,143,194,250,244,281,269,274,25,294,263,26,291,252,225,196,299,275,276,98,54,289,18,298,199,220,269,13,256,293,187,45];
sub hack {
@DrI-T
DrI-T / 01EA5486DE18A882D4C2684590C8019E36C2E964.asc
Last active June 6, 2021 04:36
bitcoin core signing keys and hashes (sha256)
-----BEGIN PGP PUBLIC KEY BLOCK-----
xsFNBFWKlBcBEACgZJd/6LrSgNSVxiyq5N9h0E7zgSHG/ahuWAnWeFtxaxHeukH+
Q2Zq6F8FLbq40PphyroRylMBpzPBcyxjee7mDj1DpJ9ayv6GGPTyQzOImhChEV8p
bA42dvXnB5ju0rPh2GxctbiZZD1kiPH4jlmDIgomvupAj9OFntA5jfkuSFBekZrw
QyZowz/paMBIe24YH2LyaZjC2DqLy8Znh78OfAZxZsWSdZxK5LsbkCE9l8Li3gQa
rxm4aEMBHhvns+s8Ufa47sdJAYAfVnAWb5Dfe4oVFh70PvB8GSGFS9qeib0eEQBD
71c9MN+REDTSOYO2VnUSFbu7IrKsPsClqwfT9KzI/uz5fpHSKdCp5AO7oDZiU36s
LsSOBbukTmFQfVrAniFEZxHLCBufXCsAwp07xtUH9ytbW0Y/eHYlZojoWJJPT//1
cQ/A2Ix/nxbSkSPq8wpCUhBxvTQoU9BXeQIbSy0yUmj5nS+3DR7IK2Q7ACyVClr7