Instantly share code, notes, and snippets.

View error.md

A JavaScript error occurred in the main process

Uncaught Exception: Error: Object has been destroyed at BrowserWindow.send (/Applications/Zap.app/Contents/Resources/electron.asar/browser/api/browser-window.js:167:16) at ClientReadableStream.n.on (/Applications/Zap.app/Contents/Resources/app.asar/webpack:/app/lnd/subscribe/channelgraph.js:5:59) at emitOne (events.js:96:13) at ClientReadableStream.emit (events.js:188:7) at readableAddChunk (_stream_readable.js:176:18) at ClientReadableStream.Readable.push (_stream_readable.js:134:10)

View error.txt
> cli/lightning-cli fundchannel 02f6725f9c1c40333b67faea92fd211c183050f28df32cac3f9d69685fe9665432 10000
{ "code" : -1, "message" : "Error packet: channel aa11668b2c7c07e4f57d3d7222360345fc05698cdc34e9b376d4e319f7cb034d: Unknown chain-hash 000000000933ea01ad0ee984209779baaec3ced90fa3f408719526f8d77f4943" }
View lightning.md
$ cli/lightning-cli help
command=dev-blockheight
description=Show current block height
command=dev-setfees
description=Set feerate in satoshi-per-kw for {immediate}, {normal} and {slow} (each is optional, when set, separate by spaces) and show the value of those three feerates
command=listnodes
description=Show all nodes in our local network view
command=getroute
View bitcoin_debug.log
bitcoin@ubuntu-bitcoin:~$ tail -f /mnt/blockstorage/Bitcoin/debug.log
2018-02-08 04:58:05 Opening LevelDB in /mnt/blockstorage/Bitcoin/blocks/index
2018-02-08 04:58:05 scheduler thread start
2018-02-08 04:58:06 Corruption: missing start of fragmented record(2)
2018-02-08 04:58:06 Database corrupted
2018-02-08 04:58:06 : Error opening block database.
Please restart with -reindex or -reindex-chainstate to recover.
2018-02-08 04:58:06 Aborted block database rebuild. Exiting.
2018-02-08 04:58:06 scheduler thread interrupt
2018-02-08 04:58:06 Shutdown: In progress...
View error.md

√ Blockchain restored successfully. fs.js:796 return binding.writeBuffer(fd, buffer, offset, length, position); ^

Error: ENOSPC: no space left on device, write at Error (native) at Object.fs.writeSync (fs.js:796:20) at SyncWriteStream._write (fs.js:2243:6) at doWrite (_stream_writable.js:333:12)

View test.md

タイトル

見出し1

本文。[1]

見出し2

次の文。[2]

1 脚注その1

View test.php
<?php
$enc = "cp932";
for ($cp = 0; $cp < 0x100; $cp++) {
$c = chr($cp);
$ret = mb_convert_encoding($c, $enc, $enc);
echo
bin2hex($c), " ",
View diff.rb
def chr_unsafe(cp, enc)
[cp.to_s(16)].pack("H*").force_encoding(enc)
end
enc = 'cp932'
count = 0
count2 = 0
(0x8000..0xffff).each do |cp|
begin
View utf8_ord.php
<?php
function utf8_ord($char) {
$x = ord($char[0]);
if ($x < 0x80) {
return $x;
} else if ($x < 0xE0) {
$y = ord($char[1]);
View roundtrip_bug.php
<?php
$a = chr(0xfa).chr(0x4a);
var_dump(
"fa4a" === bin2hex($a),
"8754" === bin2hex(mb_strtolower($a, "CP932")),
"8754" === bin2hex(mb_strtoupper($a, "CP932"))
);