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
const AWS = require('aws-sdk') | |
const s3 = new AWS.S3() | |
const BUCKET_NAME = 'MyBucket' | |
async function main() { | |
try { | |
const data = await s3.headBucket({ Bucket: BUCKET_NAME }).promise() | |
return `Bucket "${BUCKET_NAME}" exists` |
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
<!DOCTYPE html> | |
<html lang="en"> | |
<head> | |
<meta charset="utf-8"> | |
<meta http-equiv="x-ua-compatible" content="ie=edge"> | |
<meta name="viewport" content="width=device-width,initial-scale=1"> | |
<title></title> | |
<!-- <meta name="robots" content="noindex,nofollow"> --> | |
<meta name="description" content=""> | |
<meta name="theme-color" content="#fff"> |
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
/*************************** | |
NOT MAINTAINED! from ~2015 | |
****************************/ | |
// photoshop script to resize images proportionally to fit inside a 1024px box i.e. longest side/edge will equal 1024px | |
// useful when scaling down many large photos for web use, simply toss in a batch action | |
var activeDoc = app.activeDocument | |
var docWidth = activeDoc.width | |
var docHeight = activeDoc.height |
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
/*************************** | |
NOT MAINTAINED! from ~2014 | |
****************************/ | |
// cs4+ script for resizing objects proportionally to fit inside artboard | |
// based on: https://forums.adobe.com/message/4164590 | |
// usage: create a new document with desired artboard size, paste object, select it, run this script | |
// bugs: centering does not work after changing artboard size | |
var activeDoc = app.activeDocument |
NewerOlder