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
import click | |
import sqlite_utils | |
import json | |
import logging | |
SERVICE = "openai" | |
PREFIX = "" | |
logger = logging.getLogger(__name__) |
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
tell application "Safari" | |
activate | |
open location "https://twitter.com/logout" | |
end tell | |
tell application "System Events" | |
tell process "Safari" | |
delay 0.5 | |
click button "Log out" of group 1 of group 1 of group 1 of UI element 1 of scroll area 1 of group 1 of group 1 of tab group 1 of splitter group 1 of window 1 | |
end tell |
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
# make sure you execute this *after* asdf or other version managers are loaded | |
if (( $+commands[pack] )); then | |
source "$(pack completion --shell zsh)" | |
fi |
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
# make sure you execute this *after* asdf or other version managers are loaded | |
if (( $+commands[op] )); then | |
eval "$(op completion zsh)" | |
compdef _op op | |
# load plugins configuration | |
if [[ -f ~/.config/op/plugins.sh ]]; then | |
source ~/.config/op/plugins.sh | |
fi | |
fi |
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
# make sure you execute this *after* asdf or other version managers are loaded | |
if (( $+commands[orbctl] )); then | |
eval "$(orbctl completion zsh)" | |
compdef _orb orbctl | |
compdef _orb orb | |
fi |
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
/* | |
Author: <mike@suitesync.io> | |
Description: When is invoice is created or edited, any unapplied payments on the customer | |
are auto-applied to the invoice. | |
Link: https://gist.github.com/iloveitaly/a35d460b0fb744a290dce3db95873e41 | |
Installation: | |
1. https://system.sandbox.netsuite.com/app/common/scripting/uploadScriptFile.nl | |
2. User Event | |
3. Name: Auto-apply Unapplied Customer Payments |
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
# make sure you execute this *after* asdf or other version managers are loaded | |
if (( $+commands[github-copilot-cli] )); then | |
eval "$(github-copilot-cli alias -- "$0")" | |
fi |
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
# Mike Bianco <mike@suitesync.io> | |
# Description: Script to link Stripe customers to NetSuite customers using email as the primary key | |
# Link: https://gist.github.com/iloveitaly/3702091fbc22ae464a84436ea4ee3ff6 | |
# Usage: | |
# | |
# Requires the following environment variables: | |
# | |
# STRIPE_KEY |
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
<?php | |
class Mailchimp_Core { | |
var $version = "1.3"; | |
var $errorMessage; | |
var $errorCode; | |
/** | |
* Cache the information on the API location on the server | |
*/ |
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
// Author <mike@suitesync.io> | |
// ensure that an entity ID is actually a customer ID | |
// http://blog.prolecto.com/2016/02/12/how-to-distinguish-a-netsuite-entity-as-a-customer-vs-a-project/ | |
function retrieveCustomerId(entityId) { | |
var isAdvancedJobs = nlapiGetContext().getFeature('ADVANCEDJOBS'); | |
var customerId = entityId; | |
if(!isAdvancedJobs) { |