Skip to content
Main Menu
  • Home
  • Blog
  • Contact

DevOps Fu

Tips and Tricks for DevOps Engineers

  • Home
  • Blog
  • Contact

Month: August 2020

  • Home
  • 2020
  • August

How to trim leading and trailing characters in Bash?

August 25, 2020 Fabrice

Bash has built-in facilities to trim characters at the beginning and end of the value of a variable: $ myvar="AAAthis is a testAAA" $ echo ${myvar##*(A)} this is a testAAA $ echo ${myvar%%*(A)} AAAthis is a test I work as… Read More

Bash

How to install jq on CentOS?

August 19, 2020 Fabrice

jq is in the EPEL repo, so you need to do this: $ sudo yum -y install https://dl.fedoraproject.org/pub/epel/epel-release-latest-7.noarch.rpm $ sudo yum -y install jq I work as a freelancer, so if you don’t want to do that kind of things… Read More

CentOS

Magic SysRq cheatsheet

August 13, 2020August 19, 2020 Fabrice

First of all, ensure Magic SysRq is enabled: $ cat /proc/sys/kernel/sysrq 0 means “disabled”, 1 means “everything enabled” and >1 is a bitmask of allowed keys. If you are using Ubuntu, you can modify the `/etc/sysctl.d/10-magic-sysrq.conf` file to set this… Read More

Linux

Recent Posts

  • How to persist variables in a loop from a find command in Bash?
  • How to iterate an array in Bash?
  • How to trim leading and trailing characters in Bash?
  • How to install jq on CentOS?
  • Magic SysRq cheatsheet

Categories

  • Automation
  • AWS
  • Bash
  • CentOS
  • Containers
  • Cryptography
  • Database
  • Development
  • Docker
  • Git
  • Linux
  • Python
  • Sysadmin
  • Virtualization

Archives

  • December 2020
  • October 2020
  • August 2020
  • July 2020
  • June 2020
  • April 2020
  • March 2020
  • February 2020
  • November 2019
  • June 2019
  • May 2019
  • April 2019
  • March 2019
  • February 2019
  • December 2018
  • November 2018
  • October 2018
  • September 2018
  • August 2018
  • July 2018
  • June 2018
  • May 2018
Copyright © 2018-2019 Fabrice Triboix
Best Business by Axle Themes