This file contains hidden or 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://forums.whirlpool.net.au/archive/9n111qlk |
This file contains hidden or 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 -e | |
| # inspired by https://superuser.com/questions/448519/how-to-remove-watermark-from-pdf-using-pdftk | |
| if [ $# -ne 2 ]; then | |
| echo -e "Usage:\n ${0} \"watermark text\" input.pdf\n" | |
| exit 1 | |
| fi | |
| INPUT_FILENAME=$2 | |
| WM_STRING=$1 |
This file contains hidden or 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
| # Usage: | |
| # aws cloudformation --region <region> create-stack --stack-name <stack name> --template-body file://vpc-fargate.yaml | |
| # This template will: | |
| # Create a VPC with: | |
| # 2 Public Subnets | |
| # 2 Private Subnets | |
| # An Internet Gateway (with routes to it for Public Subnets) | |
| # A NAT Gateway for outbound access (with routes from Private Subnets set to use it) | |
| # |
This file contains hidden or 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
| /* global UrlFetchApp */ | |
| /* exported processForm */ | |
| /* eslint no-console: "warn" */ | |
| function sendDetailsToMailChimp(firstName, lastName, emailAddress, membershipType) { | |
| // inject or replace ${} values with your literals | |
| // membershipType is a custom field, replace or modify as you require | |
| var url = `https://${DC}.api.mailchimp.com/3.0/lists/${LISTID}/members/` | |
| var data = { |
This file contains hidden or 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
| radius = 10; | |
| circle(radius); | |
| sectors = 8; | |
| sector_degrees = 360 / sectors; | |
| for(sector = [1 : sectors]) { | |
| angle = sector_degrees * sector; | |
| echo(str("--- Angle:", angle)); | |
| x_pos = radius * sin(angle); |
This file contains hidden or 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
| #! /usr/bin/env ruby | |
| raise "Please provide source path" unless ARGV[0] | |
| # all measurements are in mm | |
| COLS_PER_ROW = 3 | |
| CARD_HEIGHT = 50 | |
| REPEAT_CARDS = 4 | |
| OUT_FILE_NAME='index.html' | |
| PAGE_WIDTH=210 |
This file contains hidden or 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
| #! /usr/bin/python3 | |
| import logging | |
| import glob | |
| import os | |
| import subprocess | |
| from pathlib import Path, PosixPath | |
| logger = logging.getLogger(__name__) | |
| logger.setLevel(logging.INFO) |