$ docker
This file contains hidden or 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
$this->validate($request, [ | |
'image'=> 'image|mimes:jpeg,jpg,png,gif|required|max:10000' | |
]); | |
$image = $request->file('image'); | |
$name = time().'.'.$image->getClientOriginalExtension(); | |
$destinationPath = public_path('/images'); | |
$image->move($destinationPath, $name); |
This file contains hidden or 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
# This is a sample build configuration for PHP. | |
# Check our guides at https://confluence.atlassian.com/x/e8YWN for more examples. | |
# Only use spaces to indent your .yml configuration. | |
# You can specify a custom docker image from Docker Hub as your build environment. | |
# run composer check-platform-reqs for a list of required extensions. | |
image: php:7.2-fpm | |
pipelines: | |
default: | |
# Not needed unless you're doing feature tests. | |
# - step: |
This file contains hidden or 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
https://documentation.onesignal.com/docs/ionic-sdk-setup | |
https://documentation.onesignal.com/docs/generate-an-ios-push-certificate | |
brew install imagemagick | |
find ./resources/ -name "*.png" -exec convert "{}" -alpha off "{}" \; | |
Provision problem in HS |
This file contains hidden or 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
Africa/Abidjan | |
Africa/Accra | |
Africa/Addis_Ababa | |
Africa/Algiers | |
Africa/Asmara | |
Africa/Asmera | |
Africa/Bamako | |
Africa/Bangui | |
Africa/Banjul | |
Africa/Bissau |
This file contains hidden or 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
//load the library Custom class | |
$this->load->library('ErrorHandler'); | |
//store db error to variable | |
$db_error = $this->db->error(); | |
//use the library method and catch the error message | |
echo $var = $this->errorhandler->get_error($db_error['message']); | |
//exit |
This file contains hidden or 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
__________________________ | |
Setup LAMP_________________________ | |
- sudo apt update | |
- sudo apt install -y git curl wget zip unzip | |
- sudo apt install apache2 | |
- sudo systemctl status apache2 | |
- sudo ufw allow in "Apache Full" | |
- sudo a2enmod rewrite - for routes | |
- sudo systemctl restart apache2 | |
- sudo apt install mysql-server - mysql |