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
# enable IP forwarding and firewall in the kernel | |
sudo sysctl -w net.inet.ip.forwarding=1 | |
sudo sysctl -w net.inet.ip.fw.enable=1 | |
#flush all FW rules | |
sudo pfctl -F all # or -F nat, for just the nat rules | |
cat ./nat-rules | |
nat on en0 from 192.168.1.0/24 to any -> ozelmacpro #put this line in a text file |
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
FROM gcr.io/bazel-public/bazel as bazel-builder | |
#ENV GO111MODULE on | |
#RUN apk update && apk add git curl build-base libtool | |
ENV PROTOBUF_URL https://github.com/google/protobuf/releases/download/v23.3/protobuf-23.3.tar.gz | |
RUN curl -L -o /tmp/protobuf.tar.gz $PROTOBUF_URL | |
WORKDIR /tmp/ | |
RUN tar xvzf protobuf.tar.gz | |
WORKDIR /tmp/protobuf-23.3 |
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
{ | |
"annotations": { | |
"list": [ | |
{ | |
"builtIn": 1, | |
"datasource": "-- Grafana --", | |
"enable": true, | |
"hide": true, | |
"iconColor": "rgba(0, 211, 255, 1)", | |
"name": "Annotations & Alerts", |
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
"use strict"; | |
const axios = require("axios"); | |
const BASE_URL = "hub-testnet.lightningpeach.com"; | |
const WebSocket = require("ws"); | |
const main = async () => { | |
try { | |
const signUpRequestOptions = { | |
url: `https://${BASE_URL}/api/v2/auth/signup`, |
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
-----BEGIN PGP PUBLIC KEY BLOCK----- | |
mQINBFqxjNoBEAC6hn+kw+F5uAh50JJ7XcIXUeWx0zk31m8E4z+3s157+ZaeWZPf | |
U4b6POOdFN3wLV0uvnojTZHQNg9l3A5d0SLBzPXmReIcbNbN9aomsWRpGfYES9f6 | |
jUZDCa3kXnCIarUn0U7K+tSm4CE7x1QYKlN7n7rAyHYt1ow+tBOtQEpY8LFJjU81 | |
j9BfBqiLBZUz/wmB5ZrwY6zCB3xxcI3l3pSTsiTUbDNMtWg5BWkB44vSmZnm0Smw | |
5K/0N0AHjf7fD1cnwIYcHCux9FmM/mge1fzuKTUdmnvoD1DUxG8MCBBaOPU07Ljs | |
R9RkVUvRPwML4j383f/BNxUG/r3Ai9ahH4i/vJN+dt94dRNqhdJ0lNOHLgv8XPp0 | |
ldI/XOVzJAla379vE0kdkrXGzVt4D/GYUZg0hAm72rdTjpLig8xXBuSAD0vfv25h | |
omN6/P40+ytNFlRtCkFf6W8iiRidp+d45cPH7azASdxtQQ1njPyV4ROji5qiMa8d |
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
/* | |
* Copyright (C) 2012 - 2014 Allwinner Tech | |
* Pan Nan <pannan@allwinnertech.com> | |
* | |
* Copyright (C) 2014 Maxime Ripard | |
* Maxime Ripard <maxime.ripard@free-electrons.com> | |
* | |
* This program is free software; you can redistribute it and/or | |
* modify it under the terms of the GNU General Public License as | |
* published by the Free Software Foundation; either version 2 of |
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
2018-06-27 13:01:16.695 [INF] FNDG: Target commit tx sat/kw for pendingID(1a5d635cce6f5869193a4c1b2bb09aa087fc0558c0b8e7aa6677c1c630801875): 253 | |
2018-06-27 13:01:16.695 [INF] FNDG: Starting funding workflow with 18.205.112.169:9735 for pendingID(1a5d635cce6f5869193a4c1b2bb09aa087fc0558c0b8e7aa6677c1c630801875) | |
2018-06-27 13:01:16.695 [DBG] PEER: Sending MsgOpenChannel(temp_chan_id=1a5d635cce6f5869193a4c1b2bb09aa087fc0558c0b8e7aa6677c1c630801875, chain=000000000933ea01ad0ee984209779baaec3ced90fa3f408719526f8d77f4943, csv=144, amt=0.01 BTC, push_amt=0 mSAT, reserve=0.0001 BTC, flags=1) to 18.205.112.169:9735 | |
2018-06-27 13:01:16.853 [DBG] PEER: Received MsgAcceptChannel(temp_chan_id=1a5d635cce6f5869193a4c1b2bb09aa087fc0558c0b8e7aa6677c1c630801875, reserve=0.0001 BTC, csv=144, num_confs=3) from 18.205.112.169:9735 | |
2018-06-27 13:01:16.854 [INF] FNDG: Recv'd fundingResponse for pendingID(1a5d635cce6f5869193a4c1b2bb09aa087fc0558c0b8e7aa6677c1c630801875) | |
2018-06-27 13:01:16.855 [DBG] LNWL: Funding tx for ChannelPoint |
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
package main | |
import ( | |
"encoding/binary" | |
"errors" | |
"io/ioutil" | |
"log" | |
"math" | |
"math/big" | |
"path/filepath" |
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
lncli --no-macaroons connect 03193d512b010997885b232ecd6b300917e5288de8785d6d9f619a8952728c78e8@testnet-lnd.htlc.me | |
{ | |
} | |
~/g/s/g/l/replenish-server ❯ lncli --no-macaroons walletbalance | |
{ | |
"total_balance": "51639731", | |
"confirmed_balance": "51639731", | |
"unconfirmed_balance": "0" | |
} |
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
def solution(S, T): | |
S = 'a10' | |
T = '10a' | |
any_lenth_S = 0 | |
any_lenth_T = 0 |
NewerOlder