Strapi permissions and user roles are set using database, which will make your permission sets inconsistent.
Here make it automatic. Put these files in config/functions/
$manifest = (Get-AppxPackage Microsoft.SecHealthUI -AllUsers).InstallLocation + '\AppxManifest.xml'; | |
Add-AppxPackage -DisableDevelopmentMode -Register $manifest; |
{ | |
" ": ["\\space"], | |
"#": ["\\#"], | |
"$": ["\\textdollar"], | |
"%": ["\\%"], | |
"&": ["\\&"], | |
"'": ["\\textquotesingle"], | |
"*": ["\\ast"], | |
"‚": [","], | |
"−": ["-"], |
-- -------------------------------------------------------- | |
-- Host: 127.0.0.1 | |
-- Server version: 10.4.13-MariaDB - mariadb.org binary distribution | |
-- Server OS: Win64 | |
-- HeidiSQL Version: 11.1.0.6116 | |
-- -------------------------------------------------------- | |
/*!40101 SET @OLD_CHARACTER_SET_CLIENT=@@CHARACTER_SET_CLIENT */; | |
/*!40101 SET NAMES utf8 */; | |
/*!50503 SET NAMES utf8mb4 */; |
Strapi permissions and user roles are set using database, which will make your permission sets inconsistent.
Here make it automatic. Put these files in config/functions/
pip --version | |
pip install -U pip | |
dnf reinstall python3.8 -y | |
alternatives --install /usr/bin/pip pip /usr/local/bin/pip3.8 1 | |
alternatives --set pip /usr/local/bin/pip3.8 | |
pip --version |
Ord Op Bin Rel Open Close Punct Inner | |
Ord 0 1 2 3 0 0 0 1 | |
Op 1 1 * 3 0 0 0 1 | |
Bin 2 2 * * 2 * * 2 | |
Rel 3 3 * 0 3 0 0 3 | |
Open 0 0 * 0 0 0 0 0 | |
Close 0 1 2 3 0 0 0 1 | |
Punct 1 1 * 1 1 1 1 1 | |
Inner 1 1 2 3 1 0 1 1 | |
$sw = [Diagnostics.Stopwatch]::StartNew() | |
# Drop all existing snapshot | |
$snapshots = doctl compute snapshot list --format ID --no-header | |
foreach ($line in $snapshots) { | |
doctl compute snapshot delete $line -f | |
} | |
# List all droplets and create snapshot | |
$droplets = doctl compute droplet list --format ID,Name --no-header | |
foreach($line in $droplets) { |
#!/bin/bash | |
timestamp=`date +%Y%m%d-%H` | |
tar -cf /root/mysqlb/backup-`echo $timestamp`.tar /var/lib/mysql | |
gzip -1 /root/mysqlb/backup-`echo $timestamp`.tar | |
find /root/mysqlb/ -type f -mtime +7 -name '*.gz' -print0 | xargs -r0 rm -- |
{ | |
"url": "url_here", | |
"database": { | |
"client": "mysql", | |
"connection": { | |
"host" : "localhost", | |
"user" : "username_here", | |
"password" : "password_here", | |
"database" : "database_here", | |
"charset" : "utf8mb4" |
# Generally you wouldn't point your server at api root. | |
# Althought it works, always configure your server | |
# correctly when you're doing production! | |
# That's enough warning. If you put this directory | |
# on subdirectory, please configure that to here. | |
# Don't forget to set $uriProtocol to PATH_INFO (Config/App.php) | |
<IfModule mod_rewrite.c> |