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
| # 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'; |
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
| # | |
| # Settings for EdgeRouter Lite Traffic Shaping for a Shaw 25/2.5mbit connection | |
| # | |
| set traffic-policy shaper shaw25mbit | |
| set traffic-policy shaper shaw25mbit description "QoS policy for home network" | |
| set traffic-policy shaper shaw25mbit bandwidth 25mbit | |
| # give priority to DNS / SSH because lag sucks here | |
| set traffic-policy shaper shaw25mbit class 10 description "top" | |
| set traffic-policy shaper shaw25mbit class 10 bandwidth 25% |
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 | |
| # == ABOUT == | |
| # this script is run when the WAN IP address changes from the | |
| # asuswrt (https://github.com/RMerl/asuswrt-merlin) project | |
| # It updates the ddns name from freedns.afraid.org | |
| # the base64 key part from the update url you get from freedns.afraid.org | |
| # don't forget to copy/paste the "=" if it exists at the end. |