This file contains 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 python | |
# | |
# Watches the dropfolder, and kicks off the dropfolder-scanner when a file is closed | |
# | |
import pyinotify, os, logging | |
logging.basicConfig(filename='/tmp/dropfolder.log') | |
logger = logging.getLogger('watcher') | |
logger.setLevel(logging.INFO) |
This file contains 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
<html> | |
<head> | |
<title>Very nice web page</title> | |
</head> | |
<body background="white"> | |
<h1>Welcome!</h1> | |
<p>This is a paragraph. It rocks!</p> | |
</body> | |
</html> |
This file contains 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
window.addEventListener('keydown', function(event) { | |
if ((event.metaKey || event.ctrlKey) && event.key === 'Enter') { | |
let buttons = document.getElementsByClassName("uiButton"); | |
for (let i = 0; i < buttons.length; i++) { | |
let button = buttons[i]; | |
if (button.attributes && button.attributes["data-selenium-test"]) { | |
if (button.attributes["data-selenium-test"].value === "UniversalSaveBar-button-primary") { | |
button.click(); | |
break; | |
} |
This file contains 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
--- | |
- hosts: all | |
become: yes | |
tasks: | |
# Sensu, agents run on dom0 | |
- name: PGP signing key for Sensu packages | |
apt_key: |
OlderNewer