Taskwarrior for Android released

Taskwarrior for Android is new front end for Taskwarrior, excellent command line task manager and a very good replacement for Mirakel which has big problems with crashing on sync with task server.

Download it from Google Play.

Happy hacking….

Quick ebook conversion with Calibre in console

calibre

I mostly use fbless ebook reader, because it works on console and don’t need to switch to X server for reading. Downside is that it recognize only .fb2 or .fb2.zip format, which is not so common. For quick conversion I use Calibre command line tool:

ebook-convert How.to.Convert.Ebooks.epub How.to.Convert.Ebooks.fb2

…quick and efficient.
Happy hacking….

Editing files over ssh in vim

archlinux-logo-dark-200dpi.b42bd35d5916

Need a quick file edit on remote server. With vim it’s easy, use:

vim scp://username@host:port//path/to/file

…or within vim:

:e scp://username@host:port//path/to/file

…or if you are not sure about name of the file, browse remote directory with:

:e vim scp://username@host:port//path/to/directory/

Directory path must end with /.Remote home directory is invoked with:

:e scp://username@host:port/~/

Use rcp instead of scp for ftp access.
Happy hacking….

gpg not working without X server

archlinux-logo-dark-200dpi.b42bd35d5916

If you are trying to use gpg command for encrypt or decrypt data on tty without X server (I use that in combination with yadm, you will probably get this error:

gpg: public key decryption failed: Inappropriate ioctl for device

If you don’t want to switch to X every time, there is a simple solution.Put this line in your ~/.bashrc:

export GPG_TTY=$(tty)

Happy hacking…

curl-ing the weather

wttr.in

In need for quick weather forecast? Use:

curl wttr.in/<your city>

Excellent little web service based on wego and wttr.in, a web frontend for wego.

You can also use installed wego directly by obtaining  API key from here and editing ~/.wegorc like:

{
"APIKey": "",
"City": "",
"Numdays": 5,
"Imperial": false,
"Lang": "en"
}

….and you get weather forecast for five days.

wego

Happy hacking….

Passing time in console

yetris

If you use console as default working environment, it is nice to pass some time with games without switching to X server just for that. There is plenty of games for the X server, but there are also games that work in console too. That’s my list of them:

dwarffortress

The first and for sure the most well known game is Dwarf Fortress, excellent game where you build and control dwarven outpost in randomly generated fantasy world. It is complex and have a steep learning curve, but when you get past pass learning phase you can’t stop playing. If you want to use it in console, you must change settings from:

 [PRINT_MODE:2D]

to:

 [PRINT_MODE:TEXT]

in ~/.dwarffortress/data/init/init.txt, where you should also change windowed or fullscreen mode settings. As I said, great game, but sadly not playing it much lately, because my laptop is too weak and need a looooot of time starting it. If I’m in the mood at home, I play over ssh from my “server/experimenting computer” (old laptop without display), if it’s on and it’s working just fine.

angband1

This I play a lot, when I have time. Angband a dungeon crawler, roguelike game based on the writings of JRR Tolkien. There are few similar games based on Angband, like Zangband, and Hellband and for instance Moria, also known as umoria, which all added some new features and twists to Angband.

awkaster

This is one interesting game awk-raycaster, 3D shooter written in awk using raycasting technique. You should check this out.

dungeon

And there is Zork, also known as Dungeon, very good text game, as stated in introduction text:

Dungeon is a game of adventure, danger, and low cunning. In it
you will explore some of the most amazing territory ever seen by mortal
man. Hardened adventurers have run screaming from the terrors contained
within.

curseofwar

Last but not least is Curse of War, fast paced strategy game which require strategic planing, building infrastructure, securing resources, and moving your armies.

nudoku

For some quick passing the time I play:
* freecell – well known card game,
* nudoku – sudoku in ncurses,
* 2048-in-terminal – 2048, well… in… terminal….,
* gnuchess – I think it doesn’t need introduction,
* greed – moving in directiones, erasing grid squares and scoring for the moves,
* yetris – clone of tetris,
…and this is my game list.

If you are looking for something new, the very good game list can be found here, linux port for a collection of BSD command line games.

Happy Hacking….

inxi weather

archlinux-logo-dark-200dpi.b42bd35d5916

inxi, very versatile script to get various hardware and software data, have also interesting option -w which display local weather data:
Weather: Conditions: 36 F (2 C) - Clear Time: February 4, 8:15 PM CET

…or if you use verbose variante with -x, -xx or -xxx, the output contains more data:
inxi -wxxx
Weather: Conditions: 36 F (2 C) - Clear Wind: From the South at 2 MPH Humidity: 87%
Pressure: 30.21 in (1023 mb) Location: None None (SVN) Altitude: 280 ft
Time: February 4, 8:20 PM CET (Europe/Ljubljana) Observation Time: February 4, 8:00 PM CET

…and with option -W you can change location input:
inxi -wxxx -W vienna,austria
Weather: Conditions: 39 F (4 C) - Mostly Cloudy Wind: From the West at 13 MPH Humidity: 70%
Pressure: 30.15 in (1021 mb) Wind Chill: 32 F (0 C)
Location: Vienna (OS) Altitude: 171 ft
Time: February 4, 8:24 PM CET Observation Time: February 4, 7:50 PM CET

Happy hacking…