This file contains hidden or 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 dependencies. | |
*/ | |
var Promise = require('bluebird'); | |
var AWS = require('aws-sdk'); | |
var config = require('../config'); | |
var awsConfig = {region: 'eu-west-1', apiVersion: '2010-03-31'}; | |
awsConfig.accessKeyId = config.sns.accessKeyId; | |
awsConfig.secretAccessKey = config.sns.secretAccessKey; |
This file contains hidden or 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/sh | |
# | |
# nginx - this script starts and stops the nginx daemon | |
# | |
# chkconfig: - 85 15 | |
# description: NGINX is an HTTP(S) server, HTTP(S) reverse \ | |
# proxy and IMAP/POP3 proxy server | |
# processname: nginx | |
# config: /etc/nginx/nginx.conf | |
# config: /etc/sysconfig/nginx |
This file contains hidden or 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 "kill gpg-agent" | |
code=0 | |
while [ 1 -ne $code ]; do | |
killall gpg-agent | |
code=$? | |
sleep 1 | |
done |
This file contains hidden or 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
ch.setFormatter(logging.Formatter('%(asctime)s - %(name)s - %(levelname)s - %(message)s')) |
This file contains hidden or 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
# block specific user agents used for evil | |
if ($http_user_agent ~* "Purebot|Lipperhey|MaMa CaSpEr|libwww-perl|Mail.Ru|gold crawler|morfeus fucking scanner|ZmEu") { | |
return 403; | |
} | |
# Secure WP-login a bit better | |
set $blockemptyuseragent C; | |
if ($http_user_agent = '') { | |
set $blockemptyuseragent A; | |
} |
This file contains hidden or 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
where: { | |
created_at: { | |
$between: [ | |
moment().subtract(averageInDays, 'days').format('YYYY-MM-DD HH:mm:ss'), | |
moment().format('YYYY-MM-DD HH:mm:ss') | |
] | |
} | |
} |
This file contains hidden or 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
# Run deploy | |
- command: "echo `date +%s`" | |
register: timestamp | |
- command: "/usr/bin/sh /root/deploy.sh master release {{ timestamp.stdout }}" | |
async: 600 | |
poll: 10 |
This file contains hidden or 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
svn st | grep ^D | cut -c9- | xargs svn revert | |
svn st | grep ! | cut -c9- | xargs svn rm |
This file contains hidden or 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
05-05 14:51:45.123: W/System.err(26850): javax.net.ssl.SSLPeerUnverifiedException: No peer certificate | |
05-05 14:51:45.124: W/System.err(26850): at com.android.org.conscrypt.SSLNullSession.getPeerCertificates(SSLNullSession.java:104) | |
05-05 14:51:45.124: W/System.err(26850): at org.apache.http.conn.ssl.AbstractVerifier.verify(AbstractVerifier.java:98) | |
05-05 14:51:45.124: W/System.err(26850): at org.apache.http.conn.ssl.SSLSocketFactory.createSocket(SSLSocketFactory.java:393) | |
05-05 14:51:45.124: W/System.err(26850): at org.apache.http.impl.conn.DefaultClientConnectionOperator.openConnection(DefaultClientConnectionOperator.java:170) | |
05-05 14:51:45.124: W/System.err(26850): at org.apache.http.impl.conn.AbstractPoolEntry.open(AbstractPoolEntry.java:169) | |
05-05 14:51:45.124: W/System.err(26850): at org.apache.http.impl.conn.AbstractPooledConnAdapter.open(AbstractPooledConnAdapter.java:124) | |
05-05 14:51:45.124: W/System.err(26850): at org.apache.http.impl.client.DefaultRequestDirector.execute(DefaultRequestDirec |
This file contains hidden or 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 /tmp; npm i dtrace-provider | |
\ | |
> [email protected] install /private/tmp/node_modules/dtrace-provider | |
> node scripts/install.js | |
--------------- | |
Building dtrace-provider failed with exit code 1 and signal 0 | |
re-run install with environment variable V set to see the build output | |
--------------- | |
[email protected] node_modules/dtrace-provider |