Skip to content

Instantly share code, notes, and snippets.

{
"openapi": "3.0.0",
"info": {
"version": "1.0.0",
"title": "Swagger Faqstore",
"description": "A sample API that uses a faqstore as an example to demonstrate features in the OpenAPI 3.0 specification",
"termsOfService": "http://swagger.io/terms/",
"contact": {
"name": "Swagger API Team",
"email": "apiteam@swagger.io",
@Daniyal-Javani
Daniyal-Javani / gist:b990a892e55bf319274964aa2047b44a
Created April 26, 2020 05:02
root user for phpmyadmin in Ubuntu 20.04
ALTER USER 'root'@'localhost' IDENTIFIED WITH mysql_native_password BY 'password';
FLUSH PRIVILEGES;
true == function()
{
var MinPrice = function() {
var min = [ih][0].PriceMin;
var ipos;
for (ipos = 0; ipos < 21; ipos++)
if (min > [ih][ipos].PriceMin)
min = [ih][ipos].PriceMin;
return min;
{"lastUpload":"2020-12-05T12:10:20.620Z","extensionVersion":"v3.4.3"}
@Daniyal-Javani
Daniyal-Javani / config.json
Created October 2, 2021 06:46
Docker proxy
home/daniyal/.docker/config.json
{
"proxies": {
"default": {
"httpProxy": "http://172.17.0.1:8118",
"httpsProxy": "http://172.17.0.1:8118"
}
}
}
@Daniyal-Javani
Daniyal-Javani / permissions
Last active December 2, 2021 13:51
Set up File Permissions for Laravel
sudo chown -R $USER:www-data .
sudo find . -type f -exec chmod 664 {} \;
sudo find . -type d -exec chmod 775 {} \;
sudo chgrp -R www-data storage bootstrap/cache
sudo chmod -R ug+rwx storage bootstrap/cache
@Daniyal-Javani
Daniyal-Javani / clear
Last active December 11, 2021 13:10
Laravel Clear Cache
sudo rm -rf storage/framework/cache/data/*
sudo rm -rf bootstrap/cache/*
composer dump-autoload
php artisan clear
php artisan debugbar:clear
php artisan cache:clear-compiled
php artisan auth:clear-resets
php artisan config:clear
php artisan route:clear
php artisan view:clear
@Daniyal-Javani
Daniyal-Javani / docker-compose.yml
Last active March 12, 2024 01:38
Laravel sail with phpMyAdmin
version: '3'
services:
laravel.test:
build:
context: ./vendor/laravel/sail/runtimes/8.0
dockerfile: Dockerfile
args:
WWWGROUP: '${WWWGROUP}'
image: sail-8.0/app
environment: