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
/** | |
* Accept credit cards by swiping in NetSuite using USB credit card reader | |
* (http://www.ebay.com.au/sch/i.html?_nkw=Magnetic+Stripe+Swiper) | |
* | |
* To deploy: | |
* | |
* 1) Upload this file to File Cabinet | |
* 2) In your custom Sales Order form, add the script file (no need to associate with any events) | |
* 3) Add an 'Inline HTML' custom field to the form with default value: | |
* <a href="javascript:swipe_cc();">Swipe Credit Card</a> |
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/perl | |
# Backups and compresses a SQL database, and uploads to Google Drive | |
# Make sure ~/.my.cnf is set with mySQL login credentials | |
# Follow instructions at https://developers.google.com/drive/web/auth/web-server to generate a client id and secret | |
# Use bash script at https://github.com/soulseekah/bash-utils/blob/master/google-oauth2/google-oauth2.sh to create refresh token | |
# Configuration Options | |
my $HOST = ''; # mySQL server host |
NewerOlder