Related Content
Timing Page Responses With Curl
Timing web requests is possible in curl using the -w or --write-out flag. This flag takes a number of different options, including several time based options.
Repointing A Symlink To A Different Location
Creating a symlink is a common way of ensuring that the directory structure of a deployment will always be the same. For example you might create a symlink so that the release directory of release123/docroot will instead be just current.
Finding My Most Commonly Used Commands On Linux
I'm a proponent of automation, so when I find myself running the same commands over and over I always look for a way of wrapping that in an alias or script.
Grep Context
Grep is a really powerful tool for finding things in files. I often use it to scan for plugins in the Drupal codebase or to scan through a CSV or log file for data.
For example, to scan for user centric ViewsFilter plugins in the Drupal core directory use this command (assuming you are relative to the core directory).
Checking Domain TTL Values
Part of the process of putting a new site live can be moving DNS entries around. Prior to doing this it's a really good idea to sort out the Time To Live (TTL) of the DNS record so that when you do change DNS entries you aren't waiting around for a day for the DNS to sort itself out.
Read Contents Of SSL Cert From The Command Line
Whilst it is possible to view the contents of an SSL cert from within most modern browsers I occasionally find the need to use the command line to find out the same information. I find this useful when renewing certificates as browsers can occasionally cache certificates for longer than expected, causing false results.
Comments
Thanks, very helpful!
Submitted by JUbuntu on Mon, 10/25/2021 - 23:10
PermalinkGreat thanks!
Submitted by Andrew Norris on Fri, 11/12/2021 - 14:40
PermalinkThanks it worked!
Submitted by Anonymous on Wed, 01/12/2022 - 06:41
PermalinkThank you so much! This worked perfectly (also on a Keychron)
Submitted by alok on Thu, 02/24/2022 - 15:46
PermalinkThanks (keychron k1 se)
Submitted by Jurriaan on Mon, 08/08/2022 - 20:50
PermalinkThanks!
Submitted by Anonymous on Thu, 09/15/2022 - 08:07
Permalinko7
Submitted by philipnorton42 on Sat, 09/24/2022 - 14:25
PermalinkThank you a lot!
Submitted by daulet on Mon, 11/07/2022 - 09:53
PermalinkThanks in advance. What if I want to assign a custom shortcut only to the Fn key? Is that possible?
Submitted by MML1357 on Tue, 01/10/2023 - 21:33
PermalinkMML1357, potentially. You might be able to do something like that with Input Remapper (https://github.com/sezanzeb/input-remapper) to remap the key and Autokey (https://github.com/autokey/autokey) to assign a command to the remapped key.
I haven't tried it, but let me know how you get on!
Submitted by philipnorton42 on Wed, 01/11/2023 - 08:37
PermalinkThanks it worked!
Submitted by Jesús Mendoza on Wed, 03/15/2023 - 16:33
PermalinkAdd new comment