One Paragraph of project description goes here
These instructions will get you a copy of the project up and running on your local machine for development and testing purposes. See deployment for notes on how to deploy the project on a live system.
| #!/usr/bin/env bash | |
| set -Eeuo pipefail | |
| trap cleanup SIGINT SIGTERM ERR EXIT | |
| script_dir=$(cd "$(dirname "${BASH_SOURCE[0]}")" &>/dev/null && pwd -P) | |
| usage() { | |
| cat <<EOF | |
| Usage: $(basename "${BASH_SOURCE[0]}") [-h] [-v] [-f] -p param_value arg1 [arg2...] |
| # ref https://github.com/tebeka/pythonwise/blob/master/docker-miniconda/Dockerfile | |
| FROM ubuntu:18.04 | |
| # System packages | |
| RUN apt-get update && apt-get install -y curl && \ | |
| wget -q https://repo.continuum.io/miniconda/Miniconda3-latest-Linux-x86_64.sh -O ~/miniconda.sh && \ | |
| /bin/bash ~/miniconda.sh -b -p /opt/conda && \ | |
| rm -f ~/miniconda.sh && \ | |
| ln -s /opt/conda/etc/profile.d/conda.sh /etc/profile.d/conda.sh && \ | |
| echo ". /opt/conda/etc/profile.d/conda.sh" >> ~/.bashrc && \ |
| # Copyright 2017, Google, Inc. | |
| # Licensed under the Apache License, Version 2.0 (the "License") | |
| FROM node:6-onbuild | |
| EXPOSE 3000 | |
| ENV LANGUAGE English | |
| ENV API_KEY 123-456-789 |
| stages: | |
| - build | |
| - publish | |
| .build: &build_template | |
| stage: build | |
| image: microsoft/dotnet:2.1-sdk-alpine | |
| cache: | |
| key: "$CI_PROJECT_NAMESPACE-$CI_PROJECT_NAME" | |
| paths: |
| #!/usr/bin/env bash | |
| #------------------------------------------------------------------------------- | |
| # | |
| # print_args - easily inspect arguments passed to a bash script | |
| # | |
| # sources: | |
| # https://unix.stackexchange.com/a/332126/183920 | |
| # | |
| #------------------------------------------------------------------------------- |
| ################## | |
| # Privacy Settings | |
| ################## | |
| # Privacy: Let apps use my advertising ID: Disable | |
| Set-ItemProperty -Path HKCU:\SOFTWARE\Microsoft\Windows\CurrentVersion\AdvertisingInfo -Name Enabled -Type DWord -Value 0 | |
| # To Restore: | |
| #Set-ItemProperty -Path HKCU:\SOFTWARE\Microsoft\Windows\CurrentVersion\AdvertisingInfo -Name Enabled -Type DWord -Value 1 | |
| # Privacy: SmartScreen Filter for Store Apps: Disable | |
| Set-ItemProperty -Path HKCU:\SOFTWARE\Microsoft\Windows\CurrentVersion\AppHost -Name EnableWebContentEvaluation -Type DWord -Value 0 |
| # Customize BASH PS1 prompt to show current GIT repository and branch. | |
| # by Mike Stewart - http://MediaDoneRight.com | |
| # SETUP CONSTANTS | |
| # Bunch-o-predefined colors. Makes reading code easier than escape sequences. | |
| # I don't remember where I found this. o_O | |
| # Reset | |
| Color_Off="\[\033[0m\]" # Text Reset |
| #!/usr/bin/env bash | |
| stale_images=`docker images --no-trunc --quiet --filter "dangling=true"` | |
| stale_containers=`docker ps --no-trunc --quiet --filter "status=exited"` | |
| stale_volumes=`docker volume ls --quiet --filter "dangling=true"` | |
| stale_images_count=`echo "$stale_images" | sed '/^\s*$/d' | wc -l | xargs` | |
| stale_containers_count=`echo "$stale_containers" | sed '/^\s*$/d' | wc -l | xargs` | |
| stale_volumes_count=`echo "$stale_volumes" | sed '/^\s*$/d' | wc -l | xargs` | |
| echo "Removing stale containers..." |