This file contains 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
-- Remove the history from | |
rm -rf .git | |
-- recreate the repos from the current content only | |
git init | |
git add . | |
git commit -m "Initial commit" | |
-- push to the github remote repos ensuring you overwrite history | |
git remote add origin git@github.com:<YOUR ACCOUNT>/<YOUR REPOS>.git |
This file contains 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/bash | |
echo -e "Which release would you like to install? (e.g. 51): \c" | |
read version | |
file="hugo_0.${version}_Linux-64bit.tar.gz" | |
URL=https://github.com/gohugoio/hugo/releases/download/v0.$version/$file | |
target_dir="/home/$(whoami)/bin/" |
This file contains 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/bash | |
docker run -it --rm \ | |
-v certs:/etc/letsencrypt \ | |
-v certs-data:/data/letsencrypt \ | |
-v /var/log/letsencrypt:/var/log/letsencrypt \ | |
certbot/certbot certonly \ | |
--webroot --register-unsafely-without-email --agree-tos \ | |
--webroot-path=/data/letsencrypt \ | |
-d origin.domain.com -d www.domain.com |
This file contains 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
worker_processes 1; | |
events { | |
worker_connections 1024; | |
multi_accept on; | |
} | |
http { | |
sendfile on; |
This file contains 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
version: "3" | |
services: | |
proxy: | |
depends_on: | |
- wordpress | |
image: nginx:alpine | |
container_name: proxy | |
ports: |
This file contains 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/bash | |
yum install -y docker | |
usermod -aG docker ec2-user | |
systemctl enable docker | |
curl -L https://github.com/docker/compose/releases/download/$1/docker-compose-$(uname -s)-$(uname -m) -o /usr/local/bin/docker-compose | |
chmod +x /usr/local/bin/docker-compose |