There are no reviews yet. Be the first to send feedback to the community and the maintainers!
This is the Hacker Top program. It's a top-like program for monitoring stories on hacker news (news.ycombinator.com) from the console. It was written by Peteris Krumins ([email protected]). His blog is at http://www.catonmat.net -- good coders code, great reuse. The code is licensed under the GNU GPL license. The code was written as a part of the article "Follow Hacker News from the Console" on my website. The whole article can be read at: http://www.catonmat.net/blog/follow-hacker-news-from-the-console/ I explained some parts of the code in this program in another article "How Reddit Top and Hacker Top Programs Were Made". It can be read here: http://www.catonmat.net/blog/how-reddit-top-and-hacker-top-programs-were-made/ ------------------------------------------------------------------------------ Table of contents: [1] The Hacker Top program. [2] Program's usage. [3] Keyboard shortcuts. [4] Future TODO improvements. [1]-The-Hacker-Top-program---------------------------------------------------- This program monitors the Hacker News website ( http://news.ycombinator.com ) for hacker stories and displays them in the console via ncurses. The program is written in Python programming language and is supposed to be run on Unix type operating systems, such as Linux. It uses one external Python module - BeautifulSoup - for parsing HTML. BeautifulSoup can be downloaded from http://crummy.com/software/BeautifulSoup or via `easy_install beautifulsoup` See my original article for a screenshot: http://www.catonmat.net/blog/follow-hacker-news-from-the-console/ [2]-Hacker-Top-usage---------------------------------------------------------- Usage: ./hacker_top.py [-h|--help] - displays help message Usage: ./hacker_top.py [-i|--interval interval] [-u|--utf8 <on|off>] [-U|--url <on|off>] [-n|--new] -i or --interval specifies refresh interval. The default refresh interval is 3 minutes. Here are a few examples: 10s (10 seconds), 12m (12 minutes), 2h (2 hours). -u or --utf8 turns on utf8 output mode. Default: off. Use this if you know for sure that your terminal supports it, otherwise your terminal might turn into garbage. -U or --url turns on printing of urls. Default: off -n or --new follows only the newest hacker stories. Default: follow front page stories. [3]-Keyboard-shortcuts-------------------------------------------------------- q - quits the program. u - forces an update of the stories. m - changes the display mode. up/down arrows (or j/k) - scrolls the news list up or down. Beta shortcuts: o - open the topmost URL in the default webbrowser t - open the topmost URL in a new tab in the default webbrowser c - open the topmost URL's comments in the default webbrowser [4]-Future-TODO-improvements-------------------------------------------------- * Fix it to work on Windows. (Perhaps try the Console module) * Merge it with "Reddit Top" program (see below) and create "Social Top" program. Then write plugins for Digg, and other websites. Reddit Top is here (currently broken, will fix on Sunday 2009.11.29): http://www.catonmat.net/blog/follow-reddit-from-the-console/ * Add ability to login and vote for the favorite stories. ------------------------------------------------------------------------------ Have fun using it! Sincerely, Peteris Krumins http://www.catonmat.net
the-little-schemer
All the Scheme code examples from the book "The Little Schemer"node-lazy
lazy lists for node.jsnodejs-proxy
A HTTP proxy server written in node.jsnode-tree-kill
kill trees of processesbash-redirections-cheat-sheet
Bash redirections cheat sheetperl1line.txt
collection of handy perl one-liner scriptsxgoogle
Python library to Google services (google search, google sets, google translate, sponsored links)node-gif
A node.js C++ module for creating GIF images and animated GIFs from RGB or RGBA buffers.node-video
A node.js module for streaming and recording HTML5 Theora videosnode-png
A nodejs C++ module that given a buffer with RGB or RGBA values creates a PNG image (in memory).stackvm
Configure, network, and interact with virtual machines entirely over the webnode-iptables
basic iptables control via nodejsnode-image
Unifies node-png, node-jpeg and node-gif (for great good)the-seasoned-schemer
All the Scheme code examples from the book "The Seasoned Schemer"bash-vi-editing-mode-cheat-sheet
Bash has two input modes - emacs and vi. This is vi input/editing mode keyboard shortcut cheat sheet.the-little-mler
All the ML code examples from the book "The Little MLer"awk-cheat-sheet
This is AWK programming language cheat sheet.bithacks.h
bithacks.h is a C header file containing useful bit manipulation macrosnode-jpeg
A nodejs C++ module that given a buffer with RGB or RGBA values creates a JPEG image in memory.node-base64
A base64 encoding and decoding C++ module for node.js that actually works! (node now has it's own base64 encoding, see docs!)perl-tcp-proxy
A simple TCP proxy written in Perl. Uses IO::Socket::INET and IO::Select for multiplexing.node-jsmin
javascript minimizer for node.jsreddit-top
A top-like program for monitoring reddit from the consolebash-history-cheat-sheet
This is the bash history cheat sheet. It summarizes everything there is to know about working efficiently with command line history in bash.the-reasoned-schemer
All the logic programming code examples from the book "The Reasoned Schemer"catonmat.net
The new catonmat.net website.node-browser
Provides a Browser for easy web browsing from node.jssed-cheat-sheet
This is sed (unix stream editor) cheat sheet.node-supermarket
A key/value store based on sqlite for node.js that actually works.screen-cheat-sheet
This is the screen terminal emulator cheat sheet. It lists the default keyboard shortcuts for working with screen.bash-emacs-editing-mode-cheat-sheet
Bash has two input modes - emacs and vi. This is emacs input/editing mode keyboard shortcut cheat sheet.set-operations-in-unix-shell
This is an implementation of 14 set operations by using only Unix utilities such as sort, uniq, diff, comm, cat, head, tail, awk, and others.social-scraper
Social scraper is a Perl program that scrapes reddit, digg, stumbleupon, delicious, furl, flickr, simpy, boingboing, wired for content that matches the given patterns.node-async
An example async library for node.jsbash-one-liners
Bash one-linersperl-tcp-proxy2
Program for my "A TCP Proxy in Perl" articlethe-little-prover
All code examples from "The Little Prover" bookadns
Asynchronous DNS resultion in Python by using adns C library.busy-beaver
Implementation of a Turing Machine that runs the Busy Beaver programs.social-submitter
Submit your stories to Reddit, Hacker News, Twitter, Plurk, Identi.ca, Facebook at once!youtube-uploader
A Perl program that uploads videos to YouTube without any APIs.invoice
generate pdf invoices from latex via pdflatexnode-passwd
Node.js module to manage /etc/passwdgnu-awk-youtube-downloader
A program written in GNU Awk that downloads YouTube Videos. Proof of concept that AWK can do binary IO and networking effectively.ed-cheat-sheet
This is ed (the unix text editor) cheat sheet. It lists all the commands and how to do line addressing.gnu-coreutils-cheat-sheet
Gnu Coreutils Cheat Sheetload-status-server
Windows load status server that returns cpu load, memory usage and disk usage through JSONutil-linux-cheat-sheet
Util-Linux Cheat Sheetnode-chess
Node chess - Node.js knockout competitionssh-key-manager
manage ssh keys on the server side (can be used with ssh-key-widget)node-des
A C++ node.js module that does DES encryption and actually works (node's crypto module didn't work.)node-rfb
implements the client-side of the rfb protocol that vnc usesperl-youtube-downloader-one-liner
This is a Perl one-liner that downloads YouTube videos.node-bufferdiff
A C++ module for node-js to test if two buffers are equal, fast (could add diff later).vbscript-youtube-downloader
A program written in VBScript that downloads YouTube videos.supermarket-cart
Connect session store using supermarketkeyboard
provides english keyboard (used as a widget for browserling)speak-text-files-to-wav
Speaks text files to wav using Microsoft Speech APIperl-predefined-variable-cheat-sheet
This is Perl special variable (predefined variable) cheat sheet. It lists all the Perl variables.dnode
Simple asynchronous remote method invocation for node.jsnode-time
This module provides some time functions for node.js (i forgot about Date() so this module is useless)reddit-comment-finder
A program that finds all the comments a given reddit user has made.dotfiles
bitly
shorten urls with bitly without apinode-quine
A node.js module that exports a function that prints itselffirefox-update-dialog-killer
a simple win32 program that detects and closes the firefox update dialognode-number-range
number rangesnode-png-sync
sync part of node-png that works on windows with node-gyp on node 0.6youtube-video-downloader-in-perl
Wrote this real quick as I needed to get some vidschrome-dialog-killer
Kills the nasty "your profile can not be used because it is from a newer version of Google Chrome" dialog by clicking OK buttonhwnd-finder
find hwnds easilyrfb-protocols
A node.js module for various RFB encoding (RRE, Hextile, Tight, etc.) conversion to RGB buffers.TextToWav
Converts text files to wav using Loquendo text-to-speech sdkperl-pack-unpack-printf-sprintf-cheat-sheet
This is Perl pack/unpack template parameter and printf/sprintf format specifier cheat sheetquick-cd
Quick cd is a utility for bash that keeps track of your most often used directories and allows you to cd to them with as few keystrokes as possible.feedburner-graph-generator
Current feedburner graphs suck. I wrote this Perl program to generate the nice graphs they used to have in 2008.install-computer
plurk-command-line-plurker
A Perl program for plurking from command linenode-bufferlist
Create linked lists of Buffer objectswebdev-template
Web development template with reset.cssreddit-river
The old reddit river website for mobile deviceshttp-async-retry
HTTP::Async with retryquick-history
Better interface to bash's (and other shell) CTRL+R for reverse-search-historydockerfiles
node-parse-users-exe-output
parses output from users.exe on windowsrackspace-tools
some tools to manage rackspace cloud serverscodinghorror-keyword-analyzer
A Perl program that parses public statcounter data for codinghorror.com blog and stores the search keywords in an SQLite database.node-rdesktop
Client side of the RDP protocol that Windows uses for remote deskopnode-crashing-async-buf
for ry - a crashing Buffer::New example in eio_custom.stacked-linux
A small linux distribution for use on routersutf8-length
return the number of bytes in a unicode stringlulzbot
An IRC bot for node.jslatex2html
convert latex to html (works for me)utf8-bytes
return an array of bytes from a unicode stringlwp-protocol-http-socketeer
http protocol implementation for LWP that uses a proxystartupsupper.github.com
Recipes for Bootstrappers & Hungry Hackerstestling-ci-badge-checker
This perl program checks github repos for testling-ci badgestestling-ci-test-example
testling-ci-test-examplepicurls.com
This is repository of picurls.com website. picurls: picture buzz! buzziest pictures on the net!digpicz
The old digpicz.com websiteLove Open Source and this site? Check out how you can help us