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
| #!/usr/bin/env python | |
| import boto.sqs | |
| from boto.sqs.message import RawMessage | |
| conn = boto.sqs.connect_to_region('us-east-1') | |
| q = conn.get_queue('tiles-data-processing-queue-stage') | |
| q.set_message_class(RawMessage) | |
| m = q.read() |
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'; |
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 | |
| 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
| 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
| # 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
| # 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
| 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
| 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' | |
| }); |