Skip to content

Instantly share code, notes, and snippets.

knife ssh -a ipaddress name:m223* -x remote "ls"
ERROR: JSON::ParserError: 387: unexpected token at '{"Asset Tag":"To Be Filled By O.E.M.","External Clock":"100 MHz","size":"4","Maximum Size":"3072 kB","Installed Size":"3072 kB","Flags":{"PSE (Page size extension)":null,"SSE (Streaming SIMD extensions)":null,"MSR (Model specific registers)":null,"PBE (Pending break enabled)":null,"TM (Thermal monitor supported)":null,"MCE (Machine check exception)":null,"FPU (Floating-point unit on-chip)":null,"PSE-36 (36-bit page size extension)":null,"MMX (MMX technology supported)":null,"SS (Self-snoop)":null,"MTRR (Memory type range registers)":null,"PAT (Page attribute table)":null,"DE (Debugging extension)":null,"APIC (On-chip APIC hardware supported)":null,"MCA (Machine check architecture)":null,"SSE2 (Streaming SIMD extensions 2)":null,"CMOV (Conditional move instruction supported)":null,"FXSR (FXSAVE and FXSTOR instructions supported)":null,"VME (Virtual mode extension)":null,"DS (Debug store)":null,"TSC (Time stamp
oem_strings
all_records
array_handle
0x002A
asset_tag
A1_AssetTagNum1
bank_locator
CHANNEL B-DIMM0
bus_address
0000:00:1b.0
dmi
base_board
all_records
0
Asset Tag
00000000000000000000000000000000
Chassis Handle
0x0003
Contained Object Handles
0
<%= form_for(@job, :class=>"form-horizontal") do |f| %>
<% if @job.errors.any? %>
<div id="error_explanation">
<h2><%= pluralize(@job.errors.count, "error") %> prohibited this job from being saved:</h2>
<ul>
<% @job.errors.full_messages.each do |msg| %>
<li><%= msg %></li>
<% end %>
</ul>
#!/bin/bash
git add --all
git commit -am $1
git push origin master
git push live master
cap deploy:update
cap deploy:migrate
cap deploy:cleanup -s keep_releases=1
cap deploy:restart
<%= form_for(resource, :as => resource_name, :url => registration_path(resource_name)) do |f| %>
<%= devise_error_messages! %>
<%= f.text_field :first_name, :class => "xlarge", :placeholder => "First Name" %>
<%= f.text_field :last_name, :class => "xlarge", :placeholder => "Last Name" %>
</br>
<%= f.email_field :email, :class => "xlarge", :placeholder => "Email*" %>
<%= f.text_field :phone_number, :class => "xlarge", :placeholder => "Phone Number*" %>
</br>
<%= f.text_field :street_address, :class => "xlarge", :placeholder => "Street" %>
<%= form_for(resource, :as => resource_name,:url => registration_path(resource_name),:html => {:multipart => true}) do |f| %>
<%= devise_error_messages! %>
<%= f.text_field :first_name, :class => "xlarge", :placeholder => "First Name" %>
<%= f.text_field :last_name, :class => "xlarge", :placeholder => "Last Name" %>
</br>
<%= f.email_field :email, :class => "xlarge", :placeholder => "Email*" %>
<%= f.text_field :phone_number, :class => "xlarge", :placeholder => "Phone Number*" %>
</br>
<%= f.text_field :street_address, :class => "xlarge", :placeholder => "Street" %>
ActionView::Template::Error (undefined method `first_name' for #<User:0x00000008ff51d8>):
2012-12-07T15:42:07+00:00 app[web.1]: 49: <%= f.text_field :first_name, :class => "xlarge", :placeholder => "First Name" %>
2012-12-07T15:42:07+00:00 app[web.1]: 46: <%= form_for(resource, :as => resource_name,:url => registration_path(resource_name),:html => {:multipart => true}) do |f| %>
2012-12-07T15:42:07+00:00 app[web.1]: 47: <%= devise_error_messages! %>
2012-12-07T15:42:07+00:00 app[web.1]: app/views/users/registrations/new.html.erb:49:in `block in _app_views_users_registrations_new_html_erb__3542012466051859277_76777520'
2012-12-07T15:42:07+00:00 app[web.1]: 48:
2012-12-07T15:42:07+00:00 app[web.1]: app/views/users/registrations/new.html.erb:46:in `_app_views_users_registrations_new_html_erb__3542012466051859277_76777520'
2012-12-07T15:42:07+00:00 app[web.1]:
2012-12-07T15:42:07+00:00 app[web.1]: 50: <%= f.text_field :last_name, :class => "xlarge", :placeholder => "Last Name" %
Hash
{"playlists"=>
[{"id"=>"1848",
"title"=>"Playlist test",
"client_id"=>"1403",
"date_start"=>"0",
"date_end"=>"0",
"time_start"=>"0",
"time_end"=>"0",
"assets"=>
# ASSET HASH STRUCTURE
# {"id"=>"1855",
# "title"=>"BBQMay2010.swf",
# "client_id"=>"1403",
# "path"=>"/sites/default/files/assets/1403/",
# "type"=>"swf",
# "modified"=>"20121128",
# "date_start"=>"0",
# "date_end"=>"0",
# "time_start"=>"0",