Skip to content

Instantly share code, notes, and snippets.

View kevinzie's full-sized avatar
:shipit:
Working on it!

Kevinzie kevinzie

:shipit:
Working on it!
View GitHub Profile
@kevinzie
kevinzie / docker-compose.yml
Last active June 24, 2022 20:25
Docker Compose Laravel Apache / Nginx
version: "3.7"
services:
app:
build:
args:
user: kevinzie
uid: 1000
context: './'
dockerfile: Dockerfile
container_name: laravel-app
@kevinzie
kevinzie / Dockerfile
Created June 24, 2022 20:20
Dockerfile Laravel php-apache MSSQL (SQL SERVER) & MYSQL multiple connections
FROM php:7.4.1-apache
# Arguments defined in docker-compose.yml
ARG user
ARG uid
RUN pear config-set php_ini "$PHP_INI_DIR"
# Install system dependencies
RUN apt-get update \
&& apt-get -y install libmagickwand-dev --no-install-recommends \
git \
@kevinzie
kevinzie / number-filter.js
Created September 28, 2021 10:52
Filter Number Javascript
${string}.replace(/^[a-zA-Z.,/ $!#%^&*@()\-_\\`='+~]+$/gi, '')
/*!
* clipboard.js v2.0.0
* https://zenorocha.github.io/clipboard.js
*
* Licensed MIT © Zeno Rocha
*/
!function(t,e){"object"==typeof exports&&"object"==typeof module?module.exports=e():"function"==typeof define&&define.amd?define([],e):"object"==typeof exports?exports.ClipboardJS=e():t.ClipboardJS=e()}(this,function(){return function(t){function e(o){if(n[o])return n[o].exports;var r=n[o]={i:o,l:!1,exports:{}};return t[o].call(r.exports,r,r.exports,e),r.l=!0,r.exports}var n={};return e.m=t,e.c=n,e.i=function(t){return t},e.d=function(t,n,o){e.o(t,n)||Object.defineProperty(t,n,{configurable:!1,enumerable:!0,get:o})},e.n=function(t){var n=t&&t.__esModule?function(){return t.default}:function(){return t};return e.d(n,"a",n),n},e.o=function(t,e){return Object.prototype.hasOwnProperty.call(t,e)},e.p="",e(e.s=3)}([function(t,e,n){var o,r,i;!function(a,c){r=[t,n(7)],o=c,void 0!==(i="function"==typeof o?o.apply(e,r):o)&&(t.exports=i)}(0,function(t,e){"use strict";function n(t,e){if(!(t instanceof e))throw new
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@kevinzie
kevinzie / Docker Run
Created August 14, 2018 04:49
Docker Run
docker run -dit -p 80:80 --mount type=bind,source="$(pwd)/src",target="/var/www/domain.com/public_html" IMAGE_NAME:latest
@kevinzie
kevinzie / Dockerfile
Created August 14, 2018 04:47
Dockerfile for Magento 2 with Ubuntu 16.04
# Pull base Image​
FROM ubuntu:16.04
# Change default shell to bash
SHELL ["/bin/bash","-c"]
# Prepare and Install the required package​
RUN apt-get update && apt-get install -y curl git unzip php apache2 libapache2-mod-php php-{mysql,json,mbstring,curl,mcrypt,gd,bcmath,intl,soap,xml,xdebug,zip} locales \
&& rm -rf /var/lib/apt/lists/* \
​&& localedef -i en_US -c -f UTF-8 -A /usr/share/locale/locale.alias en_US.UTF-8​
@kevinzie
kevinzie / Magento 2 - Check isHome()
Created August 2, 2018 04:04
Magento 2 Http Request Detection.
<?php
namespace Jackrose\Catalog\Block\Product;
class TrendingProduct extends \Magento\Framework\View\Element\Template
{
...
protected $_request;
...
public function __construct(
...
<!DOCTYPE html>
<html>
<head>
<title>Google Maps JavaScript API v3 Example: Map Simple</title>
<meta name="viewport" content="width=device-width, initial-scale=1.0, user-scalable=no">
<meta charset="utf-8">
<style>
html, body, #map_canvas {
margin: 0;
[
{
"title":"Live TV ABC",
"drawable":"",
"submenu":"",
"iap":false,
"tabs":[
{
"title":"Live TV ABC",
"provider":"stream",