This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
javascript: (async function() { | |
async function unwrap() { | |
const loadMoreBtn = document.querySelector('button.ajax-pagination-btn.no-underline.pb-1.pt-0.px-4.mt-0.mb-1.color-bg-default.border-0'); | |
if (loadMoreBtn) { | |
loadMoreBtn.click(); | |
await setTimeout(unwrap, 5000); | |
} | |
} | |
await unwrap(); | |
await setTimeout(() => document.querySelectorAll('span.Details-content--closed').forEach((e) => { |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
BLOCKCHAININFO=$(bitcoin-cli getblockchaininfo) | |
BLOCKS=$(echo "$BLOCKCHAININFO" | jq .blocks) | |
TAPROOT=$(echo "$BLOCKCHAININFO" | jq .softforks.taproot.bip9) | |
SINCE=$(echo "$TAPROOT" | jq .since) | |
PERIOD=$(echo "$TAPROOT" | jq .statistics.period) | |
BLOCKS=$(echo "$BLOCKCHAININFO" | jq .blocks) | |
PERIOD_COUNT=$(((BLOCKS - SINCE) / PERIOD)) | |
SINCE=$((SINCE + (PERIOD * PERIOD_COUNT))) | |
ELAPSED=$(echo "$TAPROOT" | jq .statistics.elapsed) |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# blog post: http://blog.slashpoundbang.com/post/1521530410/accessing-the-os-x-keychain-from-ruby | |
class KeyChain | |
def self.method_missing(meth, *args) | |
run args.unshift(meth) | |
end | |
def self.find_internet_password(*args) | |
# -g: Display the password for the item found | |
output = quiet args.unshift('find-internet-password', '-g') |