Docker is a tool that makes it easy to run software. It does so by reducing the steps needed to setup the software through the use of containers. You can think of a container as a virtual computer that runs inside your computer. Given its virtual nature, it can be shared with others through the internet simply by having them download a file. That file specifies how to rebuild the virtual computer to match its source. Therefore, when you download and run a Docker container, it will look and function exactly the way the sender designed it to function. Everyone who uses that container will thus have the exact same experience. This is especially helpful because it ensures that you have all the dependencies required for the software to run properly. In addition, it ensures reproducibility of bugs which aids in the software development process. As such, the LibreHealth Team is phasing out the old installation process in favor of using Docke
| //GET: Review | |
| [HttpGet, ActionName("Review")] | |
| public async Task<IActionResult> Review(int? id) | |
| { | |
| if (id == null) | |
| { | |
| return NotFound(); | |
| } |
Docker is a tool that makes it easy to run software. It does so by reducing the steps needed to setup the software through the use of containers. You can think of a container as a virtual computer that runs inside your computer. Given its virtual nature, it can be shared with others through the internet simply by having them download a file. That file specifies how to rebuild the virtual computer to match its source. Therefore, when you download and run a Docker container, it will look and function exactly the way the sender designed it to function. Everyone who uses that container will thus have the exact same experience. This is especially helpful because it ensures that you have all the dependencies required for the software to run properly. In addition, it ensures reproducibility of bugs which aids in the software development process. As such, the LibreHealth Team is phasing out the old installation process in favor of using Dock
| # 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 | |
| public class MyDbContext : DbContext | |
| { | |
| public DbSet<User> Users { get; set; } | |
| public MyDbContext(DbContextOptions<MyDbContext> options) | |
| : base(options) | |
| { | |
| } |
| sudo amazon-linux-extras install -y ruby2.4 | |
| sudo yum install -y gcc ruby-devel libxml2 libxml2-devel libxslt libxslt-devel patch redhat-rpm-config sqlite-devel | |
| sudo gem install jekyll bundler | |
| To run Jekyll, I had to do so via bundle exec instead of jekyll s | |
| bundle exec jekyll serve |
| IF OBJECT_ID(N'tempdb..#TempTest') IS NOT NULL | |
| BEGIN | |
| DROP TABLE #TempTest | |
| END | |
| GO | |
| WITH WK_RN AS | |
| ( | |
| SELECT ROW_NUMBER() OVER (ORDER BY Id, Rev) AS ROWID, * | |
| FROM Test |
| curl --header "Content-Type:application/json" --request POST --data {} http://localhost:7071/admin/functions/SaveItems |
| import time | |
| import os | |
| import json | |
| import ssl | |
| import paho.mqtt.client as mqtt | |
| from locust import User, task, events | |
| # this value is the number of seconds to be used before retrying operations |
- Chocolatey:
choco install microsoft-windows-terminal - Windows Store: https://www.microsoft.com/en-us/p/windows-terminal/9n0dx20hk701?activetab=pivot:overviewtab
TIP: Pin the Terminal to your Taskbar for quick and easy access
Great docs here: https://docs.microsoft.com/en-us/windows/terminal/