Run, Developer, Run!

Wolfram Alpha in the command line

Using all power of Computational Intelligence™ in your terminal! It could be your virtual assistant, that comes handy in a lot of cases, like working with dates, doing conversions and much more:

Wolfram Alpha in your terminal

Read More →

Remap Ctrl+C in Kitty terminal

Kitty terminal is awesome, and you should definitely try it.

Only thing I found tricky is how to bind termination of the running process (sending SIGINT on Ctrl+C) to a different key combination.

I like when all applications have consistent hotkeys. And different meaning of the most commonly used hotkey (copy) in all terminals always bothers me. I don't care about "history" and "traditions", switching your brain depending on currently open window is just inconvinient. So I use ctrl+c to copy and ctrl+shift+c for process interruption.

To fix that, add to kitty.conf:

map ctrl+c  copy_to_clipboard
map ctrl+v  paste_from_clipboard
map ctrl+shift+c send_text all \x03 # SIGINT

Note that there is also copyorinterrupt but for me it is even more inconsistent.

Take look at my config for more useful options.

PS: And by the way, if you want to get nice color scheme for Kitty, you could use Terminal Color Scheme Designer, export to Termite and replace = with .

Waveshare Game Hat review

Best DIY portable console

If IKEA made game consoles, it would be Waveshare Game Hat. Some assembly required, but you can get it working in 10 minutes without any special skills. And no soldering!

After that, you've got all possibilities of standard Raspberry Pi (which are endless) in the portable factor. Besides playing games, you could easily install Kodi, and watch videos and Youtube. And the list of compatible games goes far beyond console emulators. Personally, I recommend:

This is standard Raspberry Pi running Linux, not custom chip. As you probably know Raspberry Pi 3 can handle 1080 movies and PSX games without any issues.

Awesome. Read More →



On a random note, if Doomguy had a cheap watch, it would be Skmei 1301.

Quickly view source of script in Fish

If you have lots of handcrafted awesome scripts for Fish shell and constantly improving it, you also might be interested in this one.

When you type src [command] (autocompletion works here!), it will open script file in $PATH, Fish function or alias definition in your favorite text editor.

For example

src math

Source on Github

USB 3.0 cable tip

Did you know, that using cheap USB 3.0 cables could decrease performance dramatically? Lets compare Samsung EVO 850 M.2 inside Transcend CM80:

MB/s Cheap cable from Ebay Stock cable
Reads 42 438
Writes 43 388

Don't try to save money on cables. Buy something good and reasonably priced, like Anker or consult list of good cables.

Double Commander

Double Commander doesn't look as bad as at first glance if you configure it properly! Looks modern, right?

And it's still the best file manager in Linux. Tuning and configuration possibilities are endless. If you invest some time learning non-always-obvious configuration, you can make it work exactly as you want. Sweet.

Read More →

Run Fish Shell command from any app

I've implemented little script that allows to call Fish Shell prompt from any app. Very handy for running single commands from Double Commander or Sublime Text:

  • Prompts for single Fish command in left bottom corner of given application window
  • To make benefit of Fish shell autocompletion and history
  • Closes after one command is executed
  • If command fails, leaves window to inspect error message

See this animated gif for example.

For example you want execute git clone [email protected]:dmi3/bin.git in current directory from Double Commander:

  1. Press Shift+F2 and terminal window appears in left bottom corner of Double Commander window
  2. First you want git and clone to be autocompleted using Fish
  3. During clone process you want to see git command output to monitor progress
  4. If everything is ok, prompt will close
  5. In case of error you will have chance to read error message

Source on Github

Nonitrusive User Tracking Tip

⚠ UPD: This is kind of outdated. Read about how to create your own web stats in the age of GDPR and Ad Blockers.

What if you want to know a little about your website visitors, without full-on creepy surveillance and 1, JavaScript controlled by the third party? Or don't have JavaScript on the page at all? Just you know, to be aware if anybody is reading your blog at all.

This is kind of outdated infromation. Nowdays you probably want use Cloudflare or roll your own webstats)

I don't want to track every your mouse movement or know browser or resolution. Just visitor page views, please.

So almost every Web Analytics (except Google Analytics, of course) - Clicky, Yandex.Metrica or StatCounter, have an alternative image in <noscript> to track rare visitors without JavaScript enabled.

Put this image, somewhere in your template, and you will still get insights!

By the way, why does everybody need to bring tons of code to show little share button? Whats wrong with old good <a href=...?

←Prev 1 2 3 4 5 6 7 Next→



Me on Twitter, Mastodon and Github

We have RSS!

© 20xx

Hosted on Cloudflare Pages, which is awesome!