The time is past
the bell has rung(C) Sam Liddicott 2016
LibreOffice font substitution
To install them, issue these commands as root in a shell:# apt-get update # apt-get install fonts-crosextra-carlito fonts-crosextra-caladea
In LibreOffice, you exchange Calibri and Cambria with Carlito and Caladea this way:
- Open the "Extras" menu
- Go to "Options"
Choose "LibreOffice"- Choose "Fonts"
Define a substitution for each of the two fonts (Calibri -> Carlito, Cambria -> Caladea).- Remember to check "Always" in the substitution lines.
Once the program is restarted, documents sent from MS Office look almost the same on your screen and printouts.
do_something(..., function(err, result) {
something_else(result);
});
do_something(...).then( (r) => {
something_else(result);
}).catch( (e) => {
...
});
return await do_something(...);
function expressHandler(req, res, next) {
do_something(..., function(err, result) {
if (err) return next(err); // return avoids else
...
next();
});
}
...
function do_something(..., callback) {
try {
...
return callback(undefined, result);
} catch (e) {
return callback(e);
}
function expressHandler(req, res, next) {
do_something(...).then((r) => {
...
next();
}).catch(next);
}
...
async function do_something(...) {
return await something_else(...);
}
The group policy reg keys for the searchlist are:https://social.technet.microsoft.com/Forums/windows/en-US/76d07f31-62d6-4648-a3e2-7e6e16791363/append-these-dns-suffixes-not-available?forum=w7itpronetworking
HKEY_LOCAL_MACHINE\SOFTWARE\Policies\Microsoft\Windows NT\DNSClient\"SearchList"="domain1,domain2,domain3"
and
HKEY_LOCAL_MACHINE\SOFTWARE\Wow6432Node\Policies\Microsoft\Windows NT\DNSClient\"SearchList"="domain1,domain2,domain3"
$ # define the function
$ something() { echo do something here ; }
$ export -f something
$ # the Makefile
$ cat > Makefile <<END
SHELL=bash
all: ; something
END
$
$ make
something
do something here
$
$ env | grep something
BASH_FUNC_something%%=() { echo do something here
SHELL=bash
define BASH_FUNC_something-else%%
() {
echo something else
}
endef
export BASH_FUNC_something-else%%
all: ; something-else
$ make
something-else
something else
IFS=/ read -d "" -r -a path <<<"$path"
path[-1]="${path[-1]%$'\n'}"
test -z "${path[0]}" && path[0]="/"
IFS= eval 'path=(${path[@]})'