Use the following commands to add the kubectl autocomplete to zsh:
mkdir -p ~/.oh-my-zsh/custom/plugins/kubectl-autocomplete/
kubectl completion zsh > ~/.oh-my-zsh/custom/plugins/kubectl-autocomplete/kubectl-autocomplete.plugin.zsh
#!/bin/bash | |
# usage: | |
# checker "https://myapp.com" | |
counter=0 | |
while true | |
do | |
counter=$((counter + 1)) | |
status=$(curl -o /dev/null -s -w "%{http_code}\n" ${1}) |
version: '3' | |
# Networks | |
networks: | |
# Internal network | |
internal: | |
driver: bridge | |
# Volumes | |
volumes: |
sudo apt-get update | |
echo 'installing curl' | |
sudo apt install curl -y | |
echo 'installing git' | |
sudo apt install git -y | |
echo "What name do you want to use in GIT user.name?" | |
echo "For example, mine will be \"Igor Alves\"" |
<?php | |
$array = array( | |
array('texto'=>'Olá ' . $_POST['nome'] . '!'), | |
array('texto'=>'Bem-vindo(a) ' . $_POST['nome']), | |
array('texto'=>'Tudo bem ' . $_POST['nome']) | |
); | |
echo json_encode($array); |
FROM node:10.15-alpine as base | |
RUN apk --no-cache --virtual build-dependencies add \ | |
python \ | |
make \ | |
g++ \ | |
&& rm -f /var/cache/apk/* \ | |
&& npm config set unsafe-perm true \ | |
&& npm install --quiet node-gyp -g --cache /tmp/empty-cache |
UPDATE (March 2020, thanks @ic): I don't know the exact AMI version but yum install docker
now works on the latest Amazon Linux 2. The instructions below may still be relevant depending on the vintage AMI you are using.
Amazon changed the install in Linux 2. One no-longer using 'yum' See: https://aws.amazon.com/amazon-linux-2/release-notes/
sudo amazon-linux-extras install docker
sudo service docker start