Skip to content

Instantly share code, notes, and snippets.

View davidknezic's full-sized avatar

David Knezić davidknezic

View GitHub Profile
#!/usr/bin/env sh
set -e
function getNodes() {
jq -r '.items[].metadata.name'
}
function getPVCs() {
jq -s '[flatten | .[].pods[].volume[]? | select(has("pvcRef")) | '\
'{name: .pvcRef.name, capacityBytes, usedBytes, availableBytes, '\
altbootcmd=run mender_altbootcmd; run bootcmd
arch=arm
baudrate=115200
board_name=rpi
board=rpi
boot_a_script=load ${devtype} ${devnum}:${distro_bootpart} ${scriptaddr} ${prefix}${script}; source ${scriptaddr}
boot_efi_binary=if fdt addr ${fdt_addr_r}; then bootefi bootmgr ${fdt_addr_r};else bootefi bootmgr ${fdtcontroladdr};fi;load ${devtype} ${devnum}:${distro_bootpart} ${kernel_addr_r} efi/boot/bootarm.efi; if fdt addr ${fdt_addr_r}; then bootefi ${kernel_addr_r} ${fdt_addr_r};else bootefi ${kernel_addr_r} ${fdtcontroladdr};fi
boot_extlinux=sysboot ${devtype} ${devnum}:${distro_bootpart} any ${scriptaddr} ${prefix}${boot_syslinux_conf}
boot_net_usb_start=usb start
boot_prefixes=/ /boot/
@davidknezic
davidknezic / Bitcoin Lightning Channel Activity Kibana Vega Definition.json
Last active April 27, 2019 20:33
Bitcoin Lightning Channel Activity Kibana Vega Definition
{
"$schema": "https://vega.github.io/schema/vega/v3.0.json",
"title": {
"text": "Channel lifetime and activity",
"fontSize": {"value": 18}
},
"data": [
{
"name": "bounds",
"url": {
@davidknezic
davidknezic / Bitcoin Lightning Network Routing.pdf
Last active June 26, 2019 21:28
Bitcoin Lightning Routing Events
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@davidknezic
davidknezic / bitcoin-block-chain-stats.ipynb
Last active April 21, 2019 23:55
bitcoin-block-chain-stats.ipynb
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@davidknezic
davidknezic / bitcoin-lightning-fees.ipynb
Last active April 13, 2019 23:26
Bitcoin Lightning Fees.ipynb
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.