Install tcpkill
yum -y install dsniff --enablerepo=epel
View connections
netstat -tnpa | grep ESTABLISHED.*sshd.
Block with ip tables
iptables -A INPUT -s IP-ADDRESS -j DROP
Kill connection
Install tcpkill
yum -y install dsniff --enablerepo=epel
View connections
netstat -tnpa | grep ESTABLISHED.*sshd.
Block with ip tables
iptables -A INPUT -s IP-ADDRESS -j DROP
Kill connection
my_hash = {}
@objects.each { |obj| my_hash[obj.id] = obj }
my_array.collect{ |id| my_hash[id] }
i = 1000
i.toExponential();
// 1e+3
CarrierWave.configure do |config| | |
config.asset_host = proc do |file| | |
'http://www.domain.com' | |
end | |
end |