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
functions: | |
MyLambdaFunction: | |
role: MyLambdaRole | |
handler: index.handle | |
resources: | |
Resources: | |
MyEventName: | |
Type: AWS::Events::Rule | |
Properties: | |
Description: An awesome periodic event |
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 | |
if [ ! "${#@}" -eq 5 ]; then | |
echo "Use: ${0} <scenario_file.xml> <voip_gateway> <from_did> <to_did> <local_ip_address>" | |
exit 255 | |
fi | |
scenario=${1} | |
shift | |
voip_gateway=${1} |
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 | |
apt-get install software-properties-common | |
dpkg -S add-apt-repository | |
add-apt-repository ppa:webcamstudio/webcamstudio-dailybuilds | |
apt-get update | |
apt-get install webcamstudio | |
modprobe webcamstudio |
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 | |
cat file.txt | tr '\r' '\n' | tr -s '\n' > file.translated.txt |
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
frontend http | |
bind *:443 ssl crt /etc/ssl/certs/mycert.pem ciphers ECDHE-RSA-AES256-GCM-SHA384:ECDHE-RSA-AES128-GCM-SHA256:DHE-RSA-AES256-GCM-SHA384:DHE-RSA-AES128-GCM-SHA256:ECDHE-RSA-AES256-SHA384:ECDHE-RSA-AES128-SHA256:ECDHE-RSA-AES256-SHA:ECDHE-RSA-AES128-SHA:DHE-RSA-AES256-SHA256:DHE-RSA-AES128-SHA256:DHE-RSA-AES256-SHA:DHE-RSA-AES128-SHA:ECDHE-RSA-DES-CBC3-SHA:EDH-RSA-DES-CBC3-SHA:AES256-GCM-SHA384:AES128-GCM-SHA256:AES256-SHA256:AES128-SHA256:AES256-SHA:AES128-SHA:DES-CBC3-SHA:HIGH:!aNULL:!eNULL:!EXPORT:!DES:!MD5:!PSK:!RC4 | |
mode tcp | |
acl backend1 ssl_fc_sni backed1.domain.com | |
acl backend2 ssl_fc_sni backed2.domain.com | |
tcp-request inspect-delay 5s | |
use_backend backend1 if backend1 | |
use_backend backend2 if backend2 | |
backend backend1 |
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
frontend www | |
bind *:80 | |
mode tcp | |
acl network_allowed src 1.1.1.1 2.2.2.2 | |
tcp-request connection reject if !network_allowed | |
use_backend my_backend_server |
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
events: | |
- schedule: | |
name: 'MyEventName' | |
rate: cron(0 6 * * ? *) | |
enabled: true | |
input: | |
key: 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
#!/bin/bash | |
cd /usr/src | |
git clone https://github.com/DoubangoTelecom/webrtc2sip | |
export PREFIX=/opt/webrtc2sip | |
cd webrtc2sip | |
./autogen.sh | |
LDFLAGS=-ldl ./configure --prefix=$PREFIX | |
make | |
make install | |
cp -f ./config.xml $PREFIX/sbin/config.xml |
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 | |
echo gcc -O2 -include /usr/include/errno.h > admin/daemontools-0.76/src/conf-cc |
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 | |
AWS_ACCESS_KEY_ID=my_key \ | |
AWS_SECRET_ACCESS_KEY=my_secret \ | |
AWS_DEFAULT_REGION=us-west-2 \ | |
S3_BUCKET=my_bucket \ | |
MYSQL_HOST=host \ | |
MYSQL_PORT=port \ | |
MYSQL_USER=myuser \ | |
MYSQL_PASS=pass \ | |
MYSQL_DB=db \ |