sexta-feira, 24 de julho de 2020
sábado, 18 de julho de 2020
mariadb
sudo apt-get update sudo apt-get install -y mariadb-server mariadb-client
$ sudo mysql -u root -p
domingo, 5 de julho de 2020
sexta-feira, 26 de junho de 2020
kernel
sudo time make -j4 bzImage -> make a kernel without modules
sudo time make -j4 - > make a kernel with modules
sudo time make modules_install -> install modules
make install -> install the kernel
sudo time make -j4 - > make a kernel with modules
sudo time make modules_install -> install modules
make install -> install the kernel
git template
git config commit.template /home/$USER/Desktop
example template
# Place a subject above the body, limit to 50 chars
# Specify the body of the commit one line below the subject wrapping at
# 70 characters to keep things neatly organized. Here you should explain
# why the commit was created.
# You can use multiple paragraphs and other formatting to describe the
# commit. Add details as necessary until you have provided enough info
# about the commit.
# - Bullets can be added
# - But should be persistent
# Additionally, work items can be tracked using their id numbers.
# Work Items Resole: 557, 188, 122
example template
# Place a subject above the body, limit to 50 chars
# Specify the body of the commit one line below the subject wrapping at
# 70 characters to keep things neatly organized. Here you should explain
# why the commit was created.
# You can use multiple paragraphs and other formatting to describe the
# commit. Add details as necessary until you have provided enough info
# about the commit.
# - Bullets can be added
# - But should be persistent
# Additionally, work items can be tracked using their id numbers.
# Work Items Resole: 557, 188, 122
sábado, 20 de junho de 2020
QEMU - install
install ubuntu in qemu
Installation
Creating a disk image of 10G to hold ubuntu
$ qemu-img create -f qcow2 Ubuntu_Xenial-amd64.img 30G
Confirm both disk image and ubuntu’s iso image at same directory
$ qemu-system-x86_64 -hda Ubuntu_Xenial-amd64.img -boot d
-cdrom ubuntu-16.04.3-server-amd64.iso -m 512 -enable-kvm
qemu-system-x86_64
– normal qemu command represented for x86_64 machine-hda
– refers to hard disk, here I used the 30G hard disk image-boot [ a | c | d | n ]
– boot from floppy disk(a), hard disk(c), cdrom(d), or etherboot(n). You may note that I used cdrom here.-cdrom
– use iso image as cdrom to install ubuntu.-m 512
– allocate RAM of 512 MB for the virtual machine.-enable-kvm
– enable KVM virtualization.
References
terça-feira, 16 de junho de 2020
quinta-feira, 16 de janeiro de 2020
commitizen+commitlint
Primeiro crie o repositório no github
1)
depois:
1)
depois:
echo "# commitlint-commitizen" >> README.md git init git add README.md git commit -m "first commit" git remote add origin https://github.com/knechtel/commitlint-commitizen.git git push -u origin master
2)
yarn init -D
Deve ser criado um arquivo package.json com esse conteúdo
Depois yarn add @commitlint/cli @commitlint/config-conventional
para instalar o commitlint.
Em seguida:
echo "module.exports = {extends: ['@commitlint/config-conventional']}" > commitlint.config.js
Depois:
yarn add husky -DDevemos ter isso aqui:Note que agora temos o huskyEm seguida adicionar o husky logo abaixo da license já esta bom para nós."husky": { "hooks": { "commit-msg": "commitlint -E HUSKY_GIT_PARAMS" } }Aqui eu acabei rodando um npm install para instalar tudo que estaem package.jsonAgora vamos tentar fazer um commit com tudo que existir dentro do projeto daiteremosBonito agora o commit precisa seguir um padrão, olha quantidades de erros.Instalando o commitizen agora precisamos digitar:yarn add commitizen -D
E agora para commitarmos temos o seguinte comando yarn commit
Assinar:
Postagens (Atom)
-
Compiling a custom kernel has its advantages and disadvantages. However, new Linux user/admin find it difficult to compile Linux kernel. C...
-
To check the listening ports and applications on Linux: Open a terminal application i.e. shell prompt. Run any one of the following comman...