Skip to content

Instantly share code, notes, and snippets.

# These are things that make sense for any Ruby application
# Install git in order to be able to bundle gems from git
packages:
yum:
git: []
openssl-devel: []
@gssbzn
gssbzn / awsdemo.cfg.yml
Last active March 27, 2018 11:09
Configuration to create an elastic beanstalk rails app
EnvironmentConfigurationMetadata:
DateCreated: '1515773464000'
DateModified: '1515773464000'
Platform:
PlatformArn: arn:aws:elasticbeanstalk:us-east-1::platform/Puma with Ruby 2.5 running on 64bit Amazon Linux/2.7.1
OptionSettings:
aws:elasticbeanstalk:command:
BatchSize: '30'
BatchSizeType: Percentage
aws:elasticbeanstalk:application:environment:
@gssbzn
gssbzn / yarm.config
Last active October 30, 2018 18:57
Elastic Beanstalk Rails+Webpacker extension
# Copyright 2018 SwiftComply.com
commands:
01_node_install:
test: "[ `node --version` != 'v8.10.0' ]"
command: "curl --silent --location https://rpm.nodesource.com/setup_8.x | sudo bash -"
02_yarn_repo:
test: "[ ! -f /etc/yum.repos.d/yarn.repo ]"
command: "curl --silent --location https://dl.yarnpkg.com/rpm/yarn.repo | sudo tee /etc/yum.repos.d/yarn.repo"
03_yarn_install:
test: "[ ! -x /usr/bin/yarn ]"
#include <stdio.h>
int main(){
printf("hello world");
return 0;
}
@gssbzn
gssbzn / crashie.html
Created October 30, 2010 19:00
And HMTL code that can crash IE
<html><head>
<style type="text/css">
#a {
margin:0 10px 10px;
}
#b {
width:100%;
}