eta: 2023Q4
children:
- #121
- #122
- #123
- #124
import { trustlessGateway } from '@helia/block-brokers' | |
import { createHeliaHTTP } from '@helia/http' | |
import { delegatedHTTPRouting } from '@helia/routers' | |
import { createVerifiedFetch } from '@helia/verified-fetch' | |
const helia = await createHeliaHTTP({ | |
blockBrokers: [ | |
trustlessGateway({ | |
gateways: ['https://cloudflare-ipfs.com', 'https://ipfs.io', 'https://trustless-gateway.link'] | |
}) |
#!/usr/bin/env node | |
// @ts-check | |
import { path } from 'kubo' | |
import {execa} from 'execa'; | |
// get input filename from command line | |
const filename = process.argv[2]; | |
console.log(`filename: `, filename); | |
const {stdout} = await execa('echo', ['unicorns']); |
#!/usr/bin/env bash | |
set -e | |
for domain in "blog.ipfs.tech" "blog.libp2p.io" "consensuslab.world" "docs.ipfs.tech" "docs.libp2p.io" "drand.love" "fil.org" "filecoin.io" "green.filecoin.io" "ipfs.tech" "ipld.io" "libp2p.io" "n0.computer" "probelab.io" "protocol.ai" "research.protocol.ai" "singularity.storage" "specs.ipfs.tech" "strn.network" "web3.storage"; do | |
# We want to output a list of IPFS links for all the DOMAINS using dig | |
# and return only the strings that match "dnslink=/ipfs/QmbKWyoaCK9nKDfSsNAkJQrbxMDLriyyqkXsTSSwt9B227" | |
dig +noall +answer TXT "_dnslink.${domain}" | ggrep -oP '/ipfs/[^"]+' | |
done |
#!/usr/bin/env node | |
/** | |
* This script requires a markdown table for input, as generated by https://github.com/nvuillam/github-dependents-info | |
* It compares the current table with the previous one and outputs a new table with the changes in stars. | |
* Usage: | |
* github-dependents-info --repo ipfs/helia --markdownfile ./package-usage-2023-09.md --sort stars --verbose -x 2 -p | |
* // manually copy the Repostory and Stars table to `current.md` | |
* // manually copy the Repostory and Stars table from the previous month to `previous.md` | |
* node dependents-change.js | |
* |
import { multiaddr } from '@multiformats/multiaddr' | |
import { WebTransport } from '@multiformats/multiaddr-matcher' | |
import { createHelia } from 'helia' | |
const helia = await createHelia() | |
const multiaddrs = [ | |
// fill out multiaddrs for peers you want to check here: | |
'/ip4/123.45.67.89/tcp/4001/ipfs/Qmabcdefg...', | |
'/ip4/98.76.54.32/tcp/4004/ipfs/bafyka...', |
eta: 2023Q4
children:
╰─ ✔ ❯ npx -y ts-node parse-ls-output.ts | |
Package update order: | |
interface-ipfs-core - (depended on by 1 packages) | |
@ipld/car - (depended on by 1 packages) | |
@libp2p/interface-peer-id - (depended on by 1 packages) | |
@libp2p/peer-id-factory - (depended on by 1 packages) | |
@libp2p/peer-id - (depended on by 1 packages) | |
blockstore-core - (depended on by 1 packages) | |
dag-jose - (depended on by 1 packages) | |
did-jwt - (depended on by 1 packages) |
#!/usr/bin/env bash | |
main() { | |
local valid_repos_file=$(mktemp) | |
local moved_repos_file=$(mktemp) | |
cat newline-delimited-repo-names.txt | while read repo; do { | |
local repo_site="https://github.com/$repo" |
diff --git a/node_modules/eslint-plugin-import/config/recommended-esm.js b/node_modules/eslint-plugin-import/config/recommended-esm.js | |
new file mode 100644 | |
index 0000000..0b78a13 | |
--- /dev/null | |
+++ b/node_modules/eslint-plugin-import/config/recommended-esm.js | |
@@ -0,0 +1,20 @@ | |
+const recommendedConfig = require('./recommended') | |
+ | |
+/** | |
+ * The basics. |
#!/usr/bin/env bash | |
COMMA_AI_IP="192.168.1.11" | |
function comma-download { | |
local REMOTE_DIRECTORY="/data/media/0/realdata/$1" && shift | |
local LOCAL_DIRECTORY="${1:-}" | |
if [ -n "$LOCAL_DIRECTORY" ]; then | |
mkdir -p $LOCAL_DIRECTORY |