This patch has something still wrong, since Teltonika RUT240 gives this error:
# sysupgrade -v openwrt-ar71xx-generic-rut200-squashfs-factory.bin
Invalid image, not supported on this device.
Image check 'platform_check_image' failed.
- name: Reconfigure tzdata | |
include_tasks: 20-reconfigure-tzdata.yml |
$ test "$memmb" -gt 4000 | |
-bash: test: : integer expression expected | |
$ test $memmb -gt 4000 | |
-bash: test: -gt: unary operator expected | |
$ [ $memmb -gt 4000 ] | |
-bash: [: -gt: unary operator expected | |
$ [ "$memmb" -gt 4000 ] |
--- | |
- hosts: containers | |
remote_user: root | |
connection: local | |
tasks: | |
- name: Test for SSH host key verification | |
local_action: command is-ssh-host-verified {{ inventory_hostname }} | |
changed_when: false | |
failed_when: false | |
register: ssh_host_verified |
--- | |
- hosts: hosts | |
remote_user: root | |
gather_facts: false | |
tasks: | |
- name: Check for Python | |
raw: test -e /usr/bin/python | |
changed_when: false | |
failed_when: false | |
register: check_python |
// Original supposedly "correct" way: https://flaviocopes.com/javascript-async-await-array-map/ | |
// NOPE! This is correct: | |
// Function that returns a promise | |
const functionWithPromise = item => { | |
return Promise.resolve('ok'); | |
}; | |
// Prefer functions without side effects. Much easier to understand, unit test, re-use and optimize (eg. three shaking). |
#!/bin/bash | |
':' //; export TERMINAL_COLS="$(tput cols)" | |
':' //; exec "$(command -v nodejs || command -v node)" -- "$0" "$@" | |
const TERMINAL_COLS = parseInt(process.env.TERMINAL_COLS, 10); | |
console.log(TERMINAL_COLS); |
<html> | |
</html> |
This patch has something still wrong, since Teltonika RUT240 gives this error:
# sysupgrade -v openwrt-ar71xx-generic-rut200-squashfs-factory.bin
Invalid image, not supported on this device.
Image check 'platform_check_image' failed.
{% comment %} | |
This works like Lodash's `_.get(value, key)`, where `value` can be an object and `key` a string path to specific value. | |
Use it like: | |
{% assign translation = site.data.lang[site.lang] %} | |
{% capture title %}{% include common/get-property.html value=translation key=page.title %}{% endcapture %} | |
And so, you can have your Front Matter title as "path.to.key" translated from your _data/lang/{fi,en}.json to correct value. |
/** | |
* @interface | |
*/ | |
class Foo { | |
/** | |
* @returns {string} | |
*/ | |
foo () { |