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
modules: | |
cmd.scipt: | |
#- name: salt://bug-tracking/files/modules.sh | |
- name: salt://hello.sh | |
- cwd: /var/www/bugzilla-4.4.5 | |
- env: | |
- 'HOME': '/var/www/bugzilla-4.4.5' | |
- require: | |
- pkg: perl |
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
def merge_patch(target, patch): | |
if isinstance(patch, dict): | |
if not isinstance(target, dict): | |
target = {} | |
for name, value in patch.iteritems(): | |
if value is None: | |
if name in target: | |
del target[name] | |
else: | |
target[name] = merge_patch(target[name], value) |
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
duration = 1 # second | |
freq = 440 # Hz | |
for _ in range(15): | |
os.system('play --no-show-progress --null --channels 1 synth %s sine %f' % (duration, freq)) | |
time.sleep(29) |
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
xset m 00 |