start new:
tmux
start new with session name:
tmux new -s myname
# Monkey patch for CVE-2012-2660 and CVE-2012-2694 on Rails 2.3.14 | |
# put this file in your config/initializers directory | |
# comments/corrections: https://gist.github.com/2854095 | |
# Strip [nil] from parameters hash | |
# based on a pull request from @sebbacon | |
# https://github.com/rails/rails/pull/6580 | |
module ActionController | |
class Request < Rack::Request |
# Monkey patch for CVE-2012-2695 on Rails 2.3.14 | |
# put this file in your config/initializers directory | |
# comments/corrections: https://gist.github.com/2921706 | |
# Ruby on Rails SQL Injection | |
# based on a patch from @presidentbeef | |
# https://rubyonrails-security.googlegroups.com/attach/aee3413fb038bf56/2-3-sql-injection.patch?view=1&part=3 | |
module ActiveRecord | |
class Base |
# Monkey patch for CVE-2012-5664 on Rails 2.3.14 | |
# put this file in your config/initializers directory | |
# comments/corrections: https://gist.github.com/2921706 | |
# Ruby on Rails SQL Injection | |
# based on a patch from @tenderlove | |
# https://rubyonrails-security.googlegroups.com/attach/23daa048baf28b64/2-3-dynamic_finder_injection.patch?view=1&part=2 | |
module ActiveRecord | |
class Base |
$ ssh remote-host "epmd -names"
epmd: up and running on port 4369 with data:
name some_node at port 58769
Note the running on port
for epmd
itself and the port of the node you're interested in debugging. Reconnect to the remote host with these ports forwarded:
$ ssh -L 4369:localhost:4369 -L 58769:localhost:58769 remote-host
brew install apple-gcc42 openssl libyaml libffi | |
xcode-select --install | |
export CC=/usr/local/bin/gcc-4.2 | |
export CFLAGS='-g -O2' | |
export RUBY_CONFIGURE_OPTS=--with-openssl-dir=`brew --prefix openssl` | |
export CONFIGURE_OPTS=--with-openssl-dir=`brew --prefix openssl` | |
rbenv install 1.8.7-p375 |
AWSTemplateFormatVersion: '2010-09-09' | |
Description: Cognito Stack | |
Parameters: | |
AuthName: | |
Type: String | |
Description: Unique Auth Name for Cognito Resources | |
Resources: | |
# Creates a role that allows Cognito to send SNS messages | |
SNSRole: |