Some docker commands I found useful on internet. Instead of searching them everytime this is where I do keep track of them 🎉
docker stop $(docker ps -a -q)
** Finding a file** | |
``` | |
find / -name "ansible" 2>&1 | grep -v "Permission denied" | |
``` | |
** find a text in directory:** | |
grep -rnw /PATH/ -e 'minikube' |
## This is a very basic PHP 8 Dockerfile with Imagick installed from source | |
## Modify/Customize this file as per your need | |
FROM php:8.0-fpm | |
RUN apt-get update && \ | |
apt-get install openssl -y && \ | |
apt-get install libssl-dev -y && \ | |
apt-get install wget -y && \ | |
apt-get install git -y && \ |
<?php | |
use Illuminate\Database\Seeder; | |
use App\Product; | |
use Faker\Factory as Faker; | |
class ProductsTableSeeder extends Seeder | |
{ | |
/** |
<template> | |
<div> | |
<ul class="el-upload-list el-upload-list--picture-card"> | |
<li | |
v-for="image in images" | |
tabindex="0" | |
class="el-upload-list__item is-ready" | |
> | |
<div> | |
<img |
Host * | |
IgnoreUnknown AddKeysToAgent,UseKeychain | |
UseKeychain yes | |
AddKeysToAgent yes | |
IdentityFile ~/.ssh/id_rsa_bitbucket |
# Installation --- | |
# 1. In Bitbucket, add $FTP_USERNAME $FTP_PASSWORD and $FTP_HOST as environment variables. | |
# 2. Commit this file to your repo | |
# 3. From Bitbucket Cloud > Commits > Commit Number > Run Pipeline > Custom:Init (this will | |
# push everything and initial GitFTP) | |
# | |
# Usage --- | |
# - On each commit to master branch, it'll push all files to the $FTP_HOST | |
# - You also have the option to 'init' (from Bitbucket Cloud) - pushes everything and initialises | |
# - Finally you can also 'deploy-all' (from Bitbucket Cloud) - if multiple deploys fail, you |
<?php | |
/** | |
* Render an exception into an HTTP response. | |
* | |
* @param \Illuminate\Http\Request $request | |
* @param \Exception $exception | |
* @return \Illuminate\Http\Response | |
*/ | |
public function render($request, Exception $exception) | |
{ |