This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Need to authorized with root user(sudo su) to mysql -u root | |
GRANT ALL PRIVILEGES ON `tenant%`.* TO 'test_proagent'@'%' WITH GRANT OPTION; | |
#witch tenant is prefix of databases and test_proagent is user name |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
In three steps, you can clean up your repository and make sure your ignored items are indeed ignored: | |
$ git rm -r --cached . | |
$ git add . | |
$ git commit -m "Clean up ignored files" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
First pre-required step for Ubuntu: | |
apt-get update | |
apt install apt-transport-https ca-certificates | |
wget -O /etc/apt/trusted.gpg.d/php.gpg https://packages.sury.org/php/apt.gpg | |
Add php repository: | |
sudo add-apt-repository ppa:ondrej/php | |
sudo apt-get update |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
const Close = ({ customClass }) => { | |
return ( | |
<svg | |
id="close-icon" | |
xmlns="http://www.w3.org/2000/svg" | |
viewBox="0 0 10 10" | |
pointerEvents="none" | |
width={8} | |
height={8} | |
> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import {usePage} from "@inertiajs/inertia-vue3"; | |
watch(() => usePage().props.value.flash, flash => { | |
if (flash.success) { | |
open('success', flash.success); | |
} | |
if (flash.warning) { | |
open('warning', flash.warning); | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<script setup> | |
import {computed, onMounted, onUnmounted, ref} from 'vue'; | |
const props = defineProps({ | |
align: { | |
type: String, | |
default: 'right', | |
}, | |
widthClasses: { | |
type: String, |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
echo "deb https://debian.octopuce.fr/snapshots/sury-php/20220630/ stretch main" | sudo tee /etc/apt/sources.list.d/php.list | |
wget -qO - https://debian.octopuce.fr/sury-php/apt.gpg | sudo apt-key add - | |
apt update |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
"name": "inovector/<project-name>", | |
"repositories": [ | |
{ | |
"type": "vcs", | |
"url": "https://github.com/<vendor-name>/<repository-name>" | |
} | |
], | |
"require": { | |
"<vendor-name>/<package-name>": "dev-main" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
$blocks = collect($this->input('blocks', []))->mapWithKeys(function ($block, $index) { | |
return [ | |
$block => ['sort_order' => $index] | |
]; | |
})->toArray(); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
ssh-keygen -R [hostname] -f ~/.ssh/known_hosts | |
Replace [hostname] with the hostname or IP address of the server. |
OlderNewer