Magenaut

Magenaut

A blog about Magento Development, Magento bug fixing, and more

Skip to content
Menu
  • Home
  • Notes
  • Tutorial
  • Bug fixing
  • Extension
  • Server
  • Q&A
  • About

Category: Q&A

Q&APosted onAugust 10, 2022

Displaying seconds as days/hours/mins/seconds?

Is it possible to easily format seconds as a human-readable time in bash?

Read More
Q&APosted onAugust 10, 2022

How do I find number of vertical lines available in the terminal?

I’m writing a script which shows the git log for a directory when I cd into it. Such a log can be overwhelming, containing hundreds of lines. So far I have been limiting that to a hard-coded 20 lines (... | head -n 20), which is fine on the screen at work, but too much on the smaller MacBook screen at home.

Read More
Q&APosted onAugust 10, 2022

How to install VirtualBox Guest Additions in a Debian virtual machine

I have been struggling to install VirtualBox Guest Additions in a Debian Virtual Machine (Debian 7, Debian 8 and Debian 9).

Read More
Q&APosted onAugust 10, 2022

How can I get bash to exit on backtick failure in a similar way to pipefail?

So I like to harden my bash scripts wherever I can (and when not able to delegate to a language like Python/Ruby) to ensure errors do not go uncaught.

Read More
Q&APosted onAugust 10, 2022August 10, 2022

Set default kernel in GRUB

How can I pick which kernel GRUB2 should load by default? I recently installed a the linux realtime kernel and now it loads by default. I’d like to load the regular one by default.

Read More
Q&APosted onAugust 10, 2022

File permission execute only

How can I set file to be executable only to other users but not readable/writable, the reason for this I’m executing something with my username but I don’t want to give out the password. I tried :

Read More
Q&APosted onAugust 10, 2022

What does ‘exec {fd}</dev/watchdog' do in Bash

That is literal, {fd} isn’t a placeholder. I have a script that does this, and does not source in anything, nor does it reference {fd} anywhere else. Is this valid bash?

Read More
Q&APosted onAugust 10, 2022

How can I propagate my SSH pub key to a list of servers without having to type my password in over and over?

I was recently given username/password access to a list of servers and want to propagate my SSH public key to these servers, so that I can login more easily.

Read More
Q&APosted onAugust 10, 2022

Grep: how to add an “OR” condition?

How can I introduce a conditional OR into grep? Something like, grepping a file’s type for (JPEG OR JPG), and then sending only those files…

Read More
Q&APosted onAugust 10, 2022

Multiple /dev/video for one physical device

First some specs: my computer is an HP EliteBook 8460p. It comes with an integrated Chicony HP HD webcam.

Read More

Posts navigation

Page 1 Page 2 … Page 715 Next Page

Subscribe to Blog via Email

Enter your email address to subscribe to this blog and receive notifications of new posts by email.

Join 141 other subscribers

Recent Comments

  • anonymous on Fix libwacom9 dependency issue when upgrade Debian
  • sreedhar on Fix libwacom9 dependency issue when upgrade Debian
  • saintnick on Fix libwacom9 dependency issue when upgrade Debian
  • ranafoul on Fix libwacom9 dependency issue when upgrade Debian
  • John Fro on UFW rule from a list of IPs

Tags

actions ajax bash block-editor categories command-line custom-field custom-post-types custom-taxonomy customization database debian files filters functions hooks images javascript linux loop menus multisite permalinks permissions php plugin-development plugins post-meta posts rest-api security shell shell-script shortcode ssh terminal text-processing theme-development themes uploads url-rewriting users woocommerce-offtopic wp-admin wp-query

© Magenaut - The Magento Astronaut