Very few easy steps -
- Download desired package from http://pecl.php.net/packages.php
- Extract the tar -
tar xzf gearman-X.Y.tgz
- Enter into extracted directory from terminal -
cd path/to/gearman-X.Y
- Run the following commands -
<?php | |
namespace App\Services; | |
use Illuminate\Support\Collection; | |
use Spatie\MediaLibrary\HasMedia; | |
use Spatie\MediaLibrary\MediaCollections\Models\Media; | |
class MediaPropertyService | |
{ |
<?php | |
namespace App\Services; | |
class ZipDirectory | |
{ | |
public function __construct( | |
private string $sourcePath, | |
private ?string $outputPath = null, | |
) |
CREATE DATABASE `dokan`; | |
USE `dokan`; | |
CREATE TABLE customers ( | |
id INT UNSIGNED AUTO_INCREMENT PRIMARY KEY, | |
name VARCHAR(100) NOT NULL, | |
email VARCHAR(100), | |
phone CHAR(15), | |
PASSWORD CHAR(32), | |
created_at DATETIME DEFAULT CURRENT_TIMESTAMP |
Very few easy steps -
tar xzf gearman-X.Y.tgz
cd path/to/gearman-X.Y
Do you want this type of callouts in typora?
It's simple.
callout.css
at the bottom of your user base.user.css
file.
base.user.css
in typora theme folder. (Preference > Appearance > "Open theme folder")base.user.css
file is found in that folder, create one.version: '3.7' | |
services: | |
db_course_mysql: | |
image: mysql:8.2 | |
command: --default-authentication-plugin=mysql_native_password | |
environment: | |
MYSQL_ROOT_PASSWORD: 123123 | |
ports: | |
- 3309:3306 | |
volumes: |
This gist lists only the basic commands to test REST APIs with curl. If you need something more advanced, this book has everything you may need.
Display the response only
<?php | |
/** | |
* Example of mocking built-in functions for testing | |
* | |
* @Author : ajaxray <anis.programmer@gmail.com> | |
* @Date-Time : 03/05/2017 | |
* | |
* How it works? | |
* ---------------- | |
* Simply by redefining the function for target Namespace. |
<?php | |
namespace App\Console\Commands; | |
use App\Models\User; | |
use Illuminate\Console\Command; | |
use Illuminate\Support\Facades\Validator; | |
class CreateUser extends Command | |
{ |
#!/bin/bash | |
# ---------------------------------------------------- | |
# A Shell script to take MySql database backup | |
# and upload to MEGA cloud storage using megatools | |
# ---------------------------------------------------- | |
# REQUIREMENTS : You should have - | |
# 1. Registered and verified MEGA account - https://mega.nz/ | |
# 2. Installed megatools - https://github.com/megous/megatools | |
# ---------------------------------------------------- |