Summary Info:
--------------------------------------
Snapshot create time: 2015-06-21T16:01:28+00:00
Restore delta : +60 minutes
Restored to : 2015-06-21T17:01:28+00:00
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
FROM python:2.7 | |
ENV PYTHONUNBUFFERED 1 | |
WORKDIR /app | |
EXPOSE 7001 | |
ENTRYPOINT gunicorn -b 0.0.0.0:7001 leaderboard.wsgi | |
RUN apt-get update && apt-get install -y binutils libproj-dev gdal-bin && apt-get -y clean | |
COPY ./requirements.txt /app/requirements.txt |
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
console.log('Loading event'); | |
var CLOUDSEARCH_ENDPOINT = < INSERT HERE > | |
var async = require('async'); | |
var jpath = require('json-path') | |
var zlib = require('zlib'); | |
var aws = require('aws-sdk'); | |
var s3 = new aws.S3({ | |
apiVersion: '2006-03-01' | |
}); |
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
Assumes Linux! | |
1) Create a new PV for docker | |
pvcreate -ff /dev/<free device or partition> | |
2) Create a new VG for docker (docker-vg) | |
vgcreate docker-vg /dev/the-one-you-used-above | |
3) Create a new LV for docker-data and docker-metadata; data should be much larger than meta. (docker-{data,meta}) | |
lvcreate -n docker-data -L <size>G /dev/docker-vg |
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
# cron changes | |
# Puppet Name: tiles_monitor_splice_tiles_index_crawl | |
SPLICE_SETTINGS=splice_config.SpliceConfig | |
* * * * * /usr/local/bin/splice_tiles_index_crawl.sh 2>&1 | logger -t splice_tiles_index_crawl | |
# due a bug in splice_tiles_index_crawl.sh failing sometimes, (greenlets, ew) | |
* * * * * /usr/local/bin/splice_tiles_watchdog.sh 180 | logger -t splice_tiles_index_crawl |
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
# NGINX | |
location / { | |
set $forwarded_for $proxy_add_x_forwarded_for; | |
if ($http_x_verify_ip) { | |
set $forwarded_for $http_x_verify_ip; | |
} |
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
function cfnvalidate { | |
aws cloudformation validate-template --template-body file://$1 | |
} |
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 | |
rm /tmp/process-log-shutdown.txt | |
rm /tmp/last-shutdown.txt | |
cat > "//usr/local/bin/fake-daemon.sh" << 'EOF' | |
#!/bin/sh | |
OUTFILE=/tmp/process-log-shutdown.txt | |
SLEEP_PID= |
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
// ==UserScript== | |
// @name realtor-ca-tweaks | |
// @namespace mostlygeek.com | |
// @description realtor.ca tweaks | |
// @version 1 | |
// @grant none | |
// @requiref https://cdnjs.cloudflare.com/ajax/libs/jquery/2.1.1/jquery.min.js | |
// ==/UserScript== | |
var el = $('#m_property_dtl_address') | |
var address = el.text() |
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 | |
sysctl -w net.ipv4.ip_local_port_range='2000 65000' | |
sysctl -w net.ipv4.tcp_window_scaling='1'; | |
sysctl -w net.ipv4.tcp_max_syn_backlog='3240000'; | |
sysctl -w net.core.somaxconn='65535'; | |
sysctl -w net.ipv4.tcp_max_tw_buckets='1440000'; | |
sysctl -w net.core.rmem_default='8388608'; | |
sysctl -w net.core.rmem_max='16777216'; | |
sysctl -w net.core.wmem_max='16777216'; |