Skip to content

Instantly share code, notes, and snippets.

View Xenofex's full-sized avatar

Eli Wang Xenofex

View GitHub Profile
@Xenofex
Xenofex / base_uploader.rb
Created October 10, 2014 07:52
CarrierWave with backup url from the fog, quick and dirty. Useful for pulling production data to development, in case you have to pull all the UGC as well
# Copy the file from S3 to local public folder
def copy_to_local!(recursive=true)
public_folder = Rails.root.join("public")
path = self.path
if path.start_with?(public_folder.to_s)
local_path = path
path = path[(public_folder.to_s.length+1)..path.length]
else
local_path = public_folder.join(path)
2013-10-10 15:18:17:963 ityzDev[21063:907] [HTTP] PUT /Run/run_52552bbd55ddd, params: {
price = "23.11";
}, app state: {
"active_hail" = "hail_52552bb3cbf63";
"active_run" = "run_52552bbd55ddd";
"app_state" = 0;
"has_wifi" = 1;
"location_accurary" = "-2";
"location_distance" = 10;
synchronization = "sync_5256545980416";