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
| function findImages(page) { | |
| let imagesArray = []; | |
| JSON.stringify(page, (_, nestedValue) => { | |
| if (nestedValue) { | |
| if (nestedValue['images']) { | |
| imagesArray = [...imagesArray, ...nestedValue['images']]; | |
| } | |
| if (nestedValue['image']) { | |
| imagesArray = [...imagesArray, nestedValue['image']]; | |
| } |
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
| #/usr/bin/env bash | |
| curl -LO https://storage.googleapis.com/kubernetes-release/release/`curl -s https://storage.googleapis.com/kubernetes-release/release/stable.txt`/bin/linux/amd64/kubectl | |
| chmod +x ./kubectl | |
| sudo mv kubectl /usr/local/bin | |
| kubectl version | |
| curl -Lo minikube https://storage.googleapis.com/minikube/releases/latest/minikube-linux-amd64 | |
| chmod +x minikube | |
| sudo mv minikube /usr/local/bin | |
| mkdir -p ~/.minikube/config/ | |
| echo "vm-driver = none" > ~/.minikube/config/config.json |
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
| #!/usr/bin/env bash | |
| set -e | |
| URL=$1 | |
| : ${URL:='127.0.0.1'} | |
| status=$(curl -I --insecure --silent --output /dev/null --write-out %{http_code} $URL) | |
| if [[ "$status" -eq 200 ]] ; then | |
| echo 'OK' | |
| exit 0 | |
| else | |
| echo 'ERROR' |
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
| version: '3' | |
| services: | |
| mariadb: | |
| image: 'bitnami/mariadb:latest' | |
| environment: | |
| - ALLOW_EMPTY_PASSWORD=yes | |
| - MARIADB_USER=bn_magento | |
| - MARIADB_PASSWORD=magento_db_password | |
| - MARIADB_DATABASE=bitnami_magento | |
| volumes: |
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
| #!/usr/bin/env bash | |
| DATE=`date +%Y-%m-%d` | |
| IMAGE='webdevops/bootstrap' | |
| POSITIONAL=() | |
| while [[ $# -gt 0 ]] | |
| do | |
| key="$1" |
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
| #!/usr/bin/env bash | |
| # fzf-tmux: starts fzf in a tmux pane | |
| # usage: fzf-tmux [-u|-d [HEIGHT[%]]] [-l|-r [WIDTH[%]]] [--] [FZF OPTIONS] | |
| fail() { | |
| >&2 echo "$1" | |
| exit 2 | |
| } | |
| fzf="$(command -v fzf 2> /dev/null)" || fzf="$(dirname "$0")/fzf" |
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
| #!/usr/bin/env bash | |
| mkdir $HOME/.byobu/ | |
| cat > $HOME/.byobu/.tmux.conf <<EOF | |
| set -g default-shell $(which fish) | |
| set -g default-command $(which fish) | |
| EOF | |
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
| #!/usr/bin/env bash | |
| #curl -sL $url | bash - | |
| composer require \ | |
| snowdog/theme-blank-sass \ | |
| snowdog/language-pl_pl \ | |
| snowdog/frontools \ | |
| mageplaza/module-sitemap \ | |
| mageplaza/magento-2-blog-extension \ | |
| mageplaza/module-smtp \ | |
| mageplaza/magento-2-seo-extension \ |