openssl s_client -showcerts -connect [registry_address]:[registry_port] < /dev/null | sed -ne '/-BEGIN CERTIFICATE-/,/-END CERTIFICATE-/p' > ca.crt sudo cp ca.crt /usr/local/share/ca-certificates/ sudo update-ca-certificates systemctl restart docker
Author: admin
How to run Chrome in WSLG
google-chrome-stable --enable-features=UseOzonePlatform --ozone-platform=wayland
Chocolatey rwSync & closed connection
If, when trying to do a rsync using Chocolatey rwSync through ssh you receive an error of “closed connection” you have to:
- Uninstall the windows OpenSSH client (in Windows Optional Features)
- Add the folder C:\ProgramData\chocolatey\lib\rsync\tools\bin to your path
You can check if the version is correct by doing an ssh -v localhost
Chocolatey cwRsync & known_hosts
If, when using cwRsync though chocolatey, you can’t add a host fingerprint, receiving the error:
Failed to add the host to the list of known hosts (/known_hosts).
You have to create a file known_hosts in C:\ProgramData\chocolatey\lib\rsync\tools and allow your user to write to it.
Um framework para Suporte à Preparação e Comparação de Similaridade de Documentos XML (ERBD 2007).
This is an article published as part of my graduate research:
One way to publish information in the Web is to create XML data sources. In these data sources, information is contained in one or more XML documents with a particular structure and content format. In this paper, we introduce a framework to prepare and to support the comparison of XML documents from different data sources, aiming at a further integration of similar XML instances. It is composed by some processes with one or more stages. The main contribution of this framework is to facilitate the similarity score definition between heterogeneous XML instances, allowing an uniformization of XML data defined in different contexts by different authors.
Reducing WSL-2 Memory Usage
Execute the following command (as root):
sync && echo 3 > /proc/sys/vm/drop_caches
To put in in a crontab, to execute every 6 hours (assuming the script with the command at /root/clean_caches.sh):
0 */6 * * * /root/clean_caches.sh
How to make an older commit the latest
How to make a certain commit the latest in a repository (deleting all following commits):
git reset –hard CommitId
git push -f origin master
(from https://stackoverflow.com/questions/40245767/delete-commit-on-gitlab )
GIT list status on all directories
To list status on all git repositories in a folder:
find . -maxdepth 1 -mindepth 1 -type d -exec sh -c '(echo {} && cd {} && git status -s && echo)' \;
(from https://coderwall.com/p/grmruq/git-status-on-all-repos-in-folder)
Algoritmos de Pré-Processamento para Uniformizaçãode Instâncias XML Heterogêneas
The following document contains my graduate dissertation (in portuguese), which deals with the following problem:
The increasing availability of data on the Web creates the need for more pratical and efficient systems for collecting and integrating these data, in order to provide queries over them. One of the most used formats to represent information in the Web is XML. XML, given its dynamic nature, allows complete and adequate representation of data from different domains. But, at the same time, such dynamic nature makes integration activities complex. This work focus on reducing such complexity, providing a set of preprocessing techniques to compatibilize the structures of XML instances. This compatibilization, which seeks to respect data semantics, tries to facilitate the comparison and further integration of these data by already existing approaches for XML data comparison and integration. Through case studies and experiments, we demonstrate how the suggested preprocessings provide better results for the existing related work.
Apostila de Firebird
Neste documento pretende-se fazer explicação o que é e como funcionar o banco de dados Firebird. Inicia-se com uma revisão sobre aspectos ligados a bancos de dados relacionais (à qual classe o Firebird pertence), introduzindo-se em seguida o Firebird. Faz-se uma revisão histórica e apresenta-se conceitos de estrutura e funcionamento do mesmo. Em seguida, passa-se as operações de manutenção do banco de dados, iniciando pelo backup/restore e em seguida sobre o processo de identificação, análise e correção de eventuais problemas com o banco de dados