Skip to content

Instantly share code, notes, and snippets.

@mark-stopka
mark-stopka / 12d1:1f01
Created October 17, 2020 17:13 — forked from elupus/12d1:1f01
Setup of e3372 modem on pfsense
# /usr/local/share/usb_modeswitch/12d1:1f01
# Huawei E353 (3.se) and others
TargetVendor=0x12d1
TargetProductList="14db,14dc"
HuaweiNewMode=1
@mark-stopka
mark-stopka / Huawei_E3372_openwrt.md
Created October 17, 2020 16:21 — forked from bjoern-r/Huawei_E3372_openwrt.md
How to use a Huawei E3372 on OpenWRT

HOWTO use a Huawei E3372 on OpenWRT

This modem is also sold as a MegaFon M150-2 USB dongle

Needed Software

Install the needed packages via opkg tool

opkg update
@mark-stopka
mark-stopka / e3372_openwrt_setup.md
Created October 17, 2020 15:32 — forked from aliicex/e3372_openwrt_setup.md
Using the Huawei E3372 4G Dongle with OpenWRT

Hardware requirements:

USB modem - Huawei E3372h-153/E3372s-153 (in StickMode; non-HiLink)

Firmware versions beginning with 21.xxx.xx.xx.xx NOT 22.xxx.xx.xx.xx

Router running OpenWRT; I use:

  • GL.iNet AR750S firmware v3.022
  • OpenWrt 18.06.1 r7258-5eb055306f / LuCI openwrt-18.06 branch (git-18.196.56128-9112198)
@mark-stopka
mark-stopka / e3372_openwrt_setup.md
Created October 17, 2020 15:32 — forked from aliicex/e3372_openwrt_setup.md
Using the Huawei E3372 4G Dongle with OpenWRT

Hardware requirements:

USB modem - Huawei E3372h-153/E3372s-153 (in StickMode; non-HiLink)

Firmware versions beginning with 21.xxx.xx.xx.xx NOT 22.xxx.xx.xx.xx

Router running OpenWRT; I use:

  • GL.iNet AR750S firmware v3.022
  • OpenWrt 18.06.1 r7258-5eb055306f / LuCI openwrt-18.06 branch (git-18.196.56128-9112198)

Why this list?

Cardano Incentivized Testnet is now undergoing a major upgrade and perhaps even an extension, as Shelley Incentivized Testnet rewards ran out, unoficial vote is going on as to if Shelley Incentivized Testnet should transform info more long-lived, more generic Cardano Incentivized Testnet. The informal part of the vote is for pool operators who are a major requirement for the network to keep running to keep their nodes up even without being paid incentives... that is taking place right now!

However! Formal vote using on-chain governance will take place later, that will require the network operators to upgrade to Jormungandr 0.9.0, this version of Jormungandr node was until yesterday not network compatible with 0.8.x releases, that has changed during period between 20-Jun-2020 and 21-Jun-2020, now Jormungandr 0.9.0-rc1-2715361c is able to communicate with 0.8.19 version of Jormungandr, this version however still doesn't support voting,

0x056f53bae6331a41dd03b9066395849cbea25a16
7.72 ms 35.241.28.228
8.45 ms 147.32.94.176
11.2 ms 89.185.227.32
11.4 ms 46.28.109.240
12.3 ms 46.36.37.145
13.5 ms 46.36.38.61
14.2 ms 185.91.116.188
14.3 ms 185.183.107.218
14.6 ms 172.104.250.194
14.6 ms 172.105.93.24
#!/bin/bash
CONTAINER_ID=$1
docker logs ${CONTAINER_ID} >& ../logs/${CONTAINER_ID}.info.log
grep -E -o "(25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?)\.(25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?)\.(25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?)\.(25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]:[0-9].)" \
../logs/${CONTAINER_ID}.info.log > ../logs/${CONTAINER_ID}.ip-port.log
grep -E -o "(25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?)\.(25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?)\.(25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?)\.(25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?)" \
../logs/${CONTAINER_ID}.ip-port.log > ../logs/${CONTAINER_ID}.ip.log
blockRecvCnt: 0
lastBlockContentSize: 0
lastBlockDate: "20.16766"
lastBlockFees: 0
lastBlockHash: 6745de41f8e1f6cb9ebd92a2fa900de01feda1415ee56220d070ee7d7275939d
lastBlockHeight: "66364"
lastBlockSum: 0
lastBlockTime: "2020-01-03T04:32:29+00:00"
lastBlockTx: 0
lastReceivedBlockTime: ~
@mark-stopka
mark-stopka / gist:626463e73444116045a54247c4be78f6
Created February 20, 2020 00:34
Jormungandr Genesis Decompression Benchmark
[mark_stopka@nlgc-bltn-docker-host-01 block0]$ time gzip -d -c 8e4d2a343f3dcf9330ad9035b3e8d168e6728904262f2c434a4f8f934ec7b676.block0.gz > /dev/null
real 0m0.454s
user 0m0.348s
sys 0m0.016s
[mark_stopka@nlgc-bltn-docker-host-01 block0]$ time bzip2 -d -c 8e4d2a343f3dcf9330ad9035b3e8d168e6728904262f2c434a4f8f934ec7b676.block0.bz2 > /dev/null
real 0m2.968s
user 0m2.767s