• Stars
    star
    150
  • Rank 247,323 (Top 5 %)
  • Language
    Python
  • License
    Other
  • Created about 6 years ago
  • Updated over 4 years ago

Reviews

There are no reviews yet. Be the first to send feedback to the community and the maintainers!

Repository Details

Have time.ir in shell!

tir

Have time.ir in shell!

tir

Installation

Download

Using git:

~ $ git clone --depth 1 --branch 20.07.26 https://github.com/Pouriya/tir && cd tir
~/tir $

Using wget:

~ $ wget https://github.com/Pouriya/tir/archive/20.07.26.tar.gz && tar xf 20.07.26.tar.gz && cd tir-20.07.26
~/tir-20.07.26 $

Dependencies

First you need to have Python 3.^5 installed. Most of other dependencies are by default installed on most Linuxes.

  • setuptools
    On most linux distributions:
    ~ $ sudo apt install python3-setuptools
    On FreeBSD:
    ~ # pkg install py36-setuptools
  • requests
    On most linux distributions:
    ~ $ sudo apt install python3-requests
    On FreeBSD:
    ~ # pkg install py36-requests
  • lxml
    On most linux distributions:
    ~ $ sudo apt install python3-lxml
    On FreeBSD:
    ~ # pkg install py36-lxml
    Note that lxml itself needs libxml2 and libxslt to compile.

Note that on FreeBSD it's better to link your python3.* to python3:

~ # ln -s /usr/local/bin/python3.6 /usr/local/bin/python3

Or edit Makefile and first line of ./bin/crawler.py and place your own Python 3 command

Notification is not show for you?

just run this command to reinstall or install libraries to solve the problem:

~ $ sudo apt-get --reinstall install libnotify-bin notify-osd

install tir itself

On Linux distributions run:

~/path/to/tir $ sudo make install

On FreeBSD you need gmake instead of make:

~/path/to/tir # gmake install

Then you have tir command everywhere:

/x/y/z $ tir
Emruz: 3-Shanbeh  15   Aban(08)   1397   Pa'eez  
Today:  Tuesday   06 November(11) 2018   Autumn  
System time: 00:04:03
 ________  ________  ________  ________  ________  ________  ________
| Shanbe ||  Yek   ||   Do   ||   Se   || Chahar ||  Panj  || Jom'eh |
 ________  ________  ________  ________  ________  ________  ________ 
|        ||        ||        ||        ||        ||        ||        |
|   28   ||   29   ||   30   ||   01   ||   02   ||   03   ||   04   |
| 10  20 || 11  21 || 12  22 || 13  23 || 14  24 || 15  25 || 16  26 |
|________||________||________||________||________||________||________|
 ________  ________  ________  ________  ________  ________  ________ 
|        ||        ||        ||        ||        ||        ||        |
|   05   ||   06   ||   07   ||   08   ||   09   ||   10   ||   11   |
| 17  27 || 18  28 || 19  29 || 20  30 || 21  31 || 22  01 || 23  02 |
|________||________||________||________||________||________||________|
 ________  ________  ________  ________  ________  ________  ________ 
|        ||        ||        ||        ||        ||        ||        |
|   12   ||   13   ||   14   ||   15   ||   16   ||   17   ||   18   |
| 24  03 || 25  04 || 26  05 || 27  06 || 28  07 || 29  08 || 01  09 |
|________||________||________||________||________||________||________|
 ________  ________  ________  ________  ________  ________  ________ 
|        ||        ||        ||        ||        ||        ||        |
|   19   ||   20   ||   21   ||   22   ||   23   ||   24   ||   25   |
| 02  10 || 03  11 || 04  12 || 05  13 || 06  14 || 07  15 || 08  16 |
|________||________||________||________||________||________||________|
 ________  ________  ________  ________  ________  ________  ________ 
|        ||        ||        ||        ||        ||        ||        |
|   26   ||   27   ||   28   ||   29   ||   30   ||   01   ||   02   |
| 09  17 || 10  18 || 11  19 || 12  20 || 13  21 || 14  22 || 15  23 |
|________||________||________||________||________||________||________|

Powered by http://time.ir

Uninstallation

On Linux distributions run:

~/path/to/tir $ sudo make uninstall

On FreeBSD you need gmake instead of make:

~/path/to/tir # gmake uninstall

Arguments

root@codefather:~/tir $ tir -h
Usage: tir [options]

Options:
  -h, --help       show this help message and exit
  -s, --solar      Does not show solar date
  -g, --gregorian  Does not show gregorian date
  -c, --calendar   Does not show calendar
  -t, --time       Does not show time
  -C, --color      Does not show colored text
  -q, --quote      Does not notify for quote
  -H, --holidays   Does not notify for holidays
  -a, --about      shows program's description and exits
  -u, --update-cache  if cache data exists, updates its data

So for example tir -s -g -c -C -q -H will result:

Emruz: 3-Shanbeh  15   Aban(08)   1397   Pa'eez  

Powered by http://time.ir

Contributing

I love pull requests from everyone ! For more info see CONTRIBUTING.md file.

More Repositories

1

keshvar

This library contains collection of all sorts of useful information for every country.
Rust
105
star
2

director

Director is a production-ready supervisor and manager for Erlang/Elixir processes that focuses on speed, performance and flexibility.
Erlang
65
star
3

sockerl

Sockerl is an advanced Erlang/Elixir socket framework for TCP protocols and provides fast, useful and easy-to-use API for implementing servers, clients and client connection pools.
Erlang
27
star
4

sssh

Simply connect to your ssh server
Rust
15
star
5

pipeline

Have pipeline in Erlang
Erlang
12
star
6

pcommit

Git commit message handler
Python
11
star
7

lb

Load-Balancer for spreading Erlang/Elixir messages.
Erlang
10
star
8

estuff

Erlang stuff. An Erlang rebar3 template for making new Erlang/OTP project.
Erlang
9
star
9

posthaste

Blazingly fast Erlang/Elixir hooking library.
Erlang
8
star
10

sentential

See word in sentences in shell
Python
8
star
11

cfg

Simple and modern configuration management in Erlang
Erlang
8
star
12

ppg

Simple but usable password generator/manager
Python
6
star
13

pcrypt

Simple encryption utility for files/directories.
Python
6
star
14

erlang-fa.ir

erlang-fa.ir website source code
HTML
5
star
15

prss

Simple script that fetches RSS feeds periodically and (after making a disk cache) sends updated feeds to a Gotify notification server.
Python
4
star
16

influxdb_encoderl

InfluxDB line encoder in Erlang
Erlang
4
star
17

grawk

Simple Awk script for generating ASCII graphs in terminal
Awk
3
star
18

spybot

SPyBot 😆 (Soroush Python Bot wrapper)
Python
3
star
19

opentsdb_encoderl

OpenTSDB telnet encoder in Erlang
Erlang
3
star
20

enls

Have Native Language Support (NLS) in Erlang
Erlang
3
star
21

breath

Brought a breath of fresh air to the Erlang coding. (Repository is under development)
Erlang
3
star
22

ybm

A Terminal Google Authenticator!
Rust
3
star
23

gen_fw

Erlang/Elixir Generic firewall process.
Erlang
3
star
24

rmpc

RMPC (Remote Multi Procedure Call)
Erlang
3
star
25

kafka_zookeeper_client

Erlang library for lookup one Kafka broker from Zookeeper server in round robin approach.
Erlang
3
star
26

pfdnld

File Downloader
Python
2
star
27

gen_rest_client

Erlang generic library for interacting to a ReSTful server.
Erlang
2
star
28

etcp

Erlang
2
star
29

restcommander

HTTP REST API layer on top of scripts with a simple web dashboard
Rust
2
star
30

ereturn

Providing safe function result for Erlang.
Erlang
1
star
31

graphite_encoderl

Graphite line encoder in Erlang
Erlang
1
star
32

pouriya.net

pouriya.net source (under development)
Makefile
1
star