Search in all branches in the repogit grep "search_term" $(git branch -a --format "%(refname...
Update JSON using jq command
Command jq JSONUpdate JSON file using jq commandcat app.json | jq --arg environment "VVPAT" --arg test "0102023" '.myapp.configuration.labels += {environment: $environment, test:$test}' > modified_app.j...
Quick HOWTO: Run Loop in GitHub Actions
CICD DevOps GitHub ActionsIn GitHub Action workflows, there is no direct way to repeat the same job or step using variables. We have to use the "matrix" to achieve this.Example:my_loop_job: name: loop job runs-on: my-github-runners strategy:...
Quick HOWTO: Reset Jenkins Admin Password
DevOps Jenkins Quick HOWTO Tools
To reset the jenkins admin password, You can simply disable the security in the config.xml file.
1. If your jenkins is running on the Linux OS, edit the below file.
vi /var/lib/jenkins/config.xml file.
2....
Quick HOWTO: dracut fails in Linux
dracut initramfs Linux Quick HOWTO Solutions Troubleshooting
Issue: dracut fails when you trying to create initramfs image file.
[root@linux_server1 boot]# dracut -f /boot/initramfs-2.6.39-400.298.2.el6uek.x86_64.img 2.6.39-400.298.2
E: Failed to install /etc/system-fips
[root@linux_server1...
Quick HOWTO: Run SSH sessions in Parallel
Linux Parallel Processing Quick HOWTO Solutions SSH
You often used "for loop" in shell script to gather an information from large number of your Linux / Unix infrastructure servers. However if your server count is more, it may take lot of time to finish the task....
Quick HOWTO: View contents of RPM without installing it
Linux Quick HOWTO RHEL
In Linux, You may wonder what are the files inside a rpm package and you may want to check them before installing it.
You can do this with the below rpm commands:
If the rpm file available locally:
[root@linux_server1...
Subscribe to:
Posts (Atom)