curl -sL https://gist.githubusercontent.com/vi7/bc27529bd4803576fefc479dbd326dfa/raw/node_exporter_installer_asuswrt_merlin.sh | sh \
&& rm -f node_exporter_installer_asuswrt_merlin.sh
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env bash | |
# Based on the info from | |
# - http://elrepo.org/tiki/HomePage | |
# - https://www.golinuxcloud.com/set-default-boot-kernel-version-old-previous-rhel-linux/ | |
# - https://www.casesup.com/category/knowledgebase/howtos/how-to-change-the-default-kernel-in-grub-for--rhel-and-centos | |
## !!!!!!!!!!!!!!!!!!!! ## | |
## ## | |
## !!! IMPORTANT: do not run this as-is, read all in-line comments ## |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
--- | |
global: | |
resolve_timeout: 3m | |
slack_api_url: 'https://hooks.slack.com/services/<TOKEN>' | |
smtp_smarthost: 'mail.example.com:25' | |
smtp_from: '[email protected]' | |
smtp_require_tls: false | |
smtp_hello: 'alertmanager-dev' | |
# The directory from which notification templates are read. |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
function run(input, parameters) { | |
const appName = ""; | |
const verbose = true; | |
const scriptName = "close_notifications_applescript"; | |
const CLEAR_ALL_ACTION = "Clear All"; | |
const CLEAR_ALL_ACTION_TOP = "Clear"; | |
const CLOSE_ACTION = "Close"; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env bash | |
# Collection of oneliner scripts to check Git working tree status for multiple repositories in a batch | |
set -e | |
# The most simple, prints all the git repos found and outputs not commited changes if any | |
for dir in $(find . -type d -name '.git'); do pushd $dir/.. >/dev/null; pwd; git status --short; popd >/dev/null; done | |
# Print paths to repositories with uncommitted changes only |
This guide was tested on CentOS 7 but should be in general applicable for other Linux distros with parted
and LVM
WARN You can’t resize partitions on the running OS in CentOS 6 (unless you’re brave enough to mess with the
sfdisk
) So the fastest option is to add new disk partition, create LVM PV from it and extend needed LVM VG accordingly Bad luck for you if you’re not using LVM ☠️
- Add required amount of space to the virtual machine disk