You should install VirtualBox and Vagrant before you start.
You should create a Vagrantfile in an empty directory with the following content:
| USE master | |
| GO | |
| IF OBJECT_ID ('sp_hexadecimal') IS NOT NULL | |
| DROP PROCEDURE sp_hexadecimal | |
| GO | |
| CREATE PROCEDURE sp_hexadecimal | |
| @binvalue varbinary(256), | |
| @hexvalue varchar (514) OUTPUT | |
| AS | |
| DECLARE @charvalue varchar (514) |
You should install VirtualBox and Vagrant before you start.
You should create a Vagrantfile in an empty directory with the following content:
| """ | |
| Normally to create a virtual environment, we can do so from the command prompt with:: | |
| C:\Users\me>python -m venv venv | |
| This doesn't work when we are within a virtual environment though:: | |
| (venv) C:Users\me>python -m venv venv2 | |
| Error: Command '['C:\\Users\\me\\venv2\\Scripts\\python.exe', '-Im', 'ensurepip', '--upgrade', '--default-pip']' returned non-zero exit status 3221226505. |
| """Demo of logging in a multi-processing context. | |
| Based on the Python "Logging Cookbook": | |
| https://docs.python.org/3/howto/logging-cookbook.html#logging-to-a-single-file-from-multiple-processes | |
| Note on `QueueListener`: | |
| The main difference between the Cookbook example and this demo is that I use | |
| the `QueueListener` convenience class, whereas they write a bespoke | |
| `listener_process` function which does more or less the same thing as |
| break | |
| <# | |
| 01. Find instances | |
| 02. Connect to instances | |
| 03. Check backups | |
| 04. Check disk space | |
| 05. Perform backups | |
| 06. Check for corruption | |
| 07. Install maintenance scripts | |
| 08. Export all settings for DR |
| #!/usr/bin/env bash | |
| wget --no-check-certificate https://github.com/teddysun/across/raw/master/bbr.sh && chmod +x bbr.sh && ./bbr.sh | |
| ## Add sysctl config | |
| echo 'fs.file-max = 51200 | |
| net.core.rmem_max = 67108864 | |
| net.core.wmem_max = 67108864 | |
| net.core.netdev_max_backlog = 250000 |
| version: "3.8" | |
| services: | |
| traefik: | |
| image: traefik | |
| ports: | |
| - "8000:80" | |
| - "8080:8080" | |
| command: | |
| - --api.dashboard=true |