Skip to content

Instantly share code, notes, and snippets.

This file has been truncated, but you can view the full file.
-rw------- 1 root root 3.1M Oct 31 00:50 audio20231031-1196-14n3cw.mp3
-rw------- 1 root root 3.7M Oct 31 11:49 audio20231031-1196-18eiky.mp3
-rw------- 1 root root 4.2M Oct 31 00:51 audio20231031-1196-1azinq.mp3
-rw------- 1 root root 4.2M Oct 31 01:53 audio20231031-1196-1jkqd2.mp3
-rw------- 1 root root 3.0M Oct 31 00:51 audio20231031-1196-1s70ms.mp3
-rw------- 1 root root 2.9M Oct 31 01:20 audio20231031-1196-1y9gyj.mp3
-rw------- 1 root root 3.9M Oct 31 11:49 audio20231031-1196-25rwc8.mp3
-rw------- 1 root root 3.1M Oct 31 01:52 audio20231031-1196-2bza91.mp3
-rw------- 1 root root 4.2M Oct 31 01:17 audio20231031-1196-2itee5.mp3
### Keybase proof
I hereby claim:
* I am pelcasandra on github.
* I am pelcasandra (https://keybase.io/pelcasandra) on keybase.
* I have a public key ASCY738z33ktvD-K9nUUcDr_xR90iGchDMtgaqhaaAskzAo
To claim this, I am signing this object:
Ad Exists (0.6ms) SELECT 1 AS one FROM "ads" WHERE ("ads"."token" = '2_DMaX1UyMLA5wU361MC' AND "ads"."id" != 8764) LIMIT 1
Ad Exists (0.4ms) SELECT 1 AS one FROM "ads" WHERE ("ads"."token" = 'iFLu3iBfkKXhXAk1eLZ1' AND "ads"."id" != 8765) LIMIT 1
Ad Exists (0.3ms) SELECT 1 AS one FROM "ads" WHERE ("ads"."token" = 'sJd6fCM1dmM_ujgnWwny' AND "ads"."id" != 8766) LIMIT 1
Ad Exists (0.3ms) SELECT 1 AS one FROM "ads" WHERE ("ads"."token" = 'wgCq2yYJ0zXZYfvSPwUY' AND "ads"."id" != 8767) LIMIT 1
Ad Exists (0.6ms) SELECT 1 AS one FROM "ads" WHERE ("ads"."token" = '2wXDN98ryJnyYCHprPd_' AND "ads"."id" != 8768) LIMIT 1
Ad Exists (0.4ms) SELECT 1 AS one FROM "ads" WHERE ("ads"."token" = 'p44LqlGIaguOjH6VeyU4' AND "ads"."id" != 8769) LIMIT 1
Ad Exists (0.4ms) SELECT 1 AS one FROM "ads" WHERE ("ads"."token" = 'LgPFQXix1LczxsbwBbgi' AND "ads"."id" != 8770) LIMIT 1
Ad Exists (0.4ms) SELECT 1 AS one FROM "ads" WHERE ("ads"."token" = '92Q4towV5JjbPYf0nP' AND "ads"."id" != 8771) LIMIT 1
Command :: file -b --mime '/var/folders/wj/v9wrwtk97g7dk5f7dq2fqc3w0000gn/T/81218b71cefab7edd8c6104d02a0717420141221-15854-3yjd5x.jpg'
SQL (1.9ms) INSERT INTO "campaigns" ("brand_content_type", "brand_file_name", "brand_file_size", "brand_updated_at", "cap", "cpa_units", "created_at", "default_url", "description", "ends_at", "max_daily_spent_units", "preview_url", "remote_token", "scheduled", "strategy", "title", "token", "updated_at", "user_id") VALUES ($1, $2, $3, $4, $5, $6, $7, $8, $9, $10, $11, $12, $13, $14, $15, $16, $17, $18, $19) RETURNING "id" [["brand_content_type", "image/jpeg"], ["brand_file_name", "E4k.jpg"], ["brand_file_size", 3555], ["brand_updated_at", "2014-12-21 17:19:39.749057"], ["cap", 200], ["cpa_units", 45000], ["created_at", "2014-12-21 17:24:22.812247"], ["default_url", "http://ads.iconpeak.com/aff_c?offer_id=3043&aff_id=1598&source={report_id}"], ["description", "Users construct fortresses to last for eternity, capture outposts and establish a flourishing economy.\r\n\r\nSign U
"."token" = 'NltNKFgvPDLblVI9Wrm' AND "ads"."id" != 6438) LIMIT 1
Ad Exists (0.3ms) SELECT 1 AS one FROM "ads" WHERE ("ads"."token" = '35_tEXBbA7TA7q8KD2o' AND "ads"."id" != 6439) LIMIT 1
Ad Exists (0.3ms) SELECT 1 AS one FROM "ads" WHERE ("ads"."token" = '9pS4kVgSv7ADQeiQU7n' AND "ads"."id" != 6440) LIMIT 1
Ad Exists (0.3ms) SELECT 1 AS one FROM "ads" WHERE ("ads"."token" = 'SGYYgNzAHkHHhGe8sw9P' AND "ads"."id" != 6441) LIMIT 1
Command :: file -b --mime '/var/folders/wj/v9wrwtk97g7dk5f7dq2fqc3w0000gn/T/81218b71cefab7edd8c6104d02a0717420141221-15854-174mazv.jpg'
SQL (1.3ms) INSERT INTO "campaigns" ("brand_content_type", "brand_file_name", "brand_file_size", "brand_updated_at", "cap", "cpa_units", "created_at", "default_url", "description", "ends_at", "max_daily_spent_units", "preview_url", "remote_token", "scheduled", "strategy", "title", "token", "updated_at", "user_id") VALUES ($1, $2, $3, $4, $5, $6, $7, $8, $9, $10, $11, $12, $13, $14, $15, $16, $17, $18, $19) RETURNING "id" [["brand_co
Ad Exists (0.3ms) SELECT 1 AS one FROM "ads" WHERE ("ads"."token" = '4ZtEljXbnF1iH4n5asJ' AND "ads"."id" != 2641) LIMIT 1
Command :: file -b --mime '/var/folders/wj/v9wrwtk97g7dk5f7dq2fqc3w0000gn/T/81218b71cefab7edd8c6104d02a0717420141220-67591-1fpsy0e.jpg'
SQL (3.3ms) INSERT INTO "campaigns" ("brand_content_type", "brand_file_name", "brand_file_size", "brand_updated_at", "cap", "cpa_units", "created_at", "default_url", "description", "ends_at", "max_daily_spent_units", "preview_url", "remote_token", "scheduled", "strategy", "title", "token", "updated_at", "user_id") VALUES ($1, $2, $3, $4, $5, $6, $7, $8, $9, $10, $11, $12, $13, $14, $15, $16, $17, $18, $19) RETURNING "id" [["brand_content_type", "image/jpeg"], ["brand_file_name", "E4k.jpg"], ["brand_file_size", 3555], ["brand_updated_at", "2014-12-20 23:19:13.633721"], ["cap", 100], ["cpa_units", 130000], ["created_at", "2014-12-20 23:25:37.730464"], ["default_url", "http://ads.iconpeak.com/aff_c?offer_id=3041&aff_id=1598&source={report_id}"], ["des
[1] pry(main)> Remote.upload_new_ads
User Load (2.2ms) SELECT "users".* FROM "users" WHERE "users"."deleted_at" IS NULL AND "users"."email" = 'offers@audify.io' LIMIT 1
(1.8ms) SELECT COUNT(*) FROM "campaigns" WHERE "campaigns"."deleted_at" IS NULL AND "campaigns"."remote_token" = 'iconpeak:offer:id:3041' AND "campaigns"."user_id" = 9
(0.6ms) SELECT COUNT(*) FROM "campaigns" WHERE "campaigns"."deleted_at" IS NULL AND "campaigns"."remote_token" = 'iconpeak:offer:id:3043' AND "campaigns"."user_id" = 9
(0.4ms) SELECT COUNT(*) FROM "campaigns" WHERE "campaigns"."deleted_at" IS NULL AND "campaigns"."remote_token" = 'iconpeak:offer:id:3045' AND "campaigns"."user_id" = 9
(0.4ms) SELECT COUNT(*) FROM "campaigns" WHERE "campaigns"."deleted_at" IS NULL AND "campaigns"."remote_token" = 'iconpeak:offer:id:3789' AND "campaigns"."user_id" = 9
(0.4ms) SELECT COUNT(*) FROM "campaigns" WHERE "campaigns"."deleted_at" IS NULL AND "campaigns"."remote_token" = 'iconpeak:offer:id:456' AND "campaigns".
This file has been truncated, but you can view the full file.
`
Exception `LoadError' at /usr/local/rvm/rubies/ruby-2.0.0-p247/lib/ruby/site_ruby/2.0.0/rubygems.rb:1082 - cannot load such file -- rubygems/defaults/operating_system
Exception `LoadError' at /usr/local/rvm/rubies/ruby-2.0.0-p247/lib/ruby/site_ruby/2.0.0/rubygems.rb:1091 - cannot load such file -- rubygems/defaults/ruby
Exception `Errno::EEXIST' at /usr/local/rvm/rubies/ruby-2.0.0-p247/lib/ruby/2.0.0/fileutils.rb:245 - File exists - /var/www/site_a/shared/bundle/ruby/2.0.0
/usr/local/rvm/rubies/ruby-2.0.0-p247/lib/ruby/2.0.0/openssl/ssl.rb:101: warning: assigned but unused variable - id
Exception `Gem::GemNotFoundException' at /usr/local/rvm/rubies/ruby-2.0.0-p247/lib/ruby/site_ruby/2.0.0/rubygems.rb:264 - can't find gem bundler (["1.3.5"])
Puma starting in single mode...
* Version 2.5.1, codename: Astronaut Shoelaces
* Min threads: 0, max threads: 16
<nav>
<ul>
<li class="active">About</li>
# In updates.html.erb
<%= render @attachments %>
<%= will_paginate(@attachments) %>
<%= pageless(@attachments.total_pages, attachments_path) %>
# In application_helper.rb
def pageless(total_pages, url=nil, container=nil)
opts = {