Haxor Knowledge: Hacker Knowledge within the terminal

38
Haxor Knowledge: Hacker Knowledge within the terminal

Imgur

Build Status

PyPI version PyPI http://www.apache.org/licenses/LICENSE-2.0.html” rel=”nofollow”>License

Coworker who sees me one thing in a browser: “Chuffed that you just might perchance furthermore be not busy; I need you to fetch that, this, this…”

Coworker who sees me staring carefully at a describe suggested: Backs away, slowly…

Provide

Test out the haxor-news dialogue on this Hacker Knowledge put up.

haxor-news brings Hacker Knowledge to the terminal, allowing you to leer/filter the next with out leaving your describe line:

  • Posts
  • Put up Comments
  • Put up Linked Web Stammer
  • Monthly Hiring and Freelancers Posts
  • User Files
  • Onions

haxor-news helps you filter the helpful choice of comments that smartly-liked posts generate.

  • Are trying to develop handiest beforehand unseen comments?
    • -cu/--comments_unseen
  • How about most up-to-date comments posted within the past 60 minutes?
    • -cr/--comments_recent
  • Filter comments matching a regex inquire of?
    • -cq/--comments_query [query]

Imgur

Job hunting or marvelous involving what’s accessible? Filter the monthly who’s hiring and freelancers put up:

remote_web_jobs.txt”>
$ hn hiring "(?i)(Node|JavaScript).*(faraway)" > remote_web_jobs.txt

Combine haxor-news with pipes, redirects, and other describe line utilities. Output to pagers, write to recordsdata, automate with cron, and tons others.

haxor-news comes with a to hand not compulsory auto-completer with interactive help:

Imgur

Index

Total

Functions

Installation and Assessments

Misc

Syntax

Utilization:

Auto-Completer and Interactive Abet

Optionally, that you just might perchance allow fish-vogue completions and an auto-completion menu with interactive help:

If on hand, the auto-completer furthermore mechanically shows comments via a pager.

All over the auto-completer, the same syntax applies:

Imgur

Imgur

Customizable Highlighting

You are going to be ready to govern the ansi colours feeble for highlighting by updating your ~/.haxornewsconfig file.

Coloration alternate ideas consist of:

'dim', 'crimson', 'inexperienced', 'yellow',
'blue', 'magenta', 'cyan', 'white'

For no coloration, advise the price(s) to None.

Imgur

Commands

Imgur

Peep Posts

Peep the High, Simplest, Repeat, Establish a inquire of to, Jobs, New, and Onion posts.

Utilization:

$ hn [command] [limit]  # put up limit default: 10

Examples:

Imgur

Peep a Put up’s Linked Web Stammer

After viewing a listing of posts, that you just might perchance leer a put up’s linked websites by referencing the put up #.

The HTML contents of the put up’s hyperlink are formatted for straightforward-viewing inside of your terminal. If on hand, the formatted output is sent to a pager.

Stare the Peep in a Browser allotment to leer the contents in a browser as a replacement.

Utilization:

Example:

Imgur

Peep and Filter a Put up’s Comments

Peep All Comments

After viewing a listing of posts, that you just might perchance leer a put up’s comments by referencing the put up #.

Examples:

Paged Comments

If working with the auto-completer, comments are mechanically paginated. To accumulate the same pagination with out the auto-completer, append | less -r:

Imgur

Filter on Unseen Comments

Filter comments to develop handiest these that you just might perchance furthermore own not yet seen. Unseen comments are denoted with a [!] and are fully expanded.

Viewed comments will be truncated with […] and ought to be confirmed to help provide context to unseen comments.

Examples:

$ hn leer 8 -cu
$ hn leer 8 --comments_unseen | less -r

Imgur

Filter on Most modern Comments

Filter comments to develop handiest these posted inside of the past 60 minutes.

Older comments will be truncated with […] and ought to be confirmed to help provide context to most up-to-date comments.

Examples:

$ hn leer 8 -cr | less -r
$ hn leer 8 --comments_recent

Imgur

Filter with Regex

Filter comments in step with a given recurring expression inquire of.

Examples:

programmer.txt”>
$ hn leer 2 -cq "(?i)programmer" | less -r
$ hn leer 2 --comments_regex_query "(?i)programmer" > programmer.txt

Case insensitive regex: (?i)

Imgur

Disguise Non-Matching Comments

When filtering comments for unseen, most up-to-date, or with regex, non-matching comments are collapsed to invent context. To as a replacement hide non-matching comments, cross the -ch--comments_hide flag. Hidden comments will be displayed as ..

Example:

$ hn leer 8 -cu -ch | less -r

Imgur

Filter the Monthly Hiring Put up

Hacker Knowledge hosts a monthly hiring put up the keep employers put up the most contemporary job openings.

Utilization:

$ hn hiring [regex filter]

Examples:

remote_jobs.txt”>
$ hn hiring ""
$ hn hiring "(?i)JavaScript|Node"
$ hn hiring "(?i)(Node|JavaScript).*(faraway)" > remote_jobs.txt

Case insensitive regex: (?i)

Imgur

To pass trying a recurring monthly hiring put up as antagonistic to the most contemporary, use the hiring put up identity.

Utilization:

$ hn hiring [regex filter] [post id]

Filter the Freelancers Put up

Hacker Knowledge hosts a monthly freelancers put up the keep employers and freelancers put up availabilities.

Utilization:

$ hn freelance [regex filter]

Examples:

remote_jobs.txt”>
$ hn freelance ""
$ hn freelance "(?i)JavaScript|Node"
$ hn freelance "(?i)(Node|JavaScript).*(faraway)" > remote_jobs.txt

Case insensitive regex: (?i)

Imgur

To pass trying a recurring monthly hiring put up as antagonistic to the most contemporary, use the hiring put up identity.

Utilization:

$ hn freelance [regex filter] [post id]

Combine With Pipes and Redirects

Output to pagers, write to recordsdata, automate with cron, and tons others.

Examples:

remote_jobs.txt”>
$ hn leer 1 -c | less
$ hn freelance "(?i)(Node|JavaScript).*(faraway)" > remote_jobs.txt

Imgur

Peep User Files

Utilization:

Imgur

Peep Onions

Utilization:

$ hn onion [limit]  # put up limit default: all

Imgur

Peep in a Browser

Peep the linked websites or comments in your default browser as a replacement of your terminal.

Utilization:

Windows Pork up

haxor-news has been examined on Windows 10.

Pager Pork up

Pager make stronger on Windows is extra puny as discussed within the next designate. Users can remark output to a pager with the | extra describe:

Config File

On Windows, the .haxornewsconfig file might perchance furthermore be found in %userprofile%. For instance:

C:Usersdmartin.haxornewsconfig

cmder and conemu

Even supposing you might perchance well utilize the regular Windows describe suggested, you can seemingly own a better expertise with both cmder or conemu.

Installation

Pip Installation

PyPI version PyPI

haxor-news is hosted on PyPI. The following describe will install haxor-news:

You are going to be ready to furthermore install the most contemporary haxor-news from GitHub offer which might perchance possess changes not yet pushed to PyPI:

$ pip install git+https://github.com/donnemartin/haxor-news.git

When you happen to ought to not placing in in a virtualenv, bustle with sudo:

$ sudo pip install haxor-news

Once save in, bustle the not compulsory haxor-news auto-completer with interactive help:

Scamper instructions:

Virtual Ambiance Installation

It’s counseled that you just put in Python purposes in a virtualenv to sustain a ways from doubtless concerns with dependencies or permissions.

To leer haxor-news virtualenv installation instructions, click on here.

Mac OS X 10.11 El Capitan Users

There is a identified scenario with Apple and its incorporated python bundle dependencies (extra recordsdata at https://github.com/pypa/pip/concerns/3165). We are investigating ways to repair this scenario but for the time being, to put in haxor-news, that you just might perchance bustle:

$ sudo pip install haxor-news --give a enhance to --ignore-save in six

Supported Python Variations

  • Python 2.6
  • Python 2.7
  • Python 3.3
  • Python 3.4
  • Python 3.5
  • Python 3.6
  • Python 3.7

Supported Platforms

  • Mac OS X
    • Examined on OS X 10.10
  • Linux, Unix
    • Examined on Ubuntu 14.04 LTS
  • Windows
    • Examined on Windows 10

Developer Installation

When you happen to might perchance furthermore be drawn to contributing to haxor-news, bustle the next instructions:

Trusty Integration

Build Status

Trusty integration minute print are on hand on Travis CI.

Unit Assessments and Code Coverage

Scamper unit tests in your active Python atmosphere:

$ python tests/run_tests.py

Scamper unit tests with tox on multiple Python environments:

Documentation

Provide code documentation will rapidly be on hand on Readthedocs.org. Test out the offer docstrings.

Scamper the next to construct up the medical doctors:

Contributing

Contributions are welcome!

Overview the Contributing Pointers for minute print on :

  • Put up concerns
  • Put up pull requests

Credit

Contact Files

Feel free to contact me to discuss any concerns, questions, or comments.

My contact recordsdata might perchance furthermore be found on my GitHub online page.

License

I am providing code and sources on this repository to you under an initiate offer license. Because here’s my private repository, the license you fetch to my code and sources is from me and not my employer (Fb).

License

Copyright 2015 Donne Martin

Licensed under the Apache License, Model 2.0 (the "License");
that you just might perchance furthermore not use this file with the exception of in compliance with the License.
It's doubtless you'll furthermore fetch a reproduction of the License at

   http://www.apache.org/licenses/LICENSE-2.0

Until required by appropriate legislation or agreed to in writing, blueprint
dispensed under the License is dispensed on an "AS IS" BASIS,
WITHOUT WARRANTIES OR CONDITIONS O

Join the pack! Join 8000+ others registered users, and accumulate chat, accumulate groups, put up updates and accumulate chums all via the arena!
www.knowasiak.com/register

Knowasiak
WRITTEN BY

Knowasiak

Hey! look, i give tutorials to all my users and i help them!