This file contains hidden or 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@app1:~# apt-get update | |
Get:1 http://ubuntu.archive.com utopic InRelease | |
Get:2 http://ubuntu.archive.com utopic-updates InRelease | |
100% [1 InRelease gpgv 1,559 B] [Connecting to security.ubuntu.com (91.189.92.201)]Splitting up /var/lib/apt/lists/partial/ubuntu.archive.com_uIgn http://ubuntu.archive.com utopic InRelease | |
E: GPG error: http://ubuntu.archive.com utopic InRelease: Clearsigned file isn't valid, got 'NODATA' (does the network require authentication? |
This file contains hidden or 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
deb http://mirrors.digitalocean.com/ubuntu utopic main | |
deb-src http://mirrors.digitalocean.com/ubuntu utopic main | |
deb http://mirrors.digitalocean.com/ubuntu utopic-updates main | |
deb-src http://mirrors.digitalocean.com/ubuntu utopic-updates main | |
deb http://mirrors.digitalocean.com/ubuntu utopic universe | |
deb-src http://mirrors.digitalocean.com/ubuntu utopic universe | |
deb http://mirrors.digitalocean.com/ubuntu utopic-updates universe | |
deb-src http://mirrors.digitalocean.com/ubuntu utopic-updates universe | |
deb http://security.ubuntu.com/ubuntu utopic-security main | |
deb-src http://security.ubuntu.com/ubuntu utopic-security main |
This file contains hidden or 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@app1:~# apt-get clean | |
root@app1:~# apt-get update | |
Ign http://security.ubuntu.com utopic-security InRelease | |
Get:1 http://security.ubuntu.com utopic-security Release.gpg [933 B] | |
Get:2 http://security.ubuntu.com utopic-security Release [63.5 kB] | |
Get:3 http://security.ubuntu.com utopic-security/main Sources [47.8 kB] | |
Get:4 http://security.ubuntu.com utopic-security/universe Sources [9,408 B] | |
Get:5 http://security.ubuntu.com utopic-security/main amd64 Packages [162 kB] | |
Get:6 http://security.ubuntu.com utopic-security/universe amd64 Packages [59.4 kB] | |
Get:7 http://security.ubuntu.com utopic-security/main i386 Packages [161 kB] |
This file contains hidden or 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@app1:~# apt-get clean | |
root@app1:~# apt-get update | |
Ign http://security.ubuntu.com utopic-security InRelease | |
Ign http://mirrors.digitalocean.com utopic InRelease | |
Get:1 http://security.ubuntu.com utopic-security Release.gpg [933 B] | |
Ign http://mirrors.digitalocean.com utopic-updates InRelease | |
Hit http://mirrors.digitalocean.com utopic Release.gpg | |
Get:2 http://security.ubuntu.com utopic-security Release [63.5 kB] | |
Get:3 http://mirrors.digitalocean.com utopic-updates Release.gpg [933 B] | |
Hit http://mirrors.digitalocean.com utopic Release |
This file contains hidden or 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
<!DOCTYPE html> | |
<html ng-app="RetailBenefitsAdmin"> | |
<head lang="en"> | |
<meta http-equiv="content-type" content="text/html;charset=UTF-8" /> | |
<meta charset="utf-8"> | |
<meta http-equiv="X-UA-Compatible" content="IE=edge"> | |
<meta name="viewport" content="width=device-width, initial-scale=1.0, maximum-scale=1.0, user-scalable=no" /> | |
<%= csrf_meta_tags %> | |
<title><%= content_for?(:title) ? "#{content_for(:title)} - #{t(".title")}" : t(".title") %></title> | |
<%= stylesheet_link_tag :admin %> |
This file contains hidden or 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
[ | |
{ | |
"children_count": 26, | |
"id": 22, | |
"image_url": "https://d37xxa5hx0rx1u.cloudfront.net/e2g2_categories/22/medium_842b9303-f4ea-4315-b071-54331e057ea1.jpg", | |
"listing_count": 430, | |
"name": "Arts & Entertainment", | |
"parent_id": 1 | |
}, | |
{ |
This file contains hidden or 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
------------------------------------------------------------------------------- | |
Language files blank comment code | |
------------------------------------------------------------------------------- | |
Ruby 1272 11338 10008 69193 | |
Javascript 39 6179 5307 31573 | |
CSS 49 3718 1450 19238 | |
YAML 10 58 235 326 | |
HTML 7 10 23 183 | |
SQL 2 28 16 110 | |
XML 10 0 0 10 |
This file contains hidden or 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
~/P/retail-benefits git:production ❯❯❯ cap production deploy --trace ⏎ ✭ | |
** Invoke production (first_time) | |
** Execute production | |
** Invoke load:defaults (first_time) | |
** Execute load:defaults | |
** Invoke bundler:map_bins (first_time) | |
** Execute bundler:map_bins | |
** Invoke deploy (first_time) | |
** Execute deploy | |
** Invoke deploy:starting (first_time) |
This file contains hidden or 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
class Provider | |
def merchants(merchant_ids) | |
get_merchants(Array(merchant_ids)).map do |m| | |
OpenStruct.new( | |
mid: m.id, | |
name: m.name, | |
program_name: m.name, | |
program_url: m.program_url | |
) | |
end |
This file contains hidden or 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
ActionController::Base.cache_store = ActiveSupport::Cache::RedisStore.new "redis://10.179.71.56:6379" | |
if defined?(PhusionPassenger) | |
PhusionPassenger.on_event(:starting_worker_process) do |forked| | |
# We're in smart spawning mode. | |
if forked | |
# Re-establish redis connections | |
Rails.cache.reconnect | |
Resque.redis.client.reconnect | |
end | |
end |
NewerOlder