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
@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 / 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
@luisgagocasas
luisgagocasas / install-ispconfig3-ubuntu.sh
Last active October 4, 2015 04:07
Install ISPConfig3 Ubuntu 14.04 64Bits
#!/bin/bash
## Install ISPConfig3 on Ubuntu 14.04 64Bits
## Author Original: Nilton OS blog.linuxpro.com.br
## Modificado Español: Luis Gago Casas luisgagocasas.com
## Version 0.6
## Caso precise
## echo 'LC_ALL="en_US.utf8"' >>/etc/environment
## dpkg-reconfigure dash