opções dhcp suportadas pelo dnsmasq
dnsmasq --help dhcp
fornecer rotas aos clientes por dhcp:
121,10.210.0.0/24,10.212.0.4
https://tools.ietf.org/html/rfc3442
https://forum.archive.openwrt.org/viewtopic.php?id=52541
de quem é este mac?
ligou-se ao router às 16:30 do dia 23/10/2019
F6:86:26:A3:57:FF
sincronizar um fork no git
git fetch upstream
git checkout master
git merge upstream/master
git push origin master
https://ardalis.com/syncing-a-fork-of-a-github-repository-with-upstream
https://help.github.com/en/github/collaborating-with-issues-and-pull-re…
Smartmontools and Smartctl Cheatsheet
verificar o progresso dum teste:
watch smartctl --capabilities /dev/sd(x)
errado!
devemos voltar a executar o comando:
smartctl -t long /dev/sd(x)
realizar um teste longo em background mode:
smartctl -t long /dev/sd(x)
Watchtower e pyouroboros
atualização do debian 9 (stretch) para o debian 10 (buster) num só comando
apt update -y && apt upgrade -y && apt full-upgrade -y && apt --purge autoremove -y && cp -v /etc/apt/sources.list /root/ && cp -rv /etc/apt/sources.list.d/ /root/ && sed -i 's/stretch/buster/g' /etc/apt/sources.list && sed -i 's/stretch/buster/g' /etc/apt/sources.list.d/* && apt update -y && apt upgrade -y && apt full-upgrade -y && apt --purge autoremove -y && reboot
visualizar todos os nós criados por um utilizador no drupal
Create a Page view which shows content.
Select the fields you want to see for the node like nid, title, author, etc.
Add Author as a filter and expose this field so that you can provide user id or username via the exposed filter form.
Save the view.
The page view should now work on the URL you provided in step 1. Here once you provide a username or user id (depending on which field you exposed) the content should get filtered.
Add a module like views_data_export, which allows you to export the list in a file.
deteção de plágio
para correr no linux:
apt install icedtea-netx
http://ap.khnu.km.ua/index_us.shtml
http://linuxtutsplus.blogspot.com/2013/10/how-to-run-jnlp-files-under-u…