Skip to content

Instantly share code, notes, and snippets.

@adamalex
adamalex / generated.json
Created October 7, 2022 22:11
generated.json
This file has been truncated, but you can view the full file.
[
{
"_id": "6338bc0bbca176d453b15fa2",
"index": 0,
"guid": "add26865-3726-4556-bf1d-237ec445c8cc",
"isActive": false,
"balance": "$2,971.17",
"picture": "http://placehold.it/32x32",
"age": 23,
"eyeColor": "brown",
@adamalex
adamalex / index.html
Created April 18, 2013 11:38
Fuel UX wizard example
<!DOCTYPE html>
<html class="no-js fuelux">
<head>
<meta charset="utf-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
<title>E-Learning</title>
<link rel="stylesheet" href="https://fuelcdn.com/fuelux/2.3/css/fuelux.min.css">
<link rel="stylesheet" href="css/main.css">
</head>
<body>
@adamalex
adamalex / docker-strongloop.sh
Last active August 8, 2017 10:40
Single-command evaluation of StrongLoop Node using Docker
# PREREQUISITE
# Install Docker: http://www.docker.io/gettingstarted/
# SINGLE COMMAND STRONGLOOP NODE.JS (http://strongloop.com) EVALUATION
# This will log you in to an isolated lightweight virtual system (LXC)
# - Base Ubuntu 12.10 (Quantal Quetzal)
# - StrongLoop Node 1.1 GA
docker run -i -t adamalex/strongloop bash
@adamalex
adamalex / amazon_ecs.cat.rb
Created June 22, 2017 17:24
amazon_ecs.cat.rb
name 'Amazon ECS Cluster'
rs_ca_ver 20160622
short_description "![logo](https://dl.dropboxusercontent.com/u/2202802/ecs-logo.png)
Creates an Amazon ECS cluster"
long_description "### Description
#### Amazon ECS
@adamalex
adamalex / .ebextensions--eb.config
Created October 28, 2013 00:01
Config and CI script for automated Node.js 0.10.10 project deployment—including grunt—to Elastic Beanstalk
packages:
yum:
git: []
gcc: []
make: []
openssl-devel: []
commands:
00-add-home-variable:
command: sed -i 's/function error_exit/export HOME=\/root\n\nfunction error_exit/' /opt/elasticbeanstalk/hooks/appdeploy/pre/50npm.sh
container_commands:
@adamalex
adamalex / crash.log
Last active December 24, 2015 06:38
Packer crash output
2013/09/29 20:36:49 Packer Version: 0.3.8
2013/09/29 20:36:49 Packer Target OS/Arch: darwin amd64
2013/09/29 20:36:49 Detected home directory from env var: /Users/adam
2013/09/29 20:36:49 Attempting to open config file: /Users/adam/.packerconfig
2013/09/29 20:36:49 File doesn't exist, but doesn't need to. Ignoring.
2013/09/29 20:36:49 Packer config: &{PluginMinPort:0 PluginMaxPort:0 Builders:map[amazon-ebs:packer-builder-amazon-ebs amazon-chroot:packer-builder-amazon-chroot amazon-instance:packer-builder-amazon-instance digitalocean:packer-builder-digitalocean openstack:packer-builder-openstack virtualbox:packer-builder-virtualbox vmware:packer-builder-vmware] Commands:map[build:packer-command-build fix:packer-command-fix inspect:packer-command-inspect validate:packer-command-validate] PostProcessors:map[vagrant:packer-post-processor-vagrant] Provisioners:map[chef-solo:packer-provisioner-chef-solo file:packer-provisioner-file puppet-masterless:packer-provisioner-puppet-masterless shell:packer-provisioner-sh
@adamalex
adamalex / Procfile
Created July 29, 2013 01:02
Deploying to Stackato using Heroku's Node buildpack
web: node app.js
FROM ubuntu:quantal
MAINTAINER Adam Alexander <adamalex@gmail.com>
RUN apt-get update
RUN apt-get upgrade -y
RUN apt-get install -y wget
RUN wget -nv http://45ec19d3127bddec1c1d-e57051fde4dbc9469167f8c2a84830dc.r36.cf1.rackcdn.com/strongloop-node_1.1.0-1_amd64.deb
@adamalex
adamalex / ko-datagrid.js
Created June 7, 2013 00:24
Using Knockout to attach a Fuel UX datagrid to an element
// KO binding for attaching a Fuel UX datagrid to an element
ko.bindingHandlers.dataGrid = {
init: function (element, valueAccessor) {
$(element).datagrid({ dataSource: valueAccessor() });
}
};
// Usage:
//
// getGridDataSource should return an instance of a datasource
@adamalex
adamalex / index.html
Created April 17, 2013 20:50
automated test example
<!DOCTYPE html>
<html>
<head>
<title>automated test example</title>
<meta http-equiv="Content-Type" content="text/html;charset=utf-8">
<script src="https://cdnjs.cloudflare.com/ajax/libs/jquery/1.9.1/jquery.min.js"></script>
<script src="https://cdnjs.cloudflare.com/ajax/libs/underscore.js/1.4.4/underscore-min.js"></script>
<script src="https://cdnjs.cloudflare.com/ajax/libs/backbone.js/1.0.0/backbone-min.js"></script>
</head>
<body>