Skip to content

Instantly share code, notes, and snippets.

View luisgagocasas's full-sized avatar
💙
CEO at AyPhu

Luis Gago Casas luisgagocasas

💙
CEO at AyPhu
View GitHub Profile

Cómo desplegar WordPress con Docker

Servidor

apt update

Docker

apt install docker.io
@luisgagocasas
luisgagocasas / COMUNIDAD-WPLIMA-DOCKER.md
Last active May 11, 2023 01:41
Cómo desplegar WordPress con Docker

Cómo desplegar WordPress con Docker

Servidor

apt update

Docker

apt install docker.io
@luisgagocasas
luisgagocasas / bootstrap.yml
Created January 4, 2022 16:24 — forked from nicosingh/bootstrap.yml
Install Docker Ubuntu 18 server on EC2
#!/bin/bash
apt-get update -y
apt-get install \
apt-transport-https \
ca-certificates \
curl \
software-properties-common -y
@luisgagocasas
luisgagocasas / a.md
Created January 3, 2022 05:10 — forked from nicosingh/a.md
load balanced http proxies with custom headers

Container Layout

How to run?

git clone https://gist.github.com/b6cca73ed8dcf3388bbab12ad19cca54.git
cd b6cca73ed8dcf3388bbab12ad19cca54
docker-compose pull
docker-compose down -v
docker-compose up -d
@luisgagocasas
luisgagocasas / .env
Created January 3, 2022 05:03 — forked from nicosingh/.env
MySQL cluster using docker
MYSQL_ROOT_PASSWORD=rootpass
@luisgagocasas
luisgagocasas / watch.sh
Created December 28, 2021 16:45 — forked from stuart-warren/watch.sh
Watch a directory of files for changes
# watch the current directory for changes to files
# order the files by size and output the files in 3 columns
# highlight changes between outputs
watch -d 'du -sh * | sort -hr | pr -3 -t'
@luisgagocasas
luisgagocasas / docker-compose.yml
Created December 28, 2021 16:43 — forked from stuart-warren/docker-compose.yml
Start chrome with docker-compose (helps with aws greengrass iot core also)
version: "3.8"
services:
chrome:
network_mode: "host"
image: jess/chrome
environment:
DISPLAY: 'unix:0'
volumes:
- /run/dbus/system_bus_socket:/run/dbus/system_bus_socket
@luisgagocasas
luisgagocasas / .bashrc
Created December 28, 2021 16:41 — forked from stuart-warren/.bashrc
search google from terminal
# 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" \
@luisgagocasas
luisgagocasas / docker-compose.yml
Last active March 1, 2020 19:16
docker nginx proxy: multi sites
version: '3'
services:
nginx-proxy:
image: jwilder/nginx-proxy
restart: always
ports:
- "80:80"
volumes:
- /var/run/docker.sock:/tmp/docker.sock:ro
@luisgagocasas
luisgagocasas / setup.sh
Created May 10, 2019 09:49 — forked from submtd/setup.sh
Ubuntu 18.04 PHP Local Development
#!/bin/bash
# This script will set up a LEMP environment for local development on
# Ubuntu 18.04. Nginx will look for sites in ~/Code/{folder}/public/. These
# sites can be accessed locally by going to http://{folder}.localtest.me. An
# example site called "info" is created automatically and you can view it by
# going to http://info.localtest.me. The source code for this site is in
# ~/Code/info/public/
# ADD SOME PPAs