do something like the following: Then put {{hostname}} in the legend field in Grafana
Posts By malcolm
Removing old servers from Prometheus Database
Use a command similar to the following from a linux command line.
Installing multiple packages from a list
cat packages.txt | xargs sudo apt-get install -y
Installing WordPress on a FreeNAS Jail
After creating a basic jail do this: Step 1 Configue the the Jail to Use SSH https://www.ixsystems.com/documentation/freenas/11.2-U6/jails.html#accessing-a-jail-using-ssh Step 2 – Setup Apache, MySQL and PHP – NOTE: Make changes for your version of PHP https://www.digitalocean.com/community/tutorials/how-to-install-an-apache-mysql-and-php-famp-stack-on-freebsd-10-1…
Remapping the delete key on MacOS High Sierra
To change the Delete key actually delete rather than backspace, run this command: $ hidutil property –set ‘{“UserKeyMapping”:[{“HIDKeyboardModifierMappingSrc”:0x70000004C,”HIDKeyboardModifierMappingDst”:0x70000002A},{“HIDKeyboardModifierMappingSrc”:0x70000002A,”HIDKeyboardModifierMappingDst”:0x70000004C}]}’ to change it back again, run this command: $ hidutil property –set ‘{“UserKeyMapping”:[{“HIDKeyboardModifierMappingSrc”:0x70000002A,”HIDKeyboardModifierMappingDst”:0x70000002A},{“HIDKeyboardModifierMappingSrc”:0x70000002A,”HIDKeyboardModifierMappingDst”:0x70000002A}]}’ Source : https://developer.apple.com/library/archive/technotes/tn2450/_index.html
My notes on how to use git
1) create a local git repo $ git init 1.5) Save username and password for github $ git config credential.helper store $ git push http://example.com/repo.git Username: <type your username> Password: <type your password> 2) Add…
Install and configure EPEL repository
rpm -Uvh https://dl.fedoraproject.org/pub/epel/epel-release-latest-8.noarch.rpm
Cool additions to the Gnome Desktop
Go to https://extensions.gnome.org and install the browser extension. Use firefox, not chrome, chrome goes haywire when you install the browser extension Then look for the following extensions and install them. Dash to Panel Arc Menu…
Find and replace text within a file using sed
Find and replace text within a file using sed The procedure to change the text in files under Linux/Unix using sed: Use Stream EDitor (sed) as follows: sed -i ‘s/old-text/new-text/g’ input.txt The s is the…
Resetting the Root Password of RHEL-8
Resetting the Root Password of RHEL-8 Resolution 1) Break the boot sequence by adding ‘rd.break’ at kernel stanza in grub. To do this, restart your system and when the GRUB splash screen comes: Select/highlight the…
Recent Comments