If you're trying to do nimble install from https:// or another nimble internet task (e.g. nimble refresh)
and you get the following error:
PS C:\nim-1.4.4> nimble install --verbose 'testify@#9871d37'
| const http = require('http'); | |
| const MAX_ACTIVE = 100; // maximum number of parallel requests | |
| let numActiveReqs = 0; | |
| let numWaitingReqs = 0; | |
| const paths = new Set(); | |
| const options = { | |
| host: 'fileformats.archiveteam.org', | |
| port: 80, |
| # listing 4 | |
| seq: | |
| - id: payload | |
| type: type_info | |
| size: 4 # not strictly necessary, but it's safer to wrap the `type_info` into the substream like this, | |
| # because if the bitfields `types/type_info/seq` wouldn't fill the whole 4 bytes, it would still work | |
| # (see https://doc.kaitai.io/user_guide.html#_streams_and_substreams) | |
| types: | |
| type_info: | |
| seq: |
| function fetchJSONAsDataURL(url) { | |
| return fetch(url) | |
| .then(r => r.blob()) | |
| .then(data => | |
| new Promise( | |
| (resolve, reject) => { | |
| const blob = new Blob([data], {type: 'application/json'}); | |
| const rdr = new FileReader(); | |
| rdr.onload = (e) => { | |
| resolve(e.target.result); |
| meta: | |
| id: cab | |
| file-extension: cab | |
| endian: le | |
| license: CC0-1.0 | |
| doc-ref: http://download.microsoft.com/download/4/d/a/4da14f27-b4ef-4170-a6e6-5b1ef85b1baa/[ms-cab].pdf | |
| seq: | |
| - id: magic | |
| contents: "MSCF" |
| #!/bin/sh | |
| # SPDX-FileCopyrightText: 2020 Petr Pucil <[email protected]> | |
| # | |
| # SPDX-License-Identifier: CC0-1.0 | |
| while IFS= read -r line; do | |
| echo "$line" | |
| echo | |
| curl \ | |
| -X PUT \ |
| // Not working version right now, grab an older one from Revisions | |
| (function(storageKey) { | |
| 'use strict'; | |
| const IDLE_DELAY = 10 * 1000; // in miliseconds | |
| let timeout; | |
| let currentPageKey = null; | |
| class UrlSync { | |
| constructor() { |
| /** | |
| * A simple script for calculating a table with numbers of different letters between every two words. | |
| * | |
| * Tip: open DevTools by Ctrl+Shift+I or F12 and paste it into the JavaScript Console :) | |
| * | |
| * @license | |
| * SPDX-FileCopyrightText: 2021 Petr Pucil <[email protected]> | |
| * | |
| * SPDX-License-Identifier: CC0-1.0 | |
| */ |
| meta: | |
| id: deflate_stream | |
| xref: | |
| rfc: 1951 | |
| license: MIT | |
| bit-endian: le | |
| doc-ref: https://github.com/golang/go/blob/f90e89e/src/compress/flate/inflate.go#L301 | |
| seq: | |
| - id: hdr | |
| type: header |
| meta: | |
| id: log2_int32 | |
| title: Find the log base 2 of a 32-bit integer | |
| license: CC0-1.0 | |
| doc-ref: https://graphics.stanford.edu/~seander/bithacks.html#IntegerLog | |
| # params: | |
| # - id: val | |
| # type: u4 | |
| seq: | |
| - id: log2 |
If you're trying to do nimble install from https:// or another nimble internet task (e.g. nimble refresh)
and you get the following error:
PS C:\nim-1.4.4> nimble install --verbose 'testify@#9871d37'