This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
"AWSTemplateFormatVersion" : "2010-09-09", | |
"Description" : "AWS CloudTrail API Activity Alarm Template for CloudWatch Logs", | |
"Parameters" : { | |
"LogGroupName" : { | |
"Type" : "String", | |
"Default" : "CloudTrail/DefaultLogGroup", | |
"Description" : "Enter CloudWatch Logs log group name. Default is CloudTrail/DefaultLogGroup" | |
}, | |
"Email" : { |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# -*- coding: utf-8 -*- | |
$:.unshift("/Library/RubyMotion/lib") | |
require 'motion/project/template/osx' | |
Motion::Project::App.setup do |app| | |
# Use `rake config' to see complete project settings. | |
app.name = 'MenubarApp' | |
app.info_plist['NSUIElement'] = 1 | |
end |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
events { | |
worker_connections 1024; | |
} | |
http { | |
include /etc/nginx/sites-enabled/*; | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
package main | |
import ( | |
"bytes" | |
"encoding/json" | |
"fmt" | |
"io/ioutil" | |
"math/rand" | |
"net/http" | |
"strconv" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
source "https://rubygems.org" | |
ruby "2.0.0" | |
gem "ProMotion", "~> 1.0.4" | |
gem "teacup" | |
gem 'formotion' | |
gem 'motion_data_wrapper' | |
gem "sugarcube", :require => 'sugarcube-all' |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Bringing machine 'default' up with 'digital_ocean' provider... | |
[default] Creating the droplet ... | |
[default] Waiting for the droplet to become active (>= 1 min) ... | |
[default] Making alterations to the sudoers file where necessary ... | |
[default] Creating user 'vagrant' and setting password ... | |
[default] Enabling sudo for user 'vagrant' ... | |
[default] Adding public key to authorized_keys ... | |
[default] Installing provisioner: chef-solo (>= 2 min) ... | |
[default] Droplet IP: 198.211.XXX.XXX ... | |
[default] Host IP: 192.168.1.10 ... |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/lib/vagrant-digitalocean/actions/create.rb:98:in `terminate': uninitialized constant VagrantPlugins::DigitalOcean::Actions::Create::ActionDispatch (NameError) | |
from /Users/rjsamson/.vagrant.d/gems/gems/vagrant-digitalocean-0.0.4/lib/vagrant-digitalocean/actions/create.rb:89:in `recover' | |
from /Applications/Vagrant/embedded/gems/gems/vagrant-1.1.0/lib/vagrant/action/warden.rb:66:in `block in recover' | |
from /Applications/Vagrant/embedded/gems/gems/vagrant-1.1.0/lib/vagrant/action/warden.rb:63:in `each' | |
from /Applications/Vagrant/embedded/gems/gems/vagrant-1.1.0/lib/vagrant/action/warden.rb:63:in `recover' | |
from /Applications/Vagrant/embedded/gems/gems/vagrant-1.1.0/lib/vagrant/action/warden.rb:52:in `rescue in call' | |
from /Applications/Vagrant/embedded/gems/gems/vagrant-1.1.0/lib/vagrant/action/warden.rb:28:in `call' | |
from /Applications/Vagrant/embedded/gems/gems/vagrant-1.1.0/lib/vagrant/action/builder.rb:109:in `call' | |
from /Applications/Vagrant/embedded/gems/gems/vagrant-1.1.0/lib/vagrant/action/runner.rb |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
str = "a utf-8 string (\u20AC) with utf-8 chars".force_encoding("utf-8") | |
str2 = "This string is #{str} but looks like ascii-only" | |
puts "str: #{str}" | |
puts "str.ascii_only?: #{str.ascii_only?}" # => false | |
puts "str2: #{str2}" | |
puts "str2 encoding: #{str2.encoding}" # => UTF-8 | |
puts "str2.ascii_only?: #{str2.ascii_only?}" # => true | |
puts "str2.dup.ascii_only?: #{str2.dup.ascii_only?}" | |
puts "<< broken encoding:" | |
str3 = "an ascii string with " |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
puts "Substring Range Test" | |
str = "utf-8 character (\u20AC) in a utf-8 string" | |
str2 = "normal ASCII-ONLY string" | |
puts "str: #{str}" | |
puts "str2: #{str2}" | |
puts "str[1...-1]: #{str[1...-1]}" # => "tf-8 character (€) in a utf-8 string" | |
puts "str2[1...-1]: #{str2[1...-1]}" # => "ormal ASCII-ONLY Strin" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
rbx-head --trace | |
rvm 1.16.15 (master) by Wayne E. Seguin <wayneeseguin@gmail.com>, Michal Papis <mpapis@gmail.com> [https://rvm.io/] | |
+__rvm_parse_args:639> [[ -n 4.3.11 ]] | |
+__rvm_parse_args:674> [[ -z reinstall ]] | |
+__rvm_parse_args:677> [[ error == reinstall || 0 -eq 1 || -n '' ]] | |
+__rvm_parse_args:16> [[ -n '' ]] | |
+__rvm_parse_args:682> : rvm_ruby_args:0:: | |
+__rvm_parse_args:684> [[ -n '' ]] |
NewerOlder