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
'use strict'; | |
var url = require('url'); | |
var target = 'http://www.yourwebsite.com'; // Change this one | |
exports.handler = function(event, context, callback) { | |
var urlObject = url.parse(target); | |
var mod = require( | |
urlObject.protocol.substring(0, urlObject.protocol.length - 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
{ | |
"Version": "2012-10-17", | |
"Id": "arn:aws:sqs:YOUR-AWS-REGION:YOUR-AWS-ACCOUNT-ID:YOUR-QUEUE-NAME/SQSDefaultPolicy", | |
"Statement": [ | |
{ | |
"Sid": "example-statement-ID", | |
"Effect": "Allow", | |
"Principal": { | |
"AWS": "*" | |
}, |
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
mode http | |
http-request set-header X-SSL %[ssl_fc] | |
http-request set-header X-SSL-Client-Cert %[ssl_fc_has_crt] | |
http-request set-header X-SSL-Client-Verify %[ssl_c_verify] | |
http-request set-header X-SSL-Client-SHA1 %{+Q}[ssl_c_sha1,hex] | |
http-request set-header X-SSL-Client-DN %{+Q}[ssl_c_s_dn] | |
http-request set-header X-SSL-Client-CN %{+Q}[ssl_c_s_dn(cn)] | |
http-request set-header X-SSL-Issuer %{+Q}[ssl_c_i_dn] | |
http-request set-header X-SSL-Client-Not-Before %{+Q}[ssl_c_notbefore] | |
http-request set-header X-SSL-Client-Not-After %{+Q}[ssl_c_notafter] |
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
-module(generic_proxy). | |
-export([run/0]). | |
-define(PORT_FROM, 63790). | |
-define(PORT_TO, 6379). | |
-define(BACKLOG, 10000). | |
run() -> | |
{ok, Socket} = gen_tcp:listen(0, [ |
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 | |
./configure --with-ld-opt="-L/my/ssl/location" |
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
cd /usr/src | |
wget "http://downloads.sourceforge.net/project/sox/sox/14.4.2/sox-14.4.2.tar.bz2?r=https%3A%2F%2Fsourceforge.net%2Fprojects%2Fsox%2Ffiles%2Fsox%2F14.4.2%2F&ts=1476009578&use_mirror=ufpr" -O sox-14.4.2.tar.bz2 | |
tar jxf sox-14.4.2.tar.bz2 | |
cd sox-14.4.2 | |
CPPFLAGS="-I/usr/libmad-0.15.1b/include -I/usr/lame-3.99.5/include " \ | |
LDFLAGS="-L/usr/libmad-0.15.1b/lib -L/usr/lame-3.99.5/lib -L/usr/libgsm-1.0.10/lib" \ | |
./configure --prefix=/usr/sox-14.4.2 --disable-shared --enable-static | |
make | |
make install |
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 /tmp | |
file=$(date +%a).sql | |
mysqldump \ | |
--host ${MYSQL_HOST} \ | |
--port ${MYSQL_PORT} \ | |
-u ${MYSQL_USER} \ | |
--password="${MYSQL_PASS}" \ | |
${MYSQL_DB} > ${file} | |
if [ "${?}" -eq 0 ]; then |
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
exten => _X.,1,Set(CURL_RESULT=${CURL(http://domain.com/test.txt)}) | |
same => n,GotoIf($["${CURL_RESULT}" = "1"]?result1:result2) | |
same => n(result1),Verbose(Result 1) | |
same => n,Hangup | |
same => n(result2),Verbose(Result other) | |
same => n,Hangup |
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 checkout https://github.com/Distrotech/libilbc-webrtc | |
cd libilbc-webrtc | |
./configure | |
make | |
make install |
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
version: 0.1 | |
phases: | |
install: | |
commands: | |
- printenv | |
- npm install | |
build: | |
commands: | |
- npm run build |
NewerOlder