You'll need to instll OpenSSL and it will use about 1.3Mb. So check that it's enought of available space:
df -h | grep /overlay
Then install it:
opkg install openssl-util
It also will install libopenssl1.1 and libopenssl-conf.
| https://www.h-schmidt.net/FloatConverter/IEEE754.html | |
| 0.000030517578125 | |
| 0.00006103515625 | |
| 0.0078125 | |
| 0.015625 | |
| 0.125 | |
| 0.25 | |
| 0.5 | |
| 0.75 |
| #!/bin/sh | |
| # Decode a JWT from stdin and verify it's signature with the JWT issuer public key | |
| # Only RS256 keys are supported for signature check | |
| # | |
| # Put OAuth server public key in PEM format to /var/cache/oauth/$JWT_KID.key.pub.pem | |
| # You must create the folder first | |
| # $ sudo mkdir -p /var/cache/oauth/ | |
| # To converted key from JWK to PEM use https://8gwifi.org/jwkconvertfunctions.jsp or https://keytool.online/ | |
| # NOTE: For Google you can get the keys in PEM format via https://www.googleapis.com/oauth2/v1/certs | |
| # Decode the keys with decodeURIComponent() |
You'll need to instll OpenSSL and it will use about 1.3Mb. So check that it's enought of available space:
df -h | grep /overlay
Then install it:
opkg install openssl-util
It also will install libopenssl1.1 and libopenssl-conf.
| package com.github.stokito.experiments; | |
| import org.openjdk.jmh.annotations.Benchmark; | |
| import org.openjdk.jmh.annotations.BenchmarkMode; | |
| import org.openjdk.jmh.annotations.OutputTimeUnit; | |
| import org.openjdk.jmh.annotations.Param; | |
| import org.openjdk.jmh.annotations.Scope; | |
| import org.openjdk.jmh.annotations.State; | |
| import java.util.StringTokenizer; |
| #!/bin/sh | |
| # This is run once a day - don't care about performance | |
| # RFC date must have GMT in the end | |
| # but GNU date return +0000 instead and bb date returns UTC | |
| # So we must strip +0000 or UTC and add GMT ourselves | |
| DATE=$(date -R -u | sed 's/\UTC/GMT/' | sed 's/\+0000/GMT/') | |
| echo "Date: $DATE\nStatus: 200\n"; |
| FILE=example.txt | |
| wget --header="If-Modified-Since:$(date -R -u -r $FILE | sed 's/\UTC/GMT/')" http://example.com/$FILE |
Note
For a vanilla OpenWRT see WebDAV with Lighttpd on OpenWRT. Those instructions are slightly different.
You can turn your router into a small NAS and file server. Just connect an SSD into USB and install a WebDAV server which allows to get access to the disk. Then you need to connect to router via SSH which is a remote command line an execute the commands bellow.
For a TurrisOS Omnia see WebDAV with Lighttpd on Turris Omnia. Those instructions are slightly different.
This instruction moved to OpenWrt Wiki WebDAV Share
time curl -X POST --location "http://127.0.0.1:8080/url" \
-H "Content-Type: application/json" \
-d "{\"id\":\"1234567893\"}" \
-s -o /dev/null -w "%{time_starttransfer}\n"Output will be like:
127618