Jon Warbrick, July 2014, V3.2 (for Ansible 1.7)
First one found from of
--- | |
- name: Playbook showcasing conversion from with_X loops to loop+filters | |
hosts: localhost | |
gather_facts: false | |
vars: | |
items: | |
- | |
- foo | |
- | |
- bar |
Jon Warbrick, July 2014, V3.2 (for Ansible 1.7)
First one found from of
# delete local tag '12345' | |
git tag -d 12345 | |
# delete remote tag '12345' (eg, GitHub version too) | |
git push origin :refs/tags/12345 | |
# alternative approach | |
git push --delete origin tagName | |
git tag -d tagName |
[server] | |
SERVER | |
[server:vars] | |
server_name=SERVER | |
docker_nginx_ssl=true |
#!/bin/bash | |
set -eu | |
if [ $# -lt 2 ] ; then | |
echo "Usage: $0 [--profile profile] [--region region] [--key key] [--filter filterkey] user host [port]" | |
exit | |
fi | |
while true; do |
get_latest_release() { | |
curl --silent "https://api.github.com/repos/$1/releases/latest" | # Get latest release from GitHub api | |
grep '"tag_name":' | # Get tag line | |
sed -E 's/.*"([^"]+)".*/\1/' # Pluck JSON value | |
} | |
# Usage | |
# $ get_latest_release "creationix/nvm" | |
# v0.31.4 |
# Kickstart file for composing the "Fedora" spin of Fedora (rawhide) | |
# Maintained by the Fedora Release Engineering team: | |
# https://fedoraproject.org/wiki/ReleaseEngineering | |
# mailto:[email protected] | |
# Use a part of 'iso' to define how large you want your isos. | |
# Only used when composing to more than one iso. | |
# Default is 695 (megs), CD size. | |
# Listed below is the size of a DVD if you wanted to split higher. | |
part iso --size=8098 |
These are instructions for standing up a Kubernetes cluster with Raspberry Pis with the current Hypriot (1.9.0), with K8S v1.10.5
Thanks to https://gist.github.com/alexellis/fdbc90de7691a1b9edb545c17da2d975 and https://gist.github.com/aaronkjones/d996f1a441bc80875fd4929866ca65ad for doing all the hard work!
""" | |
=========== | |
Description | |
=========== | |
Simple script to copy and gzip static web files to an AWS S3 bucket. S3 is great for cheap hosting of static web content, but by default it does not gzip CSS and JavaScript, which results in much larger data transfer and longer load times for many applications | |
When using this script CSS and JavaScript files are gzipped in transition, and appropriate headers set as per the technique described here: http://www.jamiebegin.com/serving-compressed-gzipped-static-files-from-amazon-s3-or-cloudfront/ | |
* Files overwrite old versions |