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
# 1.1.4 Ensure nodev option set on /tmp partition | |
# 1.1.5 Ensure nosuid option set on /tmp partition | |
if node['filesystem']['by_mountpoint']['/tmp'] and node['platform_version'] >= 7 | |
mount '/tmp' do | |
device node['filesystem']['by_mountpoint']['/tmp']['device'] | |
fstype node['filesystem']['by_mountpoint']['/tmp']['fs_type'] | |
# https://access.redhat.com/documentation/en-us/red_hat_enterprise_linux/7/html/storage_administration_guide/sect-using_the_mount_command-mounting | |
options 'defaults,noquota,nodev,nosuid' | |
action [:remount, :enable] | |
end |
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
[yasay] | |
; Configuration variables | |
exten => s,1,Set(SPEAKER=jane) | |
same => n,Set(EMOTION=neutral) | |
same => n,Set(API_KEY=useyourown) | |
same => n,Set(CACHE_DIR=/tmp) | |
; Generate MD5 hash of the text | |
same => n,Set(MD5_HASH=${MD5("${ARG1}")}) | |
same => n,Set(FILE_PATH=${CACHE_DIR}/${MD5_HASH}) |
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
#!/bin/bash | |
HASH=$(echo -n "$1" | sha256sum | awk '{print $1}') | |
if [ -f "/tmp/${HASH}.sln" ]; then | |
echo "EXEC PLAYBACK /tmp/${HASH}" | |
exit 0 | |
fi | |
cat << EOF > /tmp/${HASH}.json |
OlderNewer