Install the OpenSSL on Debian based systems
sudo apt-get install openssl| class API::V1::BaseController < ApplicationController | |
| skip_before_filter :verify_authenticity_token | |
| before_filter :cors_preflight_check | |
| after_filter :cors_set_access_control_headers | |
| def cors_set_access_control_headers | |
| headers['Access-Control-Allow-Origin'] = '*' | |
| headers['Access-Control-Allow-Methods'] = 'POST, GET, PUT, DELETE, OPTIONS' |
| machine: | |
| node: | |
| version: 0.10.35 | |
| dependencies: | |
| pre: | |
| - sudo apt-get install -y libpoppler-glib-dev libpoppler-glib8 libcairo2-dev libcairo2 | |
| - sudo apt-get install -y libpq-dev | |
| database: | |
| override: | |
| - psql -c 'create database test;' -U postgres |
| // Playground - noun: a place where people can play | |
| import Foundation | |
| typealias Byte = UInt8 | |
| protocol GenericIntegerType: IntegerType { | |
| init(_ v: Int) | |
| init(_ v: UInt) | |
| init(_ v: Int8) |
| /* bling.js */ | |
| window.$ = document.querySelector.bind(document); | |
| window.$$ = document.querySelectorAll.bind(document); | |
| Node.prototype.on = window.on = function(name, fn) { this.addEventListener(name, fn); }; | |
| NodeList.prototype.__proto__ = Array.prototype; | |
| NodeList.prototype.on = function(name, fn) { this.forEach((elem) => elem.on(name, fn)); }; |
| Because I couldn't find these with a quick Google search on 28 April 2015: | |
| Usage: | |
| rails new APP_PATH [options] | |
| Options: | |
| -r, [--ruby=PATH] # Path to the Ruby binary of your choice | |
| # Default: /home/brian/.rvm/rubies/ruby-2.2.0/bin/ruby | |
| -m, [--template=TEMPLATE] # Path to some application template (can be a filesystem path or URL) | |
| [--skip-gemfile], [--no-skip-gemfile] # Don't create a Gemfile |
| #!/bin/sh -e | |
| # | |
| # POSIX shell script equivalent of: | |
| # <https://github.com/mplewis/shed> | |
| # | |
| # Usage: shed [SHELL_ARGUMENTS...] | |
| # | |
| # Executes stdin after you edit it. | |
| # If $EDITOR is unset, uses $PAGER. | |
| # If $PAGER is unset, uses cat(1). |
If you do, or want to, use AWS to deploy your apps, you will end up using AWS SES via SMTP when you're launching an app that sends out emails of any kind (user registrations, email notifications, etc). For example, I have used this configuration on various Ruby on Rails apps, however, it is just basic SMTP configurations and crosses over to any framework that supports SMTP sendmail.
There are two ways to go about this:
Luckily, you found this MD file and the NOT SO EASY WAY is suddenly copy-pasta... sudo yum....
A curated list of awesome gif tools and scripts : libraries, utilities, and short examples. For more awesomeness, check out awesome.