Fwd: [code-sense] itools: command line tool utk muslimin

6 views
Skip to first unread message

Gibrain

unread,
Dec 7, 2017, 8:07:33 PM12/7/17
to glib...@googlegroups.com
Apakah rumah ini masih berpenghuni ?

---------- Pesan terusan ----------
Dari: Yan Farmawan <100.pers...@gmail.com>
Tanggal: 7 Desember 2017 14.35
Subjek: [code-sense] itools: command line tool utk muslimin
Kepada: coder-sensual <coder-...@googlegroups.com>


assalamu'alaikum, wr wb

(spesial buat CLI-er dan scripter-mania  [dan EdanEr]...wakwakwak)

0) install dong
apt-get install itools

1) idate
tanggal hijriah hari ini, bisa buat konversi juga

contoh:
yanovsky@hackpad$ idate
output:
Date Format (dd/mm/yyyy):
+ Input    :  7/12/2017      -   Thursday(Thu) -     December(Dec)
-----------------------------
+ Output   : 18/ 3/1439 A.H  -    Khamees(Kha) -       Rabi I(Rb1)

contoh: konversi tanggal masehi ke hijriah, masehi 2001-jan-20 (20010120)

yanovsky@hackpad$ idate -g 20012001
output:
Date Format (dd/mm/yyyy):
+ Input    : 20/ 1/2001      -   Saturday(Sat) -      January(Jan)
-----------------------------
+ Output   : 24/10/1421 A.H  -       Sabt(Sab) -      Shawwal(Sha)

2) ical
kalender hijriah, juga bisa untuk konversi tanggal lahir

contoh: tanggal hari ini, 1439, rabiul awal 18

yanovsky@hackpad$ ical
output:
      Rabi I 1439 (A.H)
  S  Ah   I   T  Ar   K   J
          1   2   3   4   5
  6   7   8   9  10  11  12
 13  14  15  16  17 [18] 19
 20  21  22  23  24  25  26
 27  28  29  30

contoh: konversi tanggal masehi ke hijriah, masehi 2001-jan-20 (20010120)
yanovsky@hackpad$ ical -g 20012001
output:
     Shawwal 1421 (A.H)
  S  Ah   I   T  Ar   K   J
                      1   2
  3   4   5   6   7   8   9
 10  11  12  13  14  15  16
 17  18  19  20  21  22  23
[24] 25  26  27  28  29

3) ipraytime
jadwal waktu sholat, siapkan setting di $HOME/.iprayrc

contoh: .iprayrc

City: Jakarta, Indonesia
Latitude: -6.213519
Longitude: 106.822266
UTC: 7
AngleMethod: 1
Mathhab: 1
OffsetList: 0 0 0 0 0 0

contoh eksekusek:

yanovsky@hackpad$ ipraytime
output:
Prayer schedule for,
 City             : Jakarta, Indonesia
 Latitude         : 006° 12' 48" S
 Longitude        : 106° 49' 20" E
 Angle Method     : Egyptian General Authority of Survey
 TimeZone         : UTC+7.0
 Qibla            : 064° 50' 26" W of true North

     Date         Fajr    Shorooq   Zuhr     Asr    Maghrib   Isha
--------------------------------------------------------------------
 [07-12-2017]     4:04     5:28    11:43    15:05    17:57    19:13

Today's Imsaak    :   3:57
Tomorrow's Imsaak :   3:57
Tomorrow's Fajr   :   4:04

4) ireminder
pengingat waktu sholat, yg bisa mentrigger program external, (coba lo bikin script utk robot yg mukul orang atau bedug, ketika 5 menit menjelang ashar)

contoh:
5 menit sebelum waktu sholat eksekusi $HOME/bin/reminds.sh, dg parameter nama sholat.

yanovsky@hackpad$ ireminder -reminder 5 -execs "$HOME/bin/reminds.sh %s"
output:
[ireminder] NOTE - Next event 'asr' is at 15:05

contoh script $HOME/bin/reminds.sh :

#!/bin/bash -u

[ $# -gt 0 ] && sholat=$1

if [ "${sholat=}" == "asr" ]
then
    /usr/bin/mplayer $HOME/Audio/EdanE_Jadi_Beken.m4a
else
    /usr/bin/mplayer $HOME/Audio/Hijjaz-Asmaul_Husna.mp3
fi


=== abis bye

--
"biar sedikit asal konsisten" - babe gw

"Biasakan berbuat yang BENAR, jangan membenarkan yang BIASA", - di parkiran KODAM Jaya

"ber-tauhid kita bersatu & selamat, ber-kotak-kotak kita musyrik & terlaknat" - yanovsky

--

---
You received this message because you are subscribed to the Google Groups "coder-sensual" group.
To unsubscribe from this group and stop receiving emails from it, send an email to coder-sensual+unsubscribe@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.



--
Learn how to work smarter. Not harder.

Aris Winardi

unread,
Dec 7, 2017, 11:27:25 PM12/7/17
to glib...@googlegroups.com
​​
Masih pak. Dan terima kasih informasinya

Terima kasih,
Aris Winardi

Pada 8 Desember 2017 08.07, Gibrain <gibra...@gmail.com> menulis:
Apakah rumah ini masih berpenghuni ?
---------- Pesan terusan ----------
Dari: Yan Farmawan <100.pers...@gmail.com>
Tanggal: 7 Desember 2017 14.35
Subjek: [code-sense] itools: command line tool utk muslimin
Kepada: coder-sensual <coder-sensual@googlegroups.com>

--
Anda menerima pesan ini karena berlangganan grup "GNU/Linux Bogor" di Google Grup.
Untuk berhenti berlangganan dan berhenti menerima email dari grup ini, kirim email ke glibogor+unsubscribe@googlegroups.com.
Untuk opsi lebih lanjut, kunjungi https://groups.google.com/d/optout.

Reply all
Reply to author
Forward
0 new messages