This file contains 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
[root@test ]# tftp foreman | |
tftp> get pxelinux.0 | |
tftp> quit | |
[root@test ]# ls | grep pxelinux.0 | |
pxelinux.0 |
This file contains 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
irb(main):049:0> a = 0 | |
=> 0 | |
irb(main):050:0> FactValue.where(:fact_name_id => fact_name_id).includes(:fact_name).map do |fact| | |
irb(main):051:1* a += 1 | |
irb(main):052:1> puts fact.value | |
irb(main):053:1> end | |
irb(main):054:0> a | |
=> 6391 | |
irb(main):061:0> FactValue.group(:fact_name_id, :value).where(:fact_name_id => fact_name_id).includes(:fact_name).map do |fact| | |
irb(main):062:1* a += 1 |
This file contains 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
<% list = @hosts.nil? ? @trend : @hosts %> | |
<% list.values.includes(:trendable).in_groups(4, false) do |group| %> | |
<div class="span3"> | |
<td> | |
<% group.each do |host| -%> | |
<ul class="base"> | |
<li> | |
<% opts = host.name? ? host.name : host.fact_value %> | |
<%= link_to(opts, host_path(:id => opts), :title => "Show Host") %> | |
</li> |
NewerOlder