This repository contains a simple template for building Pandoc documents; Pandoc is a suite of tools to compile markdown files into readable files (PDF, EPUB, HTML...).
No suitable servers found (serverselectiontryonce
set): [connection timeout calling ismaster on '127.0.0.1:3306'])
{ $where: "this._id.getTimestamp() >= ISODate('2020-05-19')" }
git checkout master # first get back to master
git checkout experiment -- app.js # then copy the version of app.js
# from branch "experiment"
When the versions don't match up, composer will not install your required packagist packages.
But if you add the --ignore-platform-reqs
option when you run composer update
, it will gracefully ignore these restrictions.
composer install --ignore-platform-reqs
Check if Cron Job is there.
Configure if not properly configured
Configure for the specific user as well
- Commit all you changes first before adding tag
- Change the Composer.json file to the tag u planning to created
- Always add
v*.*
etc to tags - Once all the tags are committed, add the tag
- Once tag is added, push the tag to ur master
- go to the desired folder & run
composer require hlas/facade
git branch --contains <hash>
gitk --all --date-order -- $FILENAME
1. sudo su hlas_universepress
2. $template = 'pdfs.products.BP360.basicPolicySchedule'; // sample template file
3. $data = []; // sample data
4. \App\Modules\PDF\Services\PDFGeneratorService::generatePDFV3($template,$data,"test.pdf",env("DOCUMENT_STORE_PATH",'/tmp') . '/' ."test2.pdf");
{$where: "this.amountToCollectInCents !== this.amountCollectedInCents"}
ps aux | grep <processName>
Make sure that this file is located in /bin/
folder
command -v <the_command>
Error: ENOENT: no such file or directory, scandir
npm rebuild node-sass
[/home/hladmin/devdude/hlas_app/reactjs/node_modules/webpack-sources/node_modules/source-map/lib/ FATAL ERROR: Ineffective mark-compacts near heap limit Allocation failed - JavaScript heap out of memory
Best way to get the request body in PHP (use Illuminate\Http\Request;
)
In this method, you wont have backslash issue when u save data to DB
json_encode($request->all())
.
list existing configs
composer config --list --global
update config
composer config --global repos.packagist composer https://repo.packagist.org
To create an instance of docker container using ubuntu bash -- -ti : terminal intractive -- -rm : exit and delete the container after use -- -d : run in detached mode -- -c : run a command in the container
docker run -ti ubuntu:latest bash
docker run
=> Image to Container
docker commit
=> Container to Image
docker images
docker ps
(list running containers)
docker ps -a
(list all containers)
docker ps -l
(list last exited container)
docker commit <image-name> <tag-name>
(should do)
docker tag 22d0b3b5 <tag-name>
docker exec -ti <container-name> bash
// let me execute a command in the container
docker attach <container-name>
(Same as above)
docker logs <container-name>
docker kill <container-name>
docker run --rm -ti -p 45678:45678 -p 45679:45679 --name echo-server ubuntu bash
Initial Configuration for environment variables
Add set -ex
at the beginning of the file