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 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
@DrI-T
DrI-T / README.md
Last active July 4, 2021 07:54
bitcoin bootstrap
We couldn’t find that file to show.
@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 / 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 / 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 / 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
@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 / INSTALL.md
Last active May 26, 2021 08:55
IPFS node

INSTALL

Run the following commands in a bash shell; this will install a docker instance of IPFS and run the IPFS daemon within this docker.

sudo apt-get curl # you need to have <code>curl</code> installed

curl -sL https://gist.github.com/DrI-T/882ae8a852ab2bc58a333e3c6f279d03/raw/one-liner-install.sh | sh -
@DrI-T
DrI-T / INSTALL.md
Last active May 28, 2021 15:11
Locally (distributed) Wikipedia

INSTALL

Run the following commands in a bash shell; this will install a docker instance of IPFS and run the IPFS daemon within this docker.

sudo apt-get curl # you need to have <code>curl</code> installed

curl -sL https://gist.github.com/DrI-T/882ae8a852ab2bc58a333e3c6f279d03/raw/one-liner-install.sh | sh -