Run this command in powershell as administrator
Enable-WindowsOptionalFeature -Online -FeatureName Microsoft-Windows-Subsystem-Linux
| backend: | |
| name: test-repo | |
| display_url: https://example.com | |
| media_folder: "assets/uploads" | |
| publish_mode: editorial_workflow | |
| collections: # A list of collections the CMS should be able to edit | |
| - name: "posts" # Used in routes, ie.: /admin/collections/:slug/edit |
| git rm -r --cached . | |
| git add . | |
| git commit -m ".gitignore is now working" |
Run this command in powershell as administrator
Enable-WindowsOptionalFeature -Online -FeatureName Microsoft-Windows-Subsystem-Linux
| <?php | |
| /* | |
| * TinyMCE: Add Tailwind CSS style | |
| */ | |
| add_editor_style('/assets/css/tailwind.min.css'); | |
| /* | |
| * TinyMCE: Remove WP styles | |
| */ |
| #!/bin/bash | |
| if [ "$EUID" -ne 0 ] | |
| then echo "Please run as root" | |
| exit | |
| fi | |
| apt-get install pkg-config libmagickwand-dev -y | |
| cd /tmp | |
| wget https://pecl.php.net/get/imagick-3.4.4.tgz | |
| tar xvzf imagick-3.4.4.tgz |
| #!/bin/bash | |
| # This will remove Apache | |
| sudo service apache2 stop | |
| sudo apt-get purge apache2 apache2-utils apache2.2-bin | |
| sudo apt remove apache2.* | |
| sudo apt-get autoremove | |
| whereis apache2 | |
| sudo rm -rf /etc/apache2 |
I have tried to setup redis as starting background task with wsl-autostart, Task Scheduler and with lot vbs scripts including one described here but none of them seemed to work.
In the end I have manually created a simple one that does the job. This script basically starts a hidden Ubuntu Window and starts redis-server inside it.
sudo apt install redis-server