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 / 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
web:
image: tutum/hello-world:latest
ports:
- "80:80"
@adamalex
adamalex / keybase.md
Created October 4, 2014 21:49
keybase.md

Keybase proof

I hereby claim:

  • I am adamalex on github.
  • I am adamalex (https://keybase.io/adamalex) on keybase.
  • I have a public key whose fingerprint is AA1C 23AB BEE8 36B5 9EF6 0002 D6A4 3CFA 39C0 4BA8

To claim this, I am signing this object:

@adamalex
adamalex / cloud_config.yml
Created August 4, 2014 23:25
Secure CoreOS config for Rackspace
#cloud-config
coreos:
etcd:
# generate a new token for each unique cluster from https://discovery.etcd.io/new
discovery: https://discovery.etcd.io/xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
update:
# disable this for now until it is supported when using private ip config
reboot-strategy: off
units:
-- Logs begin at Wed 2014-07-02 01:34:27 UTC, end at Wed 2014-07-02 01:51:41 UTC. --
Jul 02 01:34:42 corecluster systemd[1]: Starting fleet...
Jul 02 01:34:42 corecluster systemd[1]: Started fleet.
Jul 02 01:34:42 corecluster fleet[3542]: I0702 01:34:42.099837 03542 fleet.go:143] No provided or default config file found - proceeding without
Jul 02 01:34:42 corecluster fleet[3542]: I0702 01:34:42.107270 03542 agent.go:80] Initializing Agent
Jul 02 01:36:17 corecluster fleet[3542]: fatal error: runtime: cannot allocate memory
Jul 02 01:36:17 corecluster fleet[3542]: goroutine 1 [running]:
Jul 02 01:36:17 corecluster fleet[3542]: runtime.throw(0xb2f347)
Jul 02 01:36:17 corecluster fleet[3542]: /usr/lib/go/src/pkg/runtime/panic.c:464 +0x69 fp=0x7fcfb6479030
Jul 02 01:36:17 corecluster fleet[3542]: runtime.persistentalloc(0x4000, 0x8, 0xb3d938)
@adamalex
adamalex / CoreOScron.md
Last active August 29, 2015 14:03
CoreOS units for cron-like behavior
  1. fleetctl load *
  2. fleetctl start *.timer
@adamalex
adamalex / index.html
Created March 19, 2014 22:34
Simple Map Location
<!DOCTYPE html>
<html>
<head>
<meta name="viewport" content="initial-scale=1.0, user-scalable=no">
<meta http-equiv="content-type" content="text/html; charset=utf-8">
<script type="text/javascript" src="http://maps.google.com/maps/api/js?sensor=true"></script>
</head>
<body>
<div id="content" style="height: 450px"></div>
<script type="text/javascript">
@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