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 && \ |
<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) | |
{ |
-- Creating Roles Table | |
-- Create table for storing roles | |
create table roles ( id number(10,0) not null, name varchar2(255) | |
not null, display_name varchar2(255) null, description varchar2(255) null, created_at timestamp null, updated_at timestamp null, | |
constraint roles_id_pk primary key ( id ) ) | |
alter table roles add constraint roles_name_uk unique ( name ) | |
create sequence roles_id_seq start with 1 | |
create trigger roles_id_trg |