Markdown (yellow):
[](https://tippin.me/@meeDamian)
$ cat Dockerfile | |
FROM alpine:3.12 | |
RUN { uname -a; uname -m; printf '\n\n'; cat /proc/cpuinfo; } > /root/me.txt | |
ENTRYPOINT [ "cat", "/root/me.txt" ] | |
$ TAG='meedamian/docker-ci:v12.7.2020' | |
$ docker manifest inspect alpine:3.12 | jq -r '.manifests[].platform | .os + "/" + .architecture + " " + .variant' | |
linux/amd64 | |
linux/arm v6 |
package main | |
import ( | |
"fmt" | |
"io/ioutil" | |
"os" | |
"regexp" | |
"strings" | |
"github.com/BurntSushi/toml" |
BEGIN MESSAGE. | |
Sw1PBSKPuyTysVy gZXX1djGS17VP8k rHn7IxbTeJXZ9bt GZue2SmxtdUA7ej | |
A5Ddm1b72VkW7xr vM7rUfUuR6jTCKq 6Xr2MZHgg6oNuC9 nkEQRsGdOelo3e7 | |
wRco5AgmmO2bs9K UT6hXr1eTb0Ecgt Wi53jycGZpxTg1q GKipgamPtWo1hYQ | |
8Qmq35ePuyF3qa3 tZsuYtm6PdCmtJK hmCHg29HFxl. | |
END MESSAGE. |
'use strict'; | |
const RESET_AFTER_HOURS = 6; | |
const HOUR = 36e5; // 60 * 60 * 1000; | |
class Tabs { | |
constructor() { | |
this.restore() | |
} |
#!/bin/sh | |
LAST_DATE="$1" | |
last="$(bitcoin-cli getblockcount)" | |
get_last() { | |
while true; do | |
DATE="$(date -d "@$(bitcoin-cli getblock "$(bitcoin-cli getblockhash "$last")" | jq '.time')" +"%Y-%m-%d")" |
package main | |
import ( | |
"context" | |
"encoding/hex" | |
"fmt" | |
"io/ioutil" | |
"time" | |
"github.com/lncm/lnd-rpc/v0.9.0/lnrpc" |
version: "3.7" | |
# This defines a default logging destination | |
x-logging: &default-logging | |
driver: journald | |
options: | |
tag: "{{.ImageName}}" | |
# This is the base for any utility image |
[ | |
{ | |
"id": null, | |
"connected": true, | |
"netaddr": [ | |
null | |
], | |
"globalfeatures": "", | |
"localfeatures": "81", | |
"channels": [ |