Skip to content

Instantly share code, notes, and snippets.

@epowers
epowers / gist:7938176
Created December 13, 2013 00:35
aws-sdk-js github issue "s3 + ec2 + firefox multiple callbacks"
<!DOCTYPE html>
<html>
<head>
<title>Test AWS SDK JS for Browser S3 and EC2</title>
</head>
<body>
<label for="access">AWS Access Key ID</label>
<textarea id="access"></textarea>
<label for="secret">Secret Access Key</label>
<textarea id="secret"></textarea>
@epowers
epowers / hello
Last active January 15, 2016 13:14
hello is a self-executing shell script header for node.js; starts as a unix shell script (bash, etc.), checks for node or installs it, runs itself in node, checks for npm or installs it, installs dependencies (i.e. async), then prints a nice hello to standard output and exits.
#!/bin/sh
dummy=0<<0000
/**
* hello is a self-executing node shell script header.
*
* hello starts as a unix shell script (bash, etc.),
* checks for node or installs it, runs itself in node,
* checks for npm or installs it, installs dependencies,
* then prints a nice hello to standard output and exits.