git clone https://gist.github.com/b6cca73ed8dcf3388bbab12ad19cca54.git
cd b6cca73ed8dcf3388bbab12ad19cca54
docker-compose pull
docker-compose down -v
docker-compose up -d
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
FROM composer:latest AS composer | |
FROM node:lts-slim AS node | |
FROM php:8-apache | |
# multi stage building composer | |
COPY --from=composer /usr/bin/composer /usr/bin/composer | |
# multi stage building node | |
COPY --from=node /opt/ /opt/ | |
COPY --from=node /usr/local/lib/ /usr/local/lib/ |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# get back a list of urls for search term | |
# $ goog stuart-warren github | |
# $ goog site:stackoverflow.com ValueError | |
goog() { | |
# uses https://github.com/mgdm/htmlq | |
query=${@} | |
v="" | |
if [[ "$1" == "-v" ]]; then v="-v"; fi | |
curl ${v} -LG --data-urlencode "q=${query}" \ | |
--data-urlencode "sourceid=chrome" \ |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
############################################################################### | |
# Step 1 : NPM Builder image | |
# | |
FROM node:lts-alpine AS npm-builder | |
# Define working directory and copy source | |
WORKDIR /home/node/app | |
COPY ./my_app/package.json ./my_app/modernizr-config.json ./ | |
# Install dependencies and build whatever you have to build | |
RUN apk add --no-cache git |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Conectar Mysql a Datastudio con MySql remote connection | |
#Modificar la configuración de Mysql para escuchar cualquier IP | |
sudo nano /etc/mysql/mysql.conf.d/mysqld.cnf | |
#Busca: | |
bind-address = 127.0.0.1 | |
#Cambialo por |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#cloud-config | |
groups: | |
- docker | |
users: | |
- default | |
# the docker service account | |
- name: docker-service | |
groups: docker | |
package_upgrade: true | |
packages: |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/sh | |
set -e | |
vendor/bin/phpunit | |
npm run prod | |
git add . | |
(git commit -m "Build frontend assets for deployment to production") || true | |
(git push) || true |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
$countries = array( | |
array('name' => 'Afghanistan','iso_alpha2' => 'AF','iso_alpha3' => 'AFG','iso_numeric' => '4','calling_code' => '93','currency_code' => 'AFN','currency_name' => 'Afghani','currency_symbol' => '؋'), | |
array('name' => 'Albania','iso_alpha2' => 'AL','iso_alpha3' => 'ALB','iso_numeric' => '8','calling_code' => '355','currency_code' => 'ALL','currency_name' => 'Lek','currency_symbol' => 'Lek'), | |
array('name' => 'Algeria','iso_alpha2' => 'DZ','iso_alpha3' => 'DZA','iso_numeric' => '12','calling_code' => '213','currency_code' => 'DZD','currency_name' => 'Dinar','currency_symbol' => ''), | |
array('name' => 'American Samoa','iso_alpha2' => 'AS','iso_alpha3' => 'ASM','iso_numeric' => '16','calling_code' => '1684','currency_code' => 'USD','currency_name' => 'Dollar','currency_symbol' => '$'), | |
array('name' => 'Andorra','iso_alpha2' => 'AD','iso_alpha3' => 'AND','iso_numeric' => '20','calling_code' => '376','currency_code' => 'EUR','currency_name' => 'Euro','currency_symbol' => '€'), | |
array |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# General ssl config | |
ssl_session_cache shared:SSL:5m; | |
ssl_session_timeout 4h; | |
ssl_session_tickets off; | |
ssl_dhparam /etc/nginx/dhparam.pem; | |
ssl_buffer_size 4k; | |
ssl_ecdh_curve prime256v1:secp384r1; | |
server { |
Remove imagemagick
sudo apt-get --purge remove imagemagick
sudo apt autoremove
Install Required package:
sudo apt-get install build-essential
sudo apt-get install checkinstall