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
| * note existing DATABASE_URL for historical notes | |
| * comment out the *-db service in manifest.yml (it does not yet exist) | |
| * create the new db service: e.g. | |
| cf create-service rds shared-psql c2-staging-db | |
| OR | |
| cf create-service rds medium-psql c2-prod-db | |
| * dump the existing db to a file |
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
| 591 cf unbind-service c2-prod c2-prod-elasticsearch | |
| 593 cf unbind-service c2-prod-worker c2-prod-elasticsearch | |
| 596 cf unbind-service c2-prod-ssh c2-prod-elasticsearch | |
| 597 cf delete-service c2-prod-elasticsearch | |
| 598 cf create-service elasticsearch-swarm-1.7.1 3x c2-prod-elasticsearch | |
| 600 cf bind-service c2-prod c2-prod-elasticsearch | |
| 601 cf bind-service c2-prod-worker c2-prod-elasticsearch | |
| 602 cf restage c2-prod-worker | |
| 603 cf restage c2-prod |
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
| #!/bin/sh | |
| export $(cat .env | grep -v ^# | xargs) | |
| bundle exec rake say_when:start --trace 2>&1 >> log/say_when.log & | |
| #nohup bundle exec rake say_when:start 2>&1 >> log/say_when.log & | |
| echo $! > tmp/pids/say_when.pid |
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
| 365,http://podcastrss.play.it/wooooo-nation-with-ric-flair_mp3_128.xml | |
| 368,http://www.npr.org/rss/podcast.php?id=510299 | |
| 374,http://www.npr.org/rss/podcast.php?id=510200 | |
| 381,http://www.npr.org/rss/podcast.php?id=510019&uid=n1qe4e85742c986fdb81d2d38ffa0d5d53 | |
| 382,http://www.npr.org/rss/podcast.php?id=510282 | |
| 392,http://www.npr.org/rss/podcast.php?id=510208 | |
| 395,http://www.npr.org/rss/podcast.php?id=510184 | |
| 403,http://www.qdnow.com/grammar.xml | |
| 457,http://www.nytimes.com/services/xml/rss/nyt/podcasts/the-ethicists.xml | |
| 14,http://www.npr.org/rss/podcast.php?id=381444908 |
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
| [karpet@workhorse:~/pua/fixer_client]$ rake test | |
| /home/karpet/.rvm/rubies/ruby-2.0.0-p247/bin/ruby -I"lib:lib:test" -I"/home/karpet/.rvm/gems/ruby-2.0.0-p247/gems/rake-10.4.2/lib" "/home/karpet/.rvm/gems/ruby-2.0.0-p247/gems/rake-10.4.2/lib/rake/rake_test_loader.rb" "test/fixer/client_test.rb" | |
| Run options: --seed 43983 | |
| # Running: | |
| .EE | |
| Finished in 0.007790s, 385.1003 runs/s, 128.3668 assertions/s. |
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
| ```perl | |
| #!/usr/bin/env perl | |
| use strict; | |
| use Data::Dump qw( dump ); | |
| use Net::LDAP::Class::User::AD; | |
| use Net::LDAP::Class::Group::AD; | |
| use Path::Class; | |
| my $usage = "$0 first-or-last-name\n"; | |
| my $name = shift(@ARGV) or die $usage; |
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
| ``` | |
| #<Sequence:0x00000007d6ecd0 | |
| id: "999d0c55-68f6-49af-860f-bdc4c709f0da", | |
| job_id: "9d030ede-755a-4877-8a6c-e662fe2ce72e", | |
| sequence_id: nil, | |
| status: 2, | |
| position: 1, | |
| type: "Sequence", | |
| task_type: nil, | |
| label: nil, |
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
| [ActiveJob] [WebHookWorker] [8467d0dd-d6f1-4d87-88ae-2d7cc63fe731] WebHookWorker web_hook: "{\"web_hook\":{\"id\":137,\"informer_id\":\"46134e2d-8eaf-4d65-b4c0-6fe528d2f84d\",\"informer_type\":\"TaskLog\",\"url\":\"https://pop-up-archive-staging.herokuapp.com/fixer_callback/files/audio_file/29737?cbt=9617c845f7bf2d1d\",\"message\":\"{\\\"task\\\":{\\\"id\\\":\\\"ce471b40-074d-4c51-b806-e30fd209773f\\\",\\\"task_type\\\":\\\"transcode\\\",\\\"label\\\":\\\"259214\\\",\\\"options\\\":{\\\"bit_rate\\\":\\\"96\\\",\\\"cbt\\\":\\\"9617c845f7bf2d1d\\\",\\\"channel_mode\\\":\\\"s\\\",\\\"format\\\":\\\"ogg\\\",\\\"sample_rate\\\":\\\"44100\\\"},\\\"call_back\\\":\\\"https://pop-up-archive-staging.herokuapp.com/fixer_callback/files/audio_file/29737?cbt=9617c845f7bf2d1d\\\",\\\"result\\\":\\\"s3://www-stage-popuparchive/fixer-test-2.coAr5a.popuparchive.org/us_constitution_preamble_pek.ogg\\\",\\\"result_details\\\":{\\\"status\\\":\\\"created\\\",\\\"message\\\":\\\"created message.\\\",\\\"info\\\":null,\\\"logged_at |
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
| [karpet@workhorse:~/pua/audiosear.ch]$ HEAD -S -U https://archive.org/download/keeping-memories-of-chinatown-alive-and-kicking.0nC96k.popuparchive.org/WEB.ShowGirls.mp3_ts_start.json | |
| HEAD https://archive.org/download/keeping-memories-of-chinatown-alive-and-kicking.0nC96k.popuparchive.org/WEB.ShowGirls.mp3_ts_start.json | |
| User-Agent: lwp-request/6.03 libwww-perl/6.08 | |
| 302 Moved Temporarily | |
| HEAD https://ia600307.us.archive.org/21/items/keeping-memories-of-chinatown-alive-and-kicking.0nC96k.popuparchive.org/WEB.ShowGirls.mp3_ts_start.json | |
| User-Agent: lwp-request/6.03 libwww-perl/6.08 | |
| 200 OK | |
| Cache-Control: max-age=21600 |
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
| diff --git a/app/workers/web_hook_worker.rb b/app/workers/web_hook_worker.rb | |
| index b8e422f..0b1dbf5 100644 | |
| --- a/app/workers/web_hook_worker.rb | |
| +++ b/app/workers/web_hook_worker.rb | |
| @@ -38,14 +38,14 @@ class WebHookWorker < BaseWorker | |
| end | |
| def http_execute(uri, data, options={}) | |
| - connection = Excon.new(uri.to_s) | |
| + connection = Excon.new(uri.to_s, :ssl_verify_peer => false) |