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
| SSLProxyEngine on | |
| # Graphite URLs that are buried in JS that we can't easily rewrite, we issue an http redirect | |
| # - /content/js/ext/resources/images/default/s.gif | |
| # - /render | |
| RewriteEngine On | |
| RewriteCond %{HTTP_HOST} ^admin\.example\.com [NC] | |
| RewriteRule ^/content/js/ext/resources/images/default/s.gif https://graphite-admin.example.com/content/js/ext/resources/images/default/s.gif [L,R] | |
| RewriteRule ^/render https://graphite-admin.example.com/render [L,R] |
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
| %% Boot system extracted from rabbitmq-server source code | |
| %% The RabbitMQ license banner follows: | |
| %% | |
| %% The contents of this file are subject to the Mozilla Public License | |
| %% Version 1.1 (the "License"); you may not use this file except in | |
| %% compliance with the License. You may obtain a copy of the License | |
| %% at http://www.mozilla.org/MPL/ | |
| %% | |
| %% Software distributed under the License is distributed on an "AS IS" | |
| %% basis, WITHOUT WARRANTY OF ANY KIND, either express or implied. See |
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
| $ uname -a | |
| Darwin RJ3000.local 12.2.0 Darwin Kernel Version 12.2.0: Sat Aug 25 00:48:52 PDT 2012; root:xnu-2050.18.24~1/RELEASE_X86_64 x86_64 | |
| $ launchctl limit | |
| cpu unlimited unlimited | |
| filesize unlimited unlimited | |
| data unlimited unlimited | |
| stack 8388608 67104768 | |
| core 0 unlimited | |
| rss unlimited unlimited |
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
| // Generic TCP proxy that adds delay on packets in both directions | |
| var net = require('net'), | |
| repl = require('repl'), | |
| sys = require('sys'); | |
| var listenPort = 19999, |
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
| *** CLICK "RAW" LINK ABOVE TO GET IT LINE WRAPPED ETC *** | |
| \d+ ircevents | |
| Column | Type | Modifiers | |
| -----------+---------+------------------------ | |
| buffer | integer | not null | |
| id | bigint | not null <---------------- unixtime in microsecs (since epoch*1,000,000) | |
| type | text | not null |
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 | |
| # Install fake erlang packages, then the ESL package | |
| # Afterwards, installing packages that depend on erlang, like rabbitmq, | |
| # will use the ESL packaged erlang without installing the older disto ones | |
| # | |
| apt-get install equivs | |
| # Create fake erlang packages, since we are using esl-erlang instead | |
| cd /tmp | |
| apt-get install -y equivs |
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
| <?php | |
| // test str/*{{{*/: | |
| $str = <<<EOF | |
| { | |
| "before": "5aef35982fb2d34e9d9d4502f6ede1072793222d", | |
| "repository": { | |
| "url": "http://github.com/defunkt/github", | |
| "name": "github", | |
| "description": "You're lookin' at it.", | |
| "watchers": 5, |
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(sc). | |
| -define(DEBUG(S,A), io:format(S++"\n",A)). | |
| -behaviour(gen_server). | |
| %% API | |
| -export([start_link/0, start/0]). | |
| %% gen_server callbacks | |
| -export([init/1, handle_call/3, handle_cast/2, handle_info/2, |
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
| %% Start a connection to the server | |
| {ok, Connection} = amqp_connection:start(#amqp_params_network{}), | |
| %% Once you have a connection to the server, you can start an AMQP channel | |
| {ok, Channel} = amqp_connection:open_channel(Connection), | |
| %% Now that you have access to a connection with the server, you can declare a queue and bind it to an exchange | |
| %% Routing topology: | |
| %% | |
| %% All msgs go to irc_x (fanout exchange) | |
| %% exchange-to-exchange bindings spread msgs to these exchanges: |
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
| net.ipv4.conf.all.rp_filter=1 | |
| net.ipv4.icmp_echo_ignore_broadcasts=1 | |
| kernel.shmmax = 1500000000 | |
| net.ipv4.ip_local_port_range = 1024 65535 | |
| vm.overcommit_memory = 1 | |
| fs.file-max = 1000000 | |
| # General gigabit tuning: |