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
sudo -s launchctl load -w /System/Library/LaunchDaemons/ftp.plist | |
sudo -s launchctl unload -w /System/Library/LaunchDaemons/ftp.plist |
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
Can't install RMagick 2.12.2. Can't find the ImageMagick library or one of the dependent libraries. Check the mkmf.log file for more detailed information. | |
*** extconf.rb failed *** | |
Could not create Makefile due to some reason, probably lack of | |
necessary libraries and/or headers. Check the mkmf.log file for more | |
details. You may need configuration options. | |
Provided configuration options: | |
--with-opt-dir | |
--without-opt-dir |
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
# Делает очень важные вещи | |
# @param parameter [String] важная строчка | |
# @note Комментарий (вызывает при нажатии на...) | |
# @example | |
# method('str') | |
# @return [Boolean] удалось ли сделать важные вещи | |
# @see ClassRef | |
def method | |
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
class SinatraApp < Sinatra::BASE | |
get '/send' do | |
halt 500, 'Wrong parameters' if params['url'].nil? or params['url'].empty? | |
RequestSender.send(params['url']) | |
'OK' | |
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
h = {} | |
"url=http://ya.ru¶m=12345".split('&').each do |pair| | |
k,v = pair.split('=') | |
h[k] = v | |
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
{:y => 20}.map{|k, v| "#{k} = #{v}"}.join(',')+", x = 10" |
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
class Original | |
def self.some_method | |
# something original... | |
end | |
end | |
module Override | |
def self.included base | |
base.instance_eval do | |
def some_method |