As a DevOps I spend a lot of time in Jenkins, automating stuff. Often pipelines will misbehave and I need ways of debugging things: Println Obviously the easiest way of getting information out of the running pipeline. Simulating a “breakpoint” Adding a somewhere in the pipeline pauses execution at that point which lets me check… Continue Reading debugging jenkinsfiles
Category: cheatsheet
find (and delete) files recursively on linux using find
Just as a reminder to myself, I will repost this post on baeldung: Recursively Deleting Files With a Specific Extension Get an idea of what you’ll be deleting: Reminder: Do backups and check that you’re in the correct location before starting the execution.
ssh jump hosts
Just a repost of SSH jump host. To remember in the future.
run crond in the background
It’s quite easy. It’s also basically not findable on the web. Probably because a simple Provides the answer.
managing disks and using lvm (and other tools)
This is probably one of the best posts:https://www.rootusers.com/how-to-increase-the-size-of-a-linux-lvm-by-expanding-the-virtual-machine-disk/ Just a collection of some links that I found nifty, dealing with disks on Linux: fdisk -l or parted -l, lsblk (aka list block devices)List all hard disks connected to a CentOS system – lshwCheck for hard disk errors / signs of failure on CentOS ServerCentOS /… Continue Reading managing disks and using lvm (and other tools)
Git assume-unchanged
Just for future reference. git update-index –assume-unchanged (and its counterpart) are very helpful git commands:
LVM Cheatsheet
Just for me to remember the most basic commands: pvdisplay List physical devices.vgdisplay List volume groups.lvdisplay List logical volumes. lvmdiskscan List devices that may be used as physical volumes lvextend Extend logical volume (by percent, up to specified size or by amount)resize2fs Resize file system after extending a logical volume pvcreate Create physical volumevgcreate Create… Continue Reading LVM Cheatsheet