I hereby claim:
- I am fizz on github.
- I am fizz (https://keybase.io/fizz) on keybase.
- I have a public key whose fingerprint is 3449 7523 241B CB60 E3AD 1279 85ED 974E D815 25E8
To claim this, I am signing this object:
I hereby claim:
To claim this, I am signing this object:
# Manages swapspace on a node. | |
# | |
# Based on https://gist.github.com/Yggdrasil/3918632 | |
# | |
# Parameters: | |
# - $ensure Allows creation or removal of swapspace and the corresponding file. | |
# - $swapfile Defaults to /mnt which is a fast ephemeral filesystem on EC2 instances. | |
# This keeps performance reasonable while avoiding I/O charges on EBS. | |
# - $swapsize Size of the swapfile in MB. Defaults to memory size. | |
# |
# Example: git show <treeish> | awk -f block.awk | |
# Selectively print sections matching regex in body of matches(), below | |
function matches(block) { | |
return (block ~ /\-\?\>/) | |
} | |
/diff/{ | |
# start of a new block, process the previous | |
if (prevblock"" && matches(prevblock)) print prevblock |