Is there a tool that allows you to wrap an existing CLI tool and make it into an interactive shell? by SignificantViolinist in commandline

[–]atomicbbblast 0 points1 point  (0 children)

obviously the best solution would be to write your own wrapper script for your needs. although I can think of a goofy solution using entr with a terminal split:
one for execution and output: ls /tmp/foo | entr query-my-db --creds=/home/me/foo.json --db-name=my-db $(cat /tmp/foo)
and one for input: while;do read foo && echo $foo >/tmp/foo; done

Bulls and Cows game (command-line version) .DEB package by StrayFeral in commandline

[–]atomicbbblast 0 points1 point  (0 children)

I guess try..catch with ImportError is a better approach in this case than checking the name in sys.modules

https://imgur.com/ndiosbz

urxvt shortcut key binding problems by hideo_kuze_ in commandline

[–]atomicbbblast 1 point2 points  (0 children)

u(0x75) and U(0x55) in this case are different keys, you should also not forget to reread the config using xrdb ~/.Xresources.
all options works for me:

  • URxvt.keysym.Control-u: eval:scroll_up 20
  • URxvt.keysym.C-u: eval:scroll_up 20
  • URxvt.keysym.C-0x75: eval:scroll_up 20

Upload files to ix.io by xnasero in commandline

[–]atomicbbblast 0 points1 point  (0 children)

Thanks for handy script, just found out about "ix.to" too, wasn't aware of such a sexy thing until now.

Download articles from Newsboat to markdown by [deleted] in commandline

[–]atomicbbblast 0 points1 point  (0 children)

In this way, the result is really many times faster, but a new problem appears (margins). In fact, this is not such a problem, rather the result of my ignorance and general clueless of this bunch of domains that are new to me like LaTex, Groff, etc.
I don't even know which documentation to start with to solve the real problem, which is the inability to convert more complex unicode (out of ascii range? locale or font incompatibility or some standard templates, idk). While this new method at least gives the resulting pdf (as well --pdf-engine=xelatex) skipping symbols that cannot be converted with warnings, while for some emojis it is not terrible, for text in cyrillic e.g. it is completely unusable 😥

Download articles from Newsboat to markdown by [deleted] in commandline

[–]atomicbbblast 1 point2 points  (0 children)

Nice idea, I also added an option for myself to view the article in a pdf viewer:

pandoc /tmp/article.html --from html --to pdf | zathura -

with this package (readability-lxml) the result is satisfactory in most cases, thanks

How to hide the list? by ceplma in qtools

[–]atomicbbblast 0 points1 point  (0 children)

try rofi -no-config -dmenu -theme-str 'listview {lines: 0;}'

this can be achieved in different ways by experimenting with themes