- Open PowerShell terminal as admin
- Execute
Get-WindowsCapability -Online | ? Name -like 'OpenSSH.Client*'
- Open PowerShell terminal as regular user
If we know there will be a time we need to delete safely huge amount of files using ansible without killing IO and CPU this is what can be done
- name: 'delete directory'
command: 'ionice -c 3 rm -rf /path/to/dir'
ignore_errors: 'yes'
async: 18000
poll: 30
# If using x86_64
wget -nv -P /tmp https://download.oracle.com/otn_software/linux/instantclient/instantclient-basic-linuxx64.zip
wget -nv -P /tmp https://download.oracle.com/otn_software/linux/instantclient/instantclient-sdk-linuxx64.zip
sudo mkdir -pv /opt/oracle
sudo unzip /tmp/instantclient-basic-linuxx64.zip -d /opt/oracle
sudo unzip /tmp/instantclient-sdk-linuxx64.zip -d /opt/oracle
curl https://packages.microsoft.com/keys/microsoft.asc | sudo tee /etc/apt/trusted.gpg.d/microsoft.asc
curl https://packages.microsoft.com/config/ubuntu/$(lsb_release -rs)/prod.list | sudo tee /etc/apt/sources.list.d/mssql-release.list
sudo apt-get -q update
sudo ACCEPT_EULA=Y apt-get install -yq msodbcsql18 unixodbc-dev
This assumes use of Ondrej PPA for php installation
In case when you need to compile and test javascript modules in your Moodle plugin using Moodle docker setup these are the steps to follow:
# Start docker instance
# Enter the docker shell
moodle-docker-compose exec webserver bash -l
# Inside docker shell execute these commands
curl -o- https://raw.githubusercontent.com/nvm-sh/nvm/v0.39.7/install.sh | bash
To enable correct use of Behat on modern mac computers we need to perform slight adjustments to the yml scripts.
Open file base.yml
and locate following part
selenium:
image: "selenium/standalone-firefox${MOODLE_DOCKER_SELENIUM_SUFFIX:-}:${MOODLE_DOCKER_BROWSER_TAG}"
#!/usr/bin/env sh | |
# -*- mode: sh; coding: utf-8; -*- | |
# vim: set syntax=sh fileencoding=utf-8 | |
# kate: hl Bash; | |
export DEBIAN_FRONTEND=noninteractive | |
uid=$(id -u) | |
if [ "${uid}" != '0' ]; then | |
echo 'please run as root' | |
exit 1 |