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
/opt/nginx/logs/*.log { | |
daily | |
missingok | |
rotate 52 | |
compress | |
delaycompress | |
notifempty | |
create 640 root adm | |
sharedscripts | |
postrotate |
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
Net::SSH.start(name, 'user') do |session| | |
session.exec!('file.rb') | |
end | |
file.rb | |
----------------- | |
module M1 | |
module M2 | |
class Sport |
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
1. Write a command line program that takes an input string, and returns which | |
character is consecutively repeated the most times. If multiple characters | |
repeat the same number of time, return all those characters. | |
For ex: "aaddddffffaa" will return 'f, d' | |
For ex: "cat dog ___" will return '_' | |
SOLUTION : | |
user_input = gets.chomp |
NewerOlder