# give access to user
GRANT ALL PRIVILEGES ON website_com.* To 'user_website_com'@'localhost' IDENTIFIED BY 'XXXXXXXX';
CREATE USER 'user_website_com'@'localhost' IDENTIFIED BY 'XXXXXXXX';
mysql -u username -p database_name < file.sql
# create user
CREATE USER 'newuser'@'localhost' IDENTIFIED BY 'password';
# grant all privileges
GRANT ALL PRIVILEGES ON * . * TO 'newuser'@'localhost';
# flush privileges
FLUSH PRIVILEGES;
GRANT type_of_permission ON database_name.table_name TO ‘username’@'localhost’;
REVOKE type_of_permission ON database_name.table_name FROM ‘username’@‘localhost’;
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
[root@samayo sites]# docker logs some-prestashop | |
* Reapplying PrestaShop files for enabled volumes ... | |
* No pre-install script found, let's continue... | |
* No post-install script found, let's continue... | |
* Almost ! Starting web server now |
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
# --------------------------------------- | |
# Main Module | |
# --------------------------------------- | |
user nginx; | |
# This number should be, at maximum, the number of CPU cores on your system. | |
worker_processes 2; | |
pid /var/run/nginx.pid; | |
# Only log critical errors |
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
version: '3' | |
services: | |
db: | |
container_name: mariadb | |
build: | |
context: ./mariadb | |
volumes: | |
- ./mariadb/scripts:/docker-entrypoint-initdb.d | |
- ./.data/db:/var/lib/mysql |
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
<template> | |
<div class='vue-aws-uploader' :class='wrapperCss'> | |
<label for="vue-aws-upload" class='fa fa-upload'> Click here to upload your <b>{{ folder }}</b> files </label> | |
<input type="file" name="file" id="vue-aws-upload" class="vue-aws-upload" @change='init($event)' /> | |
</div> | |
</template> | |
<script> | |
import axios from 'axios' |
I hereby claim:
- I am samayo on github.
- I am samayo (https://keybase.io/samayo) on keybase.
- I have a public key whose fingerprint is 7DE1 4E1C 7085 72C1 4BD9 D523 8651 99F6 F632 E04C
To claim this, I am signing this object:
I hereby claim:
- I am samayo on github.
- I am samayo (https://keybase.io/samayo) on keybase.
- I have a public key whose fingerprint is 7DE1 4E1C 7085 72C1 4BD9 D523 8651 99F6 F632 E04C
To claim this, I am signing this object:
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
#!/bin/bash | |
#This is a basic bash script for common commands | |
set -e | |
# DIRS | |
service nginx restart | |
service php-fpm restart | |
service mariad restart | |
mount -t vboxsf www /var/www | |
setenforce 0 |
NewerOlder