Skip to content

Instantly share code, notes, and snippets.

View bayareawebpro's full-sized avatar
✔️
Available for Consulting

Dan Alvidrez bayareawebpro

✔️
Available for Consulting
View GitHub Profile
@bayareawebpro
bayareawebpro / ext.txt
Created December 31, 2018 09:27 — forked from chronon/ext.txt
List of docker-php-ext-install extension names
Possible values for ext-name:
bcmath
bz2
calendar
ctype
curl
dba
dom
enchant
@bayareawebpro
bayareawebpro / docker-php-ext-install.md
Created December 31, 2018 09:27 — forked from giansalex/docker-php-ext-install.md
docker-php-ext-install Reference
RUN apt update
RUN apt upgrade -y
RUN apt install -y apt-utils
RUN a2enmod rewrite
RUN apt install -y libmcrypt-dev
RUN docker-php-ext-install mcrypt
RUN apt install -y libicu-dev
RUN docker-php-ext-install -j$(nproc) intl
RUN apt-get install -y libfreetype6-dev libjpeg62-turbo-dev libpng12-dev
@bayareawebpro
bayareawebpro / workbox.md
Created March 10, 2019 14:19 — forked from addyosmani/workbox.md
Workbox recipes

https://ctf0.wordpress.com/2018/07/14/laravel-and-pwa/

Workbox runtime caching recipes

Your Service Worker script will need to import in Workbox and initialize it before calling any of the routes documented in this write-up, similar to the below:

importScripts('workbox-sw.prod.v1.3.0.js');
const workbox = new WorkboxSW();
<template>
<div class="form-group">
<label for="location">{{ label }}</label>
<input type="text" id="location" :value="value" ref="location" class="form-control" />
</div>
</template>
<script>
export default {
props: {
@bayareawebpro
bayareawebpro / forge.sh
Created April 30, 2020 00:01
Laravel Forge Setup Script
#
# REQUIRES:
# - server (the forge server instance)
# - event (the forge event instance)
# - sudo_password (random password for sudo)
# - db_password (random password for database user)
# - callback (the callback URL)
#