This file contains 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
sudo apt-get install golang-1.11-go | |
# E: Unable to locate package golang-1.11-go | |
# E: Couldn't find any package by glob 'golang-1.11-go' | |
# E: Couldn't find any package by regex 'golang-1.11-go' |
This file contains 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
let rxId = "^[0-9a-f]+" // hex string | |
let rxDomain = "(?!:\/\/)([a-zA-Z0-9-_]+\.)*[a-zA-Z0-9][a-zA-Z0-9-_]+\.[a-zA-Z]{2,11}?" | |
let rxIp = "(([1-9]?[0-9]|1[0-9]{2}|2[0-4][0-9]|25[0-5])\.){3}([1-9]?[0-9]|1[0-9]{2}|2[0-4][0-9]|25[0-5])" | |
let rxPort = "([0-9]{1,4}|[1-5][0-9]{4}|6[0-4][0-9]{3}|65[0-4][0-9]{2}|655[0-2][0-9]|6553[0-5])" | |
let rx = new RegExp(`${rxId}@(${rxDomain}|${rxIp}):${rxPort}`) | |
let nodeText = "02009947c197575f5a948e1e4343c41dc2e6122a9bd644629afb919f30e1115ff8@cln.green:9735" | |
console.log(nodeText.match(rx) != null) // true |
This file contains 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
02a68237add204623021d09b0334c4992c132eb3c9dcfcb8f3cf8a57386775538e@testnet-lnd.yalls.org:9735 |
This file contains 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
sudo yarn global add ifpaytt |
This file contains 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
sudo apt update | |
sudo apt install curl | |
curl -sL https://deb.nodesource.com/setup_8.x | sudo bash - | |
sudo apt install nodejs | |
node -v # バージョンが表示されれば成功 | |
npm -v # バージョンが表示されれば成功 |
This file contains 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
# Press [ENTER] と言われるのでEnterを推してから次の行のコマンドへ | |
sudo apt-add-repository ppa:bitcoin/bitcoin | |
# 最新版にする | |
sudo apt update | |
# CUIを入れる | |
sudo apt install -y bitcoind |
This file contains 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
sudo su - | |
cd /path/you/want/to/download/ | |
git clone https://github.com/btcpayserver/btcpayserver-docker | |
cd btcpayserver-docker |
This file contains 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
function insertOnUrlChange(parent, funcname) { | |
let oldFunc = parent[funcname] ? parent[funcname] : function (){} | |
parent[funcname] = function() { | |
oldFunc.apply(this, arguments) | |
return window.onurlchange() | |
} | |
} | |
insertOnUrlChange(window.history, "pushState") | |
insertOnUrlChange(window.history, "replaceState") |
This file contains 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
(function (i, s, o, g, r, a, m) { | |
i['GoogleAnalyticsObject'] = r; | |
i[r] = i[r] || function () { | |
(i[r].q = i[r].q || []).push (arguments) | |
}, i[r].l = 1 * new Date (); | |
a = s.createElement (o), m = s.getElementsByTagName (o)[0]; | |
a.async = 1; | |
a.src = g; | |
m.parentNode.insertBefore (a, m) | |
}) (window, document, 'script', 'https://www.google-analytics.com/analytics.js', 'ga'); |
This file contains 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
function insertCallback(parent, funcname, callback, ...args) { | |
let oldFunc = parent[funcname] ? parent[funcname] : function (){} | |
parent[funcname] = function() { | |
oldFunc.apply(this, arguments) | |
return callback(...args) | |
} | |
} | |
function doSomething(args) { | |
// do what you want |
NewerOlder