Skip to content

Instantly share code, notes, and snippets.

View rtanglao's full-sized avatar
😃
you rock :-)

Roland Tanglao rtanglao

😃
you rock :-)
View GitHub Profile
@rtanglao
rtanglao / gettags.rb
Created March 15, 2010 06:20
gettags.rb
#!/usr/bin/env ruby
require 'json'
require 'net/http'
require 'pp'
require 'Time'
require 'tempfile'
STOP_WORDS = ["thunderbird", "email", "e-mail", "mail", "thunderbird3", "tbird", "tbird3", "tb", "emails", "mails",
"e-mails", "tb3", "tb2", "support", "help", "error", "support", "please", "new", "ok", "message", "messages",
"thanks", "got", "page", "two", "etc", "etc", "e.g.", "i.e", "fix", "computer", "seems", "right", "like",
@rtanglao
rtanglao / getrandom.rb
Created March 25, 2010 06:42
getrandom.rb
#!/usr/bin/env ruby
require 'json'
require 'net/http'
require 'pp'
require 'Time'
def getResponse(url)
http = Net::HTTP.new("api.getsatisfaction.com",80)
@rtanglao
rtanglao / momogs.helper.js
Created March 26, 2010 23:14
momogs.helper.js
// Based on original code by bryan w clark
// all awesomeness by bryan, all hacks by roland :-)
// Licensed under the Mozilla Public License, http://www.mozilla.org/MPL/MPL-1.1.html
// This code is a prototype and proof of concept only. It requires Firefox 3.6 + the JetPack Add-On
// See spec at https://wiki.mozilla.org/Thunderbird/Support/GetSatisfaction/Accelerator
const POSSIBLE_REPLIES = [
{ shortText: "Unable to authenticate to SMTP Server",
replyText: "The community needs more troubleshooting details to help you further (<b>in "+
"particular exact error messages if any, your exact Thunderbird "+
"settings for sending and receiving email - screenshots preferred; your "+
@rtanglao
rtanglao / getcontributors.rb
Created April 5, 2010 23:39
getcontributors.rb
#!/usr/bin/env ruby
require 'json'
require 'net/http'
require 'pp'
require 'Time'
def getResponse(url)
http = Net::HTTP.new("api.getsatisfaction.com",80)
@rtanglao
rtanglao / gettopics.rb
Created April 16, 2010 22:52
gettopics.rb
#!/usr/bin/env ruby
require 'json'
require 'net/http'
require 'pp'
require 'Time'
def getResponse(url)
http = Net::HTTP.new("api.getsatisfaction.com",80)
979428 1 Can you use old layout with TB3 12345678
979385 1 Why or why can I not send messages and how can I get some human help! 12345678
979346 1 mail folders disappeared 12345678
979333 1 email addresses completion with the most frequent person appearing first 12345678
979281 1 Vertical bars in replies 12345678
979252 1 Does Compact Folder delete invisible msg only? Or also empty trash can? 12345678
979238 1 Complete archives on two separate local computers? 12345678
979190 1 welke tekenset kan het best gebruikt worden worden 12345678
979122 1 cannot send emails with thunderbird 12345678
978906 1 How do I send a message to all? 12345678
@rtanglao
rtanglao / search.py
Created April 19, 2010 20:41
search.py
# forked version of http://github.com/davedash/SUMO-issues/blob/master/search.py
# Will put this file in a real git repo instead of a gist, "real soon now"
STOPWORDS = ('a', 'about', 'above', 'across', 'after', 'afterwards', 'again',
'against', 'all', 'almost', 'alone', 'along', 'already', 'also', 'although',
'always', 'am', 'among', 'amongst', 'amoungst', 'amount', 'an', 'and',
'another', 'any', 'anyhow', 'anyone', 'anything', 'anyway', 'anywhere', 'are',
'around', 'as', 'at', 'back', 'be', 'became', 'because', 'become', 'becomes',
'becoming', 'been', 'before', 'beforehand', 'behind', 'being', 'below',
'beside', 'besides', 'between', 'beyond', 'bill', 'both', 'bottom', 'but',
'by', 'call', 'can', 'cannot', 'cant', 'co', 'computer', 'con', 'could',
@rtanglao
rtanglao / thunderbirdSupportTopicClusters.20090721.20100418.txt
Created April 19, 2010 20:43
thunderbirdSupportTopicClusters.20090721.20100418.txt
* Why can't I import my old emails into Thunderbird (514)
* 6.676583: How do I import my e-mail adresses from outlook express
* 8.902111: Why can't I view Sent Emails?
* 13.353167: importing email from old Netscape 7.1
* 5.341267: Can I delete old Netscape data after installingThunderbird
* 6.676583: Why can't Thunderbird detect the character encoding?
* 5.341267: Can't read digest messages using T'bird 3.00
* 5.341267: i upgrade my thunderbird into version 3 after installation i cant find my old messages
* 5.341267: Can't install or configure Thunderbird WAS:Verification of download
* 5.341267: How can I archive over 3000 old emails without archiving current emails?
@rtanglao
rtanglao / gettopics.20090721.20100418.csv
Created April 19, 2010 22:38
gettopics.20090721.20100418.csv
We can't make this file beautiful and searchable because it's too large.
983983,"1",Wie kann man eMails von einem Rechner zum anderen verschieben?,12345678
983892,"1",restore messages after system loss?,12345678
983780,"1",Thunderbird receives mail, but can't send after Vista crash,12345678
983719,"1",Email yes..folders no,12345678
983637,"1",Ubuntu and Google Apps: a mix without support,12345678
983472,"1",Win 7 Easy Transfer & Thunderbird,12345678
983463,"1",spell check dramas,12345678
983436,"1",T-bird deletes messages off server in spite of the settings,12345678
983420,"1",Unable to acess the "Inbox"?,12345678
983419,"1",Trash reverts to display oldest message?,12345678
@rtanglao
rtanglao / emotitag NOT in JSON API
Created April 20, 2010 20:44
emotitag NOT in GS JSON API
>> t1 ="topics/how_do_i_get_gmail_to_work_with_tb_3_0.json"
=> "topics/how_do_i_get_gmail_to_work_with_tb_3_0.json"
>> t = getResponse(t1)
=> {"slug"=>"how_do_i_get_gmail_to_work_with_tb_3_0", "me_too_count"=>1, "created_at"=>"2010/04/13 20:06:17 +0000", "user_defined_code"=>false, "author"=>{"name"=>"babararacucudada", "photo"=>"/images/user_default_medium.png", "avatar_url_medium"=>"http://getsatisfaction.com/images/user_default_medium.png", "canonical_name"=>"babararacucudada", "avatar_url_mini"=>"http://getsatisfaction.com/images/user_default_mini.png", "url"=>"http://api.getsatisfaction.com/people/1226006", "avatar_path_mini"=>"/images/user_default_mini.png", "avatar"=>"http://getsatisfaction.com/images/user_default_medium.png", "id"=>1226006, "at_sfn"=>"http://getsatisfaction.com/people/babararacucudada", "avatar_url_large"=>"http://getsatisfaction.com/images/user_default_large.png", "avatar_url_small"=>"http://getsatisfaction.com/images/user_default_small.png", "avatar_path_medium"=>"/images/user_defau