Skip to content

Instantly share code, notes, and snippets.

View aloysius-lim's full-sized avatar

Aloysius Lim aloysius-lim

View GitHub Profile
@aloysius-lim
aloysius-lim / spot-request.py
Last active August 31, 2023 21:52
AWS EC2 Spot Requests with Auto Tagging using Boto
import argparse
import json
import time
import boto.ec2
# Set up argument parser
parser = argparse.ArgumentParser(
description='Request AWS EC2 spot instance and tag instance and volumes.',
@aloysius-lim
aloysius-lim / app.js
Last active December 11, 2023 06:51
Ember.js CRUD with Validation (ember-easyForm, ember-validations and Bootstrap)
window.App = Ember.Application.create();
App.ApplicationAdapter = DS.FixtureAdapter.extend({
namespace: 'ember-crud'
});
Ember.EasyForm.Config.registerWrapper('bootstrap', {
formClass: '',
fieldErrorClass: 'has-error',
inputClass: 'form-group',