Skip to content

Instantly share code, notes, and snippets.

Avatar

Michel Boudreau mboudreau

View GitHub Profile
@mboudreau
mboudreau / bashicorp.sh
Last active May 24, 2018
Bashicorp: Install Hashicorp products using Bash
View bashicorp.sh
#!/usr/bin/env bash
BOLD=`tput bold`
RED=`tput setaf 1`
GREEN=`tput setaf 2`
YELLOW=`tput setaf 3`
RESET=`tput sgr0`
function show_help {
echo "${BOLD}Hashicorp Application Install Script${RESET} - please run in sudo"
@mboudreau
mboudreau / README.markdown
Created Jun 19, 2012 — forked from rn0/README.markdown
Bootstrap's Typeahead plugin extended (allowing for AJAX functionality) among other things
View README.markdown

This is an extension to Bootstrap Typeahead that adds minimal but powerful extensions.

For example, process typeahead list asynchronously and return objects

  # This example does an AJAX lookup and is in CoffeeScript
  $('.typeahead').typeahead(
    # source can be a function
    source: (typeahead, query) ->
      # this function receives the typeahead object and the query string
@mboudreau
mboudreau / TieredDynamoDBMapper
Created Jun 5, 2012
Custom DynamoDBMapper for Tiered Deployment
View TieredDynamoDBMapper
package com.michelboudreau.db;
import com.amazonaws.services.dynamodb.AmazonDynamoDB;
import com.amazonaws.services.dynamodb.AmazonDynamoDBClient;
import com.amazonaws.services.dynamodb.datamodeling.*;
import com.amazonaws.services.dynamodb.model.BatchGetItemRequest;
import com.amazonaws.services.dynamodb.model.BatchGetItemResult;
import com.amazonaws.services.dynamodb.model.KeysAndAttributes;
import org.springframework.beans.factory.annotation.Autowired;
View gist:2836991
// Enable Strict Mode and remove errors relating to global vars
/*global $:false, jQuery:false, google:false, _gaq:false, _:false */
"use strict";
goog.provide('com.tivity.Main');
goog.require('goog.ui.Component');
goog.require('goog.dom');
// Composites
View gist:2588780
this.server = new Server(port);
ServletContextHandler context = new ServletContextHandler(this.server, "/", ServletContextHandler.SESSIONS);
context.addServlet(new ServletHolder(new DispatcherServlet()), "/*");