Skip to content

Instantly share code, notes, and snippets.

kheast / postmanNetSuiteTBA.js
Created Aug 21, 2019 — forked from michoelchaikin/postmanNetSuiteTBA.js
Postman pre-request script to generate TBA variables for NetSuite Web Services
View postmanNetSuiteTBA.js
1. Define a NetSuite environment in Postman (
with the following keys set: account, consumerKey, consumerSecret, tokenId, tokenSecret
2. Add this script to your "Pre Request Script" in Postman (
3. Add the Token Passport in your request with variable placeholders
kheast /
Last active Apr 12, 2018
Python script to install SSL certificate from Let's Encrypt into Cpanel for a single domain.
#!/usr/bin/env python2.7
'''This script will install an SSL certificate into Cpanel
for a single domain. In my case, the certificate is from
Let's Encrypt via ''. The script expects the certificate
to be stored in the manner described at
This script requires a single argument: the domain name.
kheast / process_fdgg
Created Feb 9, 2017
bash script to submit credit card transaction to First Data Global Gateway
View process_fdgg
# Code to submit a credit card transaction to First Data Global
# Gateway for processing. Shows the bare minimum necessary to process
# a transaction. Handy to verify validity of credentials and XML.
# Primarily intended to process transactions against FDGG test
# endpoint, but it will happily process live transactions against
# the FDGG secure endpoint, charging a real credit card for the
# specified amount.
kheast /
Created Feb 8, 2017
How to get boto3.resource to use a profile from credentials file
# To get boto3.resource to use a profile name, one must first
# setup a default session. The credentials provided during the
# session setup will be subsequently used by resource().
# See:
self.ec2 = boto3.resource('ec2', region_name=self.dpkg.region_name)
filters = [{'Name': 'instance-state-name', 'Values': ['running']}]
for inst in self.ec2.instances.filter(Filters=filters):