This file contains hidden or 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
unset $(env | awk -F= '{print $1}' | grep -E -i 'http.*proxy' | xargs) |
This file contains hidden or 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
find . -name "*.sh" -exec chmod +x {} \; |
This file contains hidden or 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
find . -name "*.sh" -exec sed -i -e 's/\r$//' {} \; |
This file contains hidden or 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
netstat -lpnt | grep ssh |
This file contains hidden or 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
# ... | |
RSPEC_ROOT = File.dirname __FILE__ |
This file contains hidden or 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
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 |
This file contains hidden or 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
@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 |
This file contains hidden or 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
$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 |
This file contains hidden or 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
module CreateClassMethodsUponInclude | |
def self.included(base) | |
# does what we want | |
end | |
end | |
module MyModule | |
include CreateClassMethodsUponInclude | |
# ... |
This file contains hidden or 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
ActiveRecord::ConnectionNotEstablished: No connection pool with 'primary' found. | |
-e:1:in `load' | |
-e:1:in `<main>' |
OlderNewer