Skip to content

Instantly share code, notes, and snippets.

View wflanagan's full-sized avatar

William Flanagan wflanagan

View GitHub Profile
["\"Deltek\"", "\"Kohler\"", "41studio", "41studio.Com", "Accessories", "Advancedwebranking", "Affermage", "Agencies", "Agency", "Ahrefs", "Ahrefs.Com", "Airconditioning", "Amawaterways", "Analytics", "Analyticsseo", "Animals", "Animation", "Architecture", "Arthur", "Arts", "As9100c", "Authoritylabs", "Avaya", "Azamara", "Bamboo", "Bandana", "Benmanns", "Billabong", "Biography", "Bloomreach", "Boots", "Brandoma", "Brewery", "Brightedge", "British", "Buddymedia", "Burgers", "Business", "Buzzstream", "Camber", "Carnival", "Ccs", "Certified", "Children", "Chimney", "Chimneys", "Classifieds", "Cleaning", "Clips", "Clothes", "Cnn", "Coal", "Coke", "Colibritool", "Comedy", "Commentkahuna", "Concerns", "Cooking", "Courier", "Courses", "Coveo", "Cranford", "Crows", "Cruise", "Cruiselines", "Cruises", "Cruising", "Cunard", "Customs", "Cybersecurity", "Data", "Deloitte", "Drysuit", "Eco", "Ecohydrology", "Ecommerce", "Edi", "Education", "Eels", "Electricals", "Elephants", "Elmo", "Emma", "England", "Entrepreneurs", "En
[7/30/13 1:41:49 PM] William Flanagan: so, we're looking at something that looks more like this..
[7/30/13 1:42:02 PM] William Flanagan: http://note.io/17eTVjB
[7/30/13 1:43:10 PM] Melanie Phung: what do you want feedback on?
[7/30/13 1:43:33 PM] William Flanagan: given your users.. what do you think they'd want to see on the list of influencers?
[7/30/13 1:44:16 PM] Melanie Phung: who they are, who they work for, what they talk about, their sites, how to reach them.
[7/30/13 1:44:27 PM] Melanie Phung: plus, the size of their "influence" of course
[7/30/13 1:45:09 PM] Melanie Phung: From a design perspective though I find it visually very confusing. Too many colors, font sizes and alignment. And I don't know what "select" means. :(
If I modify the SummaryDataNg to not use @domain_id and use a real integer 5970 the query works, it doesn't error.
require 'addressable/uri'
require 'public_suffix'
require 'crewait'
module BacklinkPipeline
class SummaryProcessor < Oma::Processor
include BacklinkPipeline::RedisBacklinkMixin
include BacklinkPipeline::HelperMethods
#!/usr/bin/env bash
apt-get -y update
apt-get -y install build-essential zlib1g-dev libssl-dev libreadline6-dev libyaml-dev
cd /tmp
wget ftp://ftp.ruby-lang.org/pub/ruby/1.9/ruby-1.9.3-p392.tar.gz
tar -xvzf ruby-1.9.3-p392.tar.gz
cd ruby-1.9.3-p392/
./configure --prefix=/usr/local
make
make install
@wflanagan
wflanagan / gist:5476661
Created April 28, 2013 11:48
Recent logs for respawning due to connection problems
Apr 26 07:12:21 prometheus init: app-resqueworker-2 main process ended, respawning
Apr 26 07:12:23 prometheus init: app-resqueworker-1 main process ended, respawning
Apr 26 07:12:23 prometheus init: app-resqueworker-3 main process ended, respawning
Apr 26 08:24:51 prometheus init: app-worker-3 main process ended, respawning
Apr 26 14:14:07 prometheus init: app-link_processor-2 main process ended, respawning
Apr 26 14:15:14 prometheus init: app-link_processor-1 main process ended, respawning
Apr 26 14:57:45 prometheus init: app-worker-6 main process ended, respawning
Apr 26 18:12:35 prometheus init: app-link_processor-2 main process ended, respawning
Apr 26 18:24:19 prometheus init: app-link_processor-2 main process ended, respawning
Apr 26 18:52:37 prometheus init: app-link_processor-2 main process ended, respawning
Troubleshooting: +High+Performance+Networks
Request URL: "http://api.authoritylabs.com/keywords/priority?auth_token=kkkkkhkhhkkhkh&keyword=+High+Performance+Networks&engine=google"
Response: #<Typhoeus::Response:0x007f9c885c07e8 @code=200, @curl_return_code=0, @curl_error_message="No error", @status_message=nil, @http_version=nil, @headers="HTTP/1.1 200 OK\r\nCache-Control: max-age=0, private, must-revalidate\r\nContent-Type: text/html; charset=utf-8\r\nETag: \"e0aa021e21dddbd6d8cecec71e9cf564\"\r\nServer: nginx/0.8.54 + Phusion Passenger 3.0.2 (mod_rails/mod_rack)\r\nSet-Cookie: _papi_session_old=BAh7ByIPc2Vzc2lvbl9pZCIlZTE1NTI5ODEzOTU4ZWFmMWY1YzhjNDQ3MmVlZDMwMTkiGXdhcmRlbi51c2VyLnVzZXIua2V5WwgiCVVzZXJbBmk6IiIkMmEkMTAkYVlYTzVaOVd6RWRkVUlKSm95VGRhZQ%3D%3D--58b0253f67d835894e3e1d758cbea65f35e15e05; path=/; HttpOnly\r\nStatus: 200\r\nX-Powered-By: Phusion Passenger (mod_rails/mod_rack) 3.0.2\r\nX-Runtime: 0.023798\r\nX-UA-Compatible: IE=Edge,chrome=1\r\nContent-Length: 2\r\nConnection: keep-alive\r\n\r\n", @bo
@wflanagan
wflanagan / gist:5060349
Created February 28, 2013 21:39
es error
2013-02-24 12:24:57,373][DEBUG][action.search.type ] [USEAST1A SRV01] [entities][2], node[i-b23BHwTSirWSSFj-kE-w], [R], s[STARTED]: Failed to execute [org.elasticsearch.action.search.SearchRequest@47b571d8]
org.elasticsearch.search.SearchParseException: [entities][2]: query[keywords:head wraps for women _all:"hair ornament" _all:"flower headbands ? women" _all:headbands _all:"hair accessory" _all:"jenny headband" _all:"hair ties" _all:"unique hair accessories" _all:"hair accessories women" _all:"bridal hair accessories" _all:"hair clips" _all:"head band" _all:"andrea s beau" _all:roses _all:clips _all:"andrea's beau" _all:"soft headbands" _all:"taylor swift" _all:mapquest _all:"hats ? hair" _all:"hair accessories ? natural hair" _all:"bows ? girls" _all:arts _all:"flower girl hair" _all:"fine art site" _all:"hair extension" _all:scarves _all:"fine art website" _all:"fine art websites" _all:"ebay motors" _all:"off book" _all:"andrea’s beau hair accessories" _all:bandana _all:"hair extensions" _all:headba
{
"runStats": {
"linesRecommended": 526123,
"linesProcessed": 529159,
"linesPassed": 7216252
},
"results": [
{
"index": "{'market_rank': 1, 'domain_id': 1}",
"queryCount": 16,
@wflanagan
wflanagan / 50_second_query_one_word.txt
Created January 15, 2013 16:33
This query takes 50 or more seconds to process.. even though the query should only select 15k documents. Why?
curl -X GET '23.21.224.90:9200/mentions/mention/_search?search_type=count&size=10&pretty' -d '{
"query":{
"match":{
"keyword":{
"query":[
"hair accessories"
]
}
}
},