Skip to content

Instantly share code, notes, and snippets.

View amtoine's full-sized avatar
🦀

Antoine Stevan amtoine

🦀
View GitHub Profile
@amtoine
amtoine / demo.js
Last active January 12, 2023 09:44
The JS source from "Juan Benet: Enter the Merkle Forest" (https://youtu.be/Bqs_LzBjQyk)
/*
* Construction of the blocks with IPLD
*/
var ipld = require('ipld')
var obj1 = { "data": "Hello " }
var obj1Data = ipld.marshal(obj1)
var obj1Hash = ipld.multihash(obj1Data)
@amtoine
amtoine / goatfiles-on-ubuntu.md
Last active April 13, 2023 16:35
Some tips and observations on my journey on Ubuntu for my job

Some tips and observations on my journey on Ubuntu for my job

hellord 👋 😋

a little introduction

on a daily basis, i use ArchLinux -even though i plan on moving to NixOS or Guix very soon to try out a hash-based reproducible distro 😏- with the goatfiles installed, which i created and maintain actively, to give me the best desktop experience for me 😌

@amtoine
amtoine / README.md
Last active March 19, 2023 16:10
a PNG parser for `nushell`
@amtoine
amtoine / README.md
Created March 19, 2023 18:01
list contributions between PRs

list contributions between PRs

use the module

use mod.nu *
list contributions
@amtoine
amtoine / README.md
Last active March 25, 2023 12:15
list `nushell` search terms

list all nushell search terms

nu mod.nu
@amtoine
amtoine / README.md
Created March 21, 2023 17:38
pull github repos without `gh` CLI

pull github repos without gh CLI

this pulls all GitHub repositories of my @amtoine account, one page after another, without requiring the use of gh.

@amtoine
amtoine / README.md
Last active March 25, 2023 12:31
measure completion impact on the startup time of `nushell`

measure completion impact on the startup time of nushell

use mod.nu *

setup /path/to/nu_scripts/

bench profile-none.nu 20
bench profile-cargo.nu 20
bench profile-git.nu 20
@amtoine
amtoine / README.md
Created April 12, 2023 16:57
make a system alias

make a system alias

you can make a "system alias" with the following nushell snippet

(
    let command = (which batcat | get path.0);
    sudo cp $command ($command | path dirname | path join "bat")
) | ignore
@amtoine
amtoine / README.md
Last active April 12, 2023 17:05
list contributions in a *GitHub* repo

list contributions in a GitHub repo

this nushell module lets you list the top 100 contributors of a repository or a list of multiple repositories.

usage

  • load the module
> use mod.nu *
  • get the five biggest contributors to nushell/nushell
@amtoine
amtoine / README.md
Created April 12, 2023 17:07
a wrapper around the `gstat` plugin for `nushell`

a wrapper around the gstat plugin for nushell

this wrapper removes the 0 entries in the gstat output 👍

Note
see nu_plugin_gstat

# wrapper around the [`gstat`](https://github.com/nushell/nushell/tree/main/crates/nu_plugin_gstat) plugin
def gst [