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 / getMailProviderByHour.2011623.csv
Created July 15, 2011 08:29
Hourly R Lang plus ggplot2 graph of Thunderbird Mail Provider Mentions during Yahoo POP server outage on June 23, 2011
Hour Provider NumMentions
2011062300 yahoo 2
2011062301 yahoo 8
2011062302 yahoo 0
2011062303 yahoo 0
2011062304 yahoo 0
2011062305 yahoo 0
2011062306 yahoo 0
2011062307 yahoo 2
2011062308 yahoo 0
@rtanglao
rtanglao / commandLine.md
Created July 22, 2011 04:19
Thunderbird Non Implemented Ideas sorted by me_toos highest to lowest
/Applications/mongodb-osx-x86_64-1.8.2/bin/mongo 127.0.0.1:27017/gs getNonImplementedIdeas.js 

> thunderbirdNonImplementedIdeasSortedByMeToos.txt

@rtanglao
rtanglao / a.py
Created August 10, 2011 18:41
WIP-PythonCodeToGetBigGramsForGetSatisfactionDuplicationDetection
>>> bigrams(tokens)
[('Deleting', 'from'), ('from', 'All'), ('All', 'Mail'), ('Mail', 'I'), ('I', 'have'),
('have', 'over'), ('over', '600'), ('600', 'messages'), ('messages', 'in'), ('in', 'the'),
('the', 'ALL'), ('ALL', 'Mail'), ('Mail', 'box'), ('box', 'that'), ('that', 'I'),
('I', 'want'), ('want', 'to'), ('to', 'delete'), ('delete', 'but'), ('but', 'when'),
('when', 'I'), ('I', 'do'), ('do', 'they'), ('they', 'just'), ('just', 'keep'),
('keep', 'coming'), ('coming', 'back.'), ('back.', 'I'), ('I', 'have'),
('have', 'tried'), ('tried', 'compacting'), ('compacting', 'the'), ('the', 'folder'),
('folder', 'but'), ('but', 'that'), ('that', 'does'), ('does', 'not'),
('not', 'help.'), ('help.', 'Please'), ('Please', 'advise'), ('advise', 'how'),
@rtanglao
rtanglao / *triagedTB6Topics15July-11August2011.md
Created August 11, 2011 19:36
thunderbird 6.0 search topics August 11, 2011
  1. http://getsatisfaction.com/mozilla_messaging/topics/mbox_import-s4vga , Mbox import , 2775423 , Wed Aug 10 21:10:08 UTC 2011 , Linux not sure what the problem is here
  2. http://getsatisfaction.com/mozilla_messaging/topics/tb_5_0_get_mail_button_and_check_for_new_messages_every_xxx_minutes_does_not_with_yahoo_imap , TB 5.0 'Get mail' button and 'Check for new messages every xxx minutes' does not with Yahoo! IMAP , 2739807 , Wed Aug 10 18:32:44 UTC 2011 - Yahoo doesn't support IMAP and neither does Mozilla
  3. http://getsatisfaction.com/mozilla_messaging/topics/memory_use_in_tb5_massive_memory_leak , Memory use in TB5 massive - memory leak? , 2748189 , Wed Aug 10 12:57:20 UTC 2011 , Windows 7, Roland to check
  4. http://getsatisfaction.com/mozilla_messaging/topics/tb_5_0_attachment_files_dispeared , TB 5.0 Attachment files disapeared , 2772706 , Wed Aug 10 12:52:59 UTC 2011 , smime pkcs7 problem? not a high runner
  5. http://getsatisfaction.com/mozilla_messaging/topics/tb6b3_tools_add_ons_manager_plugins_che
@rtanglao
rtanglao / commandLine.md
Created August 25, 2011 18:28
Debian Lenny Yak Shaving to get my Ruby Get Satisfaction scripts working on my VPS
@rtanglao
rtanglao / generate2GramsAnd3GramsInRuby.rb
Created September 6, 2011 04:18
generate2GramsAnd3GramsInRuby
# from http://markwatson.com/aiblog/2007/06/n-gram-analysis-using-ruby.html
require 'sanitize'
a="This is the SECOND time I have asked the same question over the last couple of weeks and not had any reply!!
I cannot delete messages from ALL Mail; they just keep coming back into the folder.
I have tried compacting and it makes no difference. Sometimes the messages do delete for a couple days but always come back.
If I do not get a reply soon then I will unistall and get rid of Thunderbird"
bi_grams = Hash.new(0)
tri_grams = Hash.new(0)
def words text
Sanitize.clean(text).downcase.scan(/\w+/)
@pilt
pilt / gist:1281299
Created October 12, 2011 14:03
Stevey's Google Platforms Rant
I was at Amazon for about six and a half years, and now I've been at
Google for that long. One thing that struck me immediately about the
two companies -- an impression that has been reinforced almost daily --
is that Amazon does everything wrong, and Google does everything right.
Sure, it's a sweeping generalization, but a surprisingly accurate one.
It's pretty crazy. There are probably a hundred or even two hundred
different ways you can compare the two companies, and Google is superior
in all but three of them, if I recall correctly. I actually did a
spreadsheet at one point but Legal wouldn't let me show it to anyone,
even though recruiting loved it.
@rtanglao
rtanglao / 1. searching for crash keyword or tag 8-14november201.md
Created November 14, 2011 23:08
windows restore to tb7 from tb8 causes tb8 to crash after tb8 upgrade; workaround, re-install tb8 from getthunderbird.com

Search for "crash"

./bruteforceSearch.rb 2011 11 8 2011 11 14 -k crash -t crash  
2>bfs.searchfor.crash.8-14november2011.stderr.txt     
>bfs.searchfor.crash.8-14november2011.stdout.txt

"crash" Search Results

  1. http://getsatisfaction.com/mozilla_messaging/topics/complete_crash_help , Complete crash. HELP!!! , 3162071 , Mon Nov 14 20:05:41 UTC 2011 POSSIBLE
  2. http://getsatisfaction.com/mozilla_messaging/topics/thunderbird_crashed_unable_to_get_in_safe_mode , Thunderbird crashed, unable to get in safe mode , 3162256 , Mon Nov 14 18:21:57 UTC 2011 - POSSIBLE
  3. http://getsatisfaction.com/mozilla_messaging/topics/thunderbird_5_0_crash_on_launch , Thunderbird 5.0 crash on launch @ JSRuntime::onOutOfMemory (Mac) , 2654965 , Mon Nov 14 04:12:09 UTC 2011 - Thunderbird 5 !!!
@jcromartie
jcromartie / spark.rb
Created November 15, 2011 13:37
Sparklines in Ruby
#!/usr/bin/env ruby
# -*- coding: utf-8 -*-
# prints a sparkline in the terminal using the supplied list of numbers
# examples:
# spark.rb 10 20 30 100 90 80
# spark.rb 1 2 0.4 0.1 1.3 0.7
@ticks = %w[ ]
values = ARGV.map { |x| x.to_f }
@jimbojsb
jimbojsb / gist:1630790
Created January 18, 2012 03:52
Code highlighting for Keynote presentations

Step 0:

Get Homebrew installed on your mac if you don't already have it

Step 1:

Install highlight. "brew install highlight". (This brings down Lua and Boost as well)

Step 2: