I hereby claim:
- I am djdv on github.
- I am ddv (https://keybase.io/ddv) on keybase.
- I have a public key whose fingerprint is BBFB 6592 8C82 407A F531 1054 2D1D 7B25 F432 6BEF
To claim this, I am signing this object:
# print the filename and the provided content (the file's contents with changes applied, indented rightward) | |
function rplacePrint { | |
param( | |
[string]$fileName, | |
[Parameter(Mandatory=$true,ValueFromPipeline=$true)]$content | |
) | |
Begin { | |
$fileName + ":" | Write-Host | |
} | |
Process { |
iex 'ipfs pin ls --type=recursive -q' | % { | |
"Hash: " + $_ | |
"Tree:" | |
iex 'ipfs ls $_' | % { | |
"`t" + $_ | |
} | |
"`n" | |
} |
iex 'ipfs pin ls --type=recursive -q' | % { | |
iex 'ipfs ls $_' | |
$confirmation = Read-Host "Del?" | |
if ($confirmation -eq 'y') { | |
iex 'ipfs pin rm $_' | |
} | |
} |
#lol string parsing | |
$badBlocks = @() | |
"Verifying..." | |
iex 'ipfs repo verify' | % { | |
if ($_.StartsWith("block")) { | |
$block = $_.Split(" ")[1] | |
"Block $block is corrupted, adding to removal+retreival queue" | |
$badBlocks += ,$block | |
} | |
} |
I hereby claim:
To claim this, I am signing this object: