#GIT
- Modificado (modified);
- Preparado (staged/index)
- Consolidado (comitted);
| DECLARE @name VARCHAR(50) -- database name | |
| DECLARE @path VARCHAR(256) -- path for backup files | |
| DECLARE @fileName VARCHAR(256) -- filename for backup | |
| DECLARE @fileDate VARCHAR(20) -- used for file name | |
| SET @path = 'C:\Backup\' | |
| SELECT @fileDate = CONVERT(VARCHAR(20),GETDATE(),112) | |
| DECLARE db_cursor CURSOR FOR |
| criar um arquivo config | |
| dentro do diretorio ssh | |
| ControlMaster auto | |
| ControlPath /tmp/ssh_mux_%h_%p_%r | |
| ControlPersist 4h | |
| GSSAPIAuthentication no |
| echo fs.inotify.max_user_watches=582222 | sudo tee -a /etc/sysctl.conf && sudo sysctl -p |
| server { | |
| listen 80; | |
| listen 443 default_server ssl; | |
| ssl on; | |
| ssl_certificate /etc/ssl/certs/myssl.crt; | |
| ssl_certificate_key /etc/ssl/private/myssl.key; | |
| server_name *.example.com; | |
| root /var/www/vhosts/website; |
| # Backup | |
| docker exec CONTAINER /usr/bin/mysqldump -u root --password=root DATABASE > backup.sql | |
| # Restore | |
| cat backup.sql | docker exec -i CONTAINER /usr/bin/mysql -u root --password=root DATABASE | |
| server { | |
| listen 80 default_server; | |
| listen [::]:80 default_server; | |
| root /your/root/path; | |
| index index.html; | |
| server_name you.server.com; |
| {"lastUpload":"2020-03-12T16:09:48.647Z","extensionVersion":"v3.4.3"} |
| How to fix a corrupt zsh history file | |
| Occasionally you may find you have a corrupt zsh history file preventing you from using the `fc` command or searching the history. Here's how to fix it. | |
| Estimated reading time: 1 minutes | |
| Table of contents | |
| Corrupt ZSH history file | |
| How to fix it | |
| Making it a script | |
| Corrupt ZSH history file | |
| If you use zsh for your shell very occasionally you may find the following message appearing indicating a corrupt history file. This is normally after a reboot. |
Em 2016, a Microsoft anunciou a possibilidade de rodar o Linux dentro do Windows 10 como um subsistema e o nome a isto foi dado de WSL ou Windows Subsystem for Linux.
O acesso ao sistema de arquivos no Windows 10 pelo Linux era simples e rápido, porém não tinhamos uma execução completa do kernel do Linux e outros artefatos nativos e isto impossibilitava a execução de várias tarefas no Linux, uma delas é o Docker.
Em 2019, a Microsoft anunciou o WSL2, com uma dinâmica aprimorada em relação a 1ª versão: