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
#!/usr/bin/env bash | |
set -euo pipefail | |
CHURCH="'012E0000000Q8x8IAC'" | |
FOUNDATION="'012E0000000Q8xDIAS'" | |
GOVERNMENT="'0124400000097hVAAQ'" | |
ORG="'012E0000000Q8xIIAS'" | |
echo "---------------------------------------------------------------------" |
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
AuthorizeNetService ans = new AuthorizeNetService('**', '**', true); | |
AuthorizeNetModels.creditCardType creditCard = new AuthorizeNetModels.creditCardType(); | |
creditCard.cardCode = '999'; | |
creditCard.cardNumber = '5424000000000015'; | |
creditCard.expirationDate = '2020-05'; | |
AuthorizeNetModels.paymentType payment = new AuthorizeNetModels.paymentType(); | |
payment.creditCard = creditCard; |
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
// This class provides logic for inbound just-in-time provisioning of single | |
// sign-on users in your Salesforce organization. | |
// Here's all the info we're going to have. | |
// | |
// Employee Id | |
// First Name | |
// Last Name | |
// Active Flag |
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
#!/usr/bin/env bash | |
set -e | |
# | |
# Check and see if I have been updated. | |
# If not, do nothing. If yes, run my deployment script. | |
# | |
# We can run this every minute. | |
# crontab -e | |
# * * * * * /home/ubuntu/glo.sh/bin/pullme.sh >/dev/null 2>&1 |
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
/* | |
Handles all the communication with Luminate Online web service SOAP API. | |
*/ | |
public class LuminateSoapService { | |
public static final String FORMAT = 'yyyy-MM-dd\'T\'HH:mm:ssZ'; | |
public class MyException extends Exception {} |
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
'use strict'; | |
const { | |
promisify | |
} = require('util'); | |
function handle(err) { | |
console.error(err.stack || err); | |
process.exit(3); | |
} |
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
#!/usr/bin/env node | |
'use strict'; | |
const path = require('path'); | |
if (process.argv.length < 4) { | |
console.error(` | |
Usage: ${path.basename(process.argv[1])} HEADER VALUE |
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
#!/usr/bin/env bash | |
if [ $# -lt 2 ]; then | |
me="$(basename "$(test -L "$0" && readlink "$0" || echo "$0")")" | |
echo "" | |
echo "Usage: $me HEADER VALUE" | |
echo "" | |
echo " We read from STDIN and write to STDOUT." | |
echo "" | |
exit 1 |
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
// So this guy will pull down a bunch of word docs from SQL server | |
// and write them out to file. | |
// woo hoo. | |
const sql = require('mssql/msnodesqlv8'); | |
const fs = require('fs'); | |
const path = require('path'); | |
const {promisify} = require('util'); | |
const rimraf = promisify(require('rimraf')); | |
const mkdir = promisify(fs.mkdir); | |
// const writeFile = promisify(fs.writeFile); |
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
@isTest | |
private class StackTrace_Test { | |
public class MyException extends Exception {} | |
static testMethod void test() { | |
Test.StartTest(); | |
someMethod(); | |
Test.StopTest(); | |
} |