Skip to content

Instantly share code, notes, and snippets.

@millette
Last active December 12, 2017 19:46
Show Gist options
  • Select an option

  • Save millette/4992b78ea377fd6de9db0ebf16810d2d to your computer and use it in GitHub Desktop.

Select an option

Save millette/4992b78ea377fd6de9db0ebf16810d2d to your computer and use it in GitHub Desktop.

Revisions

  1. millette revised this gist Dec 12, 2017. 1 changed file with 1 addition and 1 deletion.
    2 changes: 1 addition & 1 deletion names.md
    Original file line number Diff line number Diff line change
    @@ -1,4 +1,4 @@
    *Moving to <https://github.com/joehand/dat-link-resolve>*
    Moved to <https://github.com/joehand/dat-link-resolve>

    # Refering to dats
    Trying to tighten up a bit dat-link-resolve (and its dependencies dat-dns and dat-decode). I am noticing a few inconsistencies as I'm writing dat-shell.
  2. millette revised this gist Dec 12, 2017. 1 changed file with 2 additions and 0 deletions.
    2 changes: 2 additions & 0 deletions names.md
    Original file line number Diff line number Diff line change
    @@ -1,3 +1,5 @@
    *Moving to <https://github.com/joehand/dat-link-resolve>*

    # Refering to dats
    Trying to tighten up a bit dat-link-resolve (and its dependencies dat-dns and dat-decode). I am noticing a few inconsistencies as I'm writing dat-shell.

  3. millette revised this gist Dec 8, 2017. 1 changed file with 2 additions and 0 deletions.
    2 changes: 2 additions & 0 deletions names.md
    Original file line number Diff line number Diff line change
    @@ -11,6 +11,8 @@ and have it open the dat at version 5 and change directory to /path4.
    Currently ```dat-shell google-fonts-kewitz.hashbase.io/fonts/``` [fails somewhere in dat-link-resolve](https://github.com/millette/dat-shell/issues/5).

    ## Examples
    Note that dat-link-resolve also supports other methods, such as detection of dat keys in paths and http headers.

    ### Simplest
    * Plain: 40a7f6b6147ae695bcbcff432f684c7bb5291ea339c28c1755896cdeb80bd2f9
    * DNS: pfrazee.hashbase.io
  4. millette revised this gist Dec 8, 2017. 1 changed file with 9 additions and 0 deletions.
    9 changes: 9 additions & 0 deletions names.md
    Original file line number Diff line number Diff line change
    @@ -1,6 +1,15 @@
    # Refering to dats
    Trying to tighten up a bit dat-link-resolve (and its dependencies dat-dns and dat-decode). I am noticing a few inconsistencies as I'm writing dat-shell.

    Ideally, I'd like to launch dat-shell like this:
    ```sh
    $ dat-shell dat://40a7f6b6147ae695bcbcff432f684c7bb5291ea339c28c1755896cdeb80bd2f9+5/path4
    ```

    and have it open the dat at version 5 and change directory to /path4.

    Currently ```dat-shell google-fonts-kewitz.hashbase.io/fonts/``` [fails somewhere in dat-link-resolve](https://github.com/millette/dat-shell/issues/5).

    ## Examples
    ### Simplest
    * Plain: 40a7f6b6147ae695bcbcff432f684c7bb5291ea339c28c1755896cdeb80bd2f9
  5. millette revised this gist Dec 8, 2017. 1 changed file with 1 addition and 0 deletions.
    1 change: 1 addition & 0 deletions names.md
    Original file line number Diff line number Diff line change
    @@ -1,4 +1,5 @@
    # Refering to dats
    Trying to tighten up a bit dat-link-resolve (and its dependencies dat-dns and dat-decode). I am noticing a few inconsistencies as I'm writing dat-shell.

    ## Examples
    ### Simplest
  6. millette revised this gist Dec 8, 2017. 1 changed file with 4 additions and 4 deletions.
    8 changes: 4 additions & 4 deletions names.md
    Original file line number Diff line number Diff line change
    @@ -20,12 +20,12 @@
    ### Combinations
    * 40a7f6b6147ae695bcbcff432f684c7bb5291ea339c28c1755896cdeb80bd2f9+5/path3
    * dat://40a7f6b6147ae695bcbcff432f684c7bb5291ea339c28c1755896cdeb80bd2f9+5/path4
    * https://40a7f6b6147ae695bcbcff432f684c7bb5291ea339c28c1755896cdeb80bd2f9/path5 [^1][]
    * https://pfrazee.hashbase.io+5/path6 [^2][]
    * https://40a7f6b6147ae695bcbcff432f684c7bb5291ea339c28c1755896cdeb80bd2f9/path5 [(^1)][]
    * https://pfrazee.hashbase.io+5/path6 [(^2)][]

    ## Notes
    1. browsers expect http and https schemes with traditional hostname, not a dat key
    2. browsers expect http and https schemes with traditional hostname, no +5 (version) support

    [^1]: <#notes>
    [^2]: <#notes>
    [(^1)]: <#notes>
    [(^2)]: <#notes>
  7. millette created this gist Dec 8, 2017.
    31 changes: 31 additions & 0 deletions names.md
    Original file line number Diff line number Diff line change
    @@ -0,0 +1,31 @@
    # Refering to dats

    ## Examples
    ### Simplest
    * Plain: 40a7f6b6147ae695bcbcff432f684c7bb5291ea339c28c1755896cdeb80bd2f9
    * DNS: pfrazee.hashbase.io

    ### With version
    * Plain: 40a7f6b6147ae695bcbcff432f684c7bb5291ea339c28c1755896cdeb80bd2f9+5
    * DNS: pfrazee.hashbase.io+5

    ### With scheme
    * https: https://40a7f6b6147ae695bcbcff432f684c7bb5291ea339c28c1755896cdeb80bd2f9/
    * dat: dat://pfrazee.hashbase.io

    ### With path
    * https: 40a7f6b6147ae695bcbcff432f684c7bb5291ea339c28c1755896cdeb80bd2f9/path1
    * dat: pfrazee.hashbase.io/path2

    ### Combinations
    * 40a7f6b6147ae695bcbcff432f684c7bb5291ea339c28c1755896cdeb80bd2f9+5/path3
    * dat://40a7f6b6147ae695bcbcff432f684c7bb5291ea339c28c1755896cdeb80bd2f9+5/path4
    * https://40a7f6b6147ae695bcbcff432f684c7bb5291ea339c28c1755896cdeb80bd2f9/path5 [^1][]
    * https://pfrazee.hashbase.io+5/path6 [^2][]

    ## Notes
    1. browsers expect http and https schemes with traditional hostname, not a dat key
    2. browsers expect http and https schemes with traditional hostname, no +5 (version) support

    [^1]: <#notes>
    [^2]: <#notes>