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
- name: Install wget package (Debian based) | |
action: apt pkg='wget' state=installed | |
only_if: "'$ansible_pkg_mgr' == 'apt'" | |
- name: Install wget package (RedHat based) | |
action: yum name='wget' state=installed | |
only_if: "'$ansible_pkg_mgr' == 'yum'" |
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
// this is the background code... | |
// listen for our browerAction to be clicked | |
chrome.browserAction.onClicked.addListener(function (tab) { | |
// for the current tab, inject the "inject.js" file & execute it | |
chrome.tabs.executeScript(tab.ib, { | |
file: 'inject.js' | |
}); | |
}); |
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
#!/bin/bash | |
# | |
# Usage: ./supervisor-rolling-restart [supervised-process-name] | |
# | |
PROGRAM=$1 | |
# Time in seconds. | |
TIME_BETWEEN_RUNNING_CHECKS=0.5 | |
TIME_BETWEEN_RESTARTS=1 |