Skip to content

Instantly share code, notes, and snippets.

@adamdecaf
adamdecaf / payroll.go
Last active August 6, 2020 18:26
ACH Payroll Example
package examples
import (
"log"
"github.com/moov-io/ach"
)
// Example__BlogPost writes a PPD credit file
func Example__BlogPost() {
// give me SDN's matching 'EP'
$ curl -s "http://localhost:8084/search?name=EP&limit=2" | jq .
{
"SDNs": [
{
"entityID": "15431",
"sdnName": "EP-GOM",
"sdnType": "aircraft",
"program": "SDGT",
"title": "",
### Keybase proof
I hereby claim:
* I am adamdecaf on github.
* I am adamdecaf (https://keybase.io/adamdecaf) on keybase.
* I have a public key ASCvZ5g9AeJferhAcUFjtCD66xCjCe-JfSWtWmSB3ft28Ao
To claim this, I am signing this object:
@adamdecaf
adamdecaf / foo.tf
Created March 21, 2018 19:18
Terraform prevent_destroy, but allow re-creation
variable "prevent_machine_destroy" {
description = "Set lifecycle.prevent_destroy on machines"
default = true
}
resource "random_id" "protector" {
count = "${ var.prevent_machine_destroy ? 1 : 0 }"
byte_length = 8
keepers = {
ids = "${join(",", null_resource.foo.*.id)}"