Upload ns-aws-s3.js to Netsuite Files at /SuiteScripts/lib/ns-aws-s3
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
| # Use the official Ubuntu 20.04 image as the base | |
| FROM ubuntu:20.04 | |
| # Set environment variables to avoid interactive installation | |
| ENV DEBIAN_FRONTEND=noninteractive | |
| # Update package list and install Squid | |
| RUN apt-get update && \ | |
| apt-get install -y squid |
Thank you everybody, Your comments makes it better
sh -c "$(curl -fsSL https://raw.github.com/ohmyzsh/ohmyzsh/master/tools/install.sh)"
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
| curl -I -X OPTIONS \ | |
| -H "Origin: http://EXAMPLE.COM" \ | |
| -H 'Access-Control-Request-Method: GET' \ | |
| http://EXAMPLE.COM/SOMETHING 2>&1 | grep 'Access-Control-Allow-Origin' |
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
| // Author <[email protected]> | |
| function isUserInterfaceContext() { | |
| var context = nlapiGetContext(); | |
| var executionContext = context.getExecutionContext(); | |
| return executionContext == 'userinterface'; | |
| } | |
| function startsWith(str, searchString) { |
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
| diff --git a/ext/openssl/ossl_ssl.c b/ext/openssl/ossl_ssl.c | |
| --- a/ext/openssl/ossl_ssl.c | |
| +++ b/ext/openssl/ossl_ssl.c | |
| @@ -107,6 +107,18 @@ | |
| OSSL_SSL_METHOD_ENTRY(TLSv1), | |
| OSSL_SSL_METHOD_ENTRY(TLSv1_server), | |
| OSSL_SSL_METHOD_ENTRY(TLSv1_client), | |
| +#if defined(HAVE_TLSV1_2_METHOD) && defined(HAVE_TLSV1_2_SERVER_METHOD) && \ | |
| + defined(HAVE_TLSV1_2_CLIENT_METHOD) | |
| + OSSL_SSL_METHOD_ENTRY(TLSv1_2), |
| Country | ISO 3166 | Region |
|---|---|---|
| Afghanistan | AF | EMEA |
| Åland Islands | AX | EMEA |
| Albania | AL | EMEA |
| Algeria | DZ | EMEA |
| American Samoa | AS | APAC |
| Andorra | AD | EMEA |
| Angola | AO | EMEA |
| Anguilla | AI | AMER |
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
| --- a/ext/openssl/ossl_ssl.c | |
| +++ b/ext/openssl/ossl_ssl.c | |
| @@ -107,6 +107,18 @@ | |
| OSSL_SSL_METHOD_ENTRY(TLSv1), | |
| OSSL_SSL_METHOD_ENTRY(TLSv1_server), | |
| OSSL_SSL_METHOD_ENTRY(TLSv1_client), | |
| +#if defined(HAVE_TLSV1_2_METHOD) && defined(HAVE_TLSV1_2_SERVER_METHOD) && \ | |
| + defined(HAVE_TLSV1_2_CLIENT_METHOD) | |
| + OSSL_SSL_METHOD_ENTRY(TLSv1_2), | |
| + OSSL_SSL_METHOD_ENTRY(TLSv1_2_server), |
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
| // create an IAM Lambda role with access to dynamodb | |
| // Launch Lambda in the same region as your dynamodb region | |
| // (here: us-east-1) | |
| // dynamodb table with hash key = user and range key = datetime | |
| console.log('Loading event'); | |
| var AWS = require('aws-sdk'); | |
| var dynamodb = new AWS.DynamoDB({apiVersion: '2012-08-10'}); | |
| exports.handler = function(event, context) { |
NewerOlder
