- Validation errors should return 422 response code.
- Authentication errors should return 401 response code.
- All request to save data should implement the POST http request method.
- All request to update data should implement the PUT http request method.
- All request to delete data should implement the DELETE http request method.
- Successfull POST requests to create new records should return 201 response code.
- Successfull GET requests should return 200 response code.
- Successfull PUT, DELETE requests should return 202 response code.
- If something goes wrong, return 400 response code.
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
<?php | |
namespace App\Console; | |
use Illuminate\Console\Scheduling\Schedule; | |
use Illuminate\Foundation\Console\Kernel as ConsoleKernel; | |
class Kernel extends ConsoleKernel | |
{ | |
/** |
This focuses on generating the certificates for loading local virtual hosts hosted on your computer, for development only.
Do not use self-signed certificates in production ! For online certificates, use Let's Encrypt instead (tutorial).
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
<IfModule mod_rewrite.c> | |
RewriteEngine On | |
RewriteBase / | |
RewriteRule ^index\.html$ - [L] | |
RewriteCond %{REQUEST_FILENAME} !-f | |
RewriteCond %{REQUEST_FILENAME} !-d | |
RewriteRule . /index.html [L] | |
</IfModule> | |
# No caching for all 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
<template> | |
<img ref="image" :src="blobUrl" @load="loaded"/> | |
</template> | |
<script> | |
import axios from "axios" | |
/** | |
* Load an image url as a blob | |
*/ |
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
location / { | |
try_files $uri $uri.html $uri/ @extensionless-php; | |
index index.html index.htm index.php; | |
} | |
location ~ \.php$ { | |
try_files $uri =404; | |
} | |
location @extensionless-php { |
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> | |
<q-btn @click="initializeNewPayment()" v-if="!hidden"> | |
<q-tooltip v-if="tooltip"> | |
<q-icon v-if="tooltipIcon" :name="tooltipIcon" /> {{ tooltip }} | |
</q-tooltip> | |
</q-btn> | |
</template> | |
<script> | |
import { QSpinnerPuff } from "quasar"; |
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
# 3m1n3nc3 ffmpeg_installer.sh to run all commands: | |
#root@cloudpanel:~# nano ffmpeg_installer.sh | |
#root@cloudpanel:~# chmod +x ffmpeg_installer.sh | |
#root@cloudpanel:~# ./ffmpeg_installer.sh | |
apt-get update | |
apt-get -y install autoconf automake cmake tclsh build-essential pkg-config git-core libssl-dev \ | |
libvorbis-dev libx265-dev libx264-dev libass-dev libgpac-dev libsdl1.2-dev libtheora-dev \ | |
libtool libvdpau-dev libfontconfig-dev libfreetype-dev libssh-dev libaom-dev | |
mkdir ~/ffmpeg_sources |
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
<? | |
header('Content-Type: text/plain'); | |
/** | |
* Changes permissions on files and directories within $dir and dives recursively | |
* into found subdirectories. | |
*/ | |
function chmod_r($dir, $dirPermissions, $filePermissions) { | |
$dp = opendir($dir); |
OlderNewer