Rakefile:
code = <<EOF
begin
sleep
rescue Exception => e
gets
end
EOF
unset $(env | awk -F= '{print $1}' | grep -E -i 'http.*proxy' | xargs) |
find . -name "*.sh" -exec chmod +x {} \; |
netstat -lpnt | grep ssh |
# ... | |
RSPEC_ROOT = File.dirname __FILE__ |
relative_entry_point = 'lib/...' | |
desc "Check if source can be required locally" | |
task :require do | |
sh "ruby -e \"require '#{File.dirname __FILE__}/#{relative_entry_point}'\"" | |
end |
find . -name "*.sh" -exec sed -i -e 's/\r$//' {} \; |
@aggregator # what to yield | |
@current_nesting_level # when to yield | |
@parser.start_object do | |
@current_nesting_level += 1 | |
end | |
@parser.end_object do | |
if yield_object?(yield_nesting_level) | |
yield @aggregator[@current_nesting_level].clone |
$TARGET_PORT= | |
$TARGET_IP= | |
$TARGET_USER= | |
# SSH tunnel to target machine | |
ssh -f -N -L $TARGET_PORT:localhost:22 $TARGET_USER@$TARGET_IP | |
# SSH tunnel from target machine (reverse tunnel) | |
ssh -f -N -R $TARGET_PORT:localhost:22 $TARGET_USER@$TARGET_IP |
ActiveRecord::ConnectionNotEstablished: No connection pool with 'primary' found. | |
-e:1:in `load' | |
-e:1:in `<main>' |
Rakefile:
code = <<EOF
begin
sleep
rescue Exception => e
gets
end
EOF