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
FROM alpine:3.5 | |
COPY cat-etc-hosts.sh . | |
RUN chmod u+x cat-etc-hosts.sh | |
CMD ["./cat-etc-hosts.sh"] |
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
apiVersion: extensions/v1beta1 | |
kind: Deployment | |
metadata: | |
name: ghost | |
labels: | |
role: blog | |
spec: | |
replicas: 1 | |
template: | |
metadata: |
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
ADMIN_PASSWORD=devstack | |
MYSQL_PASSWORD=devstack | |
RABBIT_PASSWORD=devstack | |
SERVICE_PASSWORD=devstack | |
SERVICE_TOKEN=devstack | |
FLAT_INTERFACE=br100 | |
PUBLIC_INTERFACE=eth0 | |
VOLUME_BACKING_FILE_SIZE=20480M |
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
# awsweeper --dry-run awsweeper.yml | |
aws_alb_target_group: | |
aws_ami: | |
aws_api_gateway_api_key: | |
aws_api_gateway_client_certificate: | |
aws_api_gateway_domain_name: | |
aws_api_gateway_rest_api: | |
aws_api_gateway_usage_plan: | |
aws_api_gateway_vpc_link: | |
aws_apigatewayv2_api: |
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 | |
set -o errexit | |
# This script assumes you're running it initially as root and you've created it with a key pair. If you | |
# haven't, you'll be locked out of your server. | |
if [ -z "$1" ]; then | |
echo "Usage: $0 NON_ROOT_USER" | |
echo "Example: $0 foo" |
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 | |
# This script assumes you've created this server with a key pair. If you haven't, you're not getting back in. | |
# Switch to everett user | |
adduser --shell /bin/bash --gecos "User for managing feeds" --disabled-password --home /home/everett everett | |
adduser everett sudo | |
grep -q "^#includedir.*/etc/sudoers.d" /etc/sudoers || echo "#includedir /etc/sudoers.d" >> /etc/sudoers | |
( umask 226 && echo "everett ALL=(ALL) NOPASSWD:ALL" > /etc/sudoers.d/50_everett_sh ) | |
mkdir /home/everett/.ssh |
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
OS_AUTH_URL=http://162.242.242.161:5000/v2.0/ | |
OS_REGION_NAME=RegionOne | |
OS_USERNAME=admin | |
OS_TENANT_NAME=admin | |
OS_PASSWORD=devstack | |
NET_NAME="test1-net" | |
IP_CIDR=192.168.0.0/24 | |
IP_START=192.168.0.10 | |
IP_END=192.168.0.20 |
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
# https://github.com/Microsoft/azure-docs/blob/master/articles/container-service/container-service-kubernetes-walkthrough.md | |
alias az="docker run --rm --volume ${HOME}:/root azuresdk/azure-cli-python az" | |
az login | |
RESOURCE_GROUP=kubernetes | |
LOCATION=southcentralus | |
DNS_PREFIX=phymata | |
CLUSTER_NAME=kubernetes |
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
export OS_USERNAME=your-rackspace-username | |
export OS_PASSWORD=your-rackspace-password | |
mkdir openstack-sdk | |
cd openstack-sdk/ | |
virtualenv -p python3 --no-site-packages venv | |
source venv/bin/activate | |
pip3 install openstacksdk | |
python3 |
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
[[local|localrc]] | |
# Credentials | |
DATABASE_PASSWORD=devstack | |
ADMIN_PASSWORD=devstack | |
SERVICE_PASSWORD=devstack | |
SERVICE_TOKEN=devstack | |
RABBIT_PASSWORD=devstack | |
# Services |
NewerOlder