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 | |
| """Script to output the token range ownership for Cassandra nodes. | |
| usage: | |
| $ ./token_range.py --interactive 154009024815050802110273337963779530663 141704132449535340642001248672108470009 102889564695022956386161396156024583904 | |
| 154009024815050802110273337963779530663 141704132449535340642001248672108470009 102889564695022956386161396156024583904 | |
| 69.95% - 102889564695022956386161396156024583904 | |
| 22.81% - 141704132449535340642001248672108470009 | |
| 7.23% - 154009024815050802110273337963779530663 | |
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 | |
| """Tool for profiling Cassandra query performance using reverse comparators. | |
| Tests are run by profile() multiple times and the 'Read Latency' is | |
| extracted using node tool. | |
| Usage: | |
| #Create the schema using the cassandra-cli. |
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 | |
| # encoding: utf-8 | |
| """ | |
| Creates a directory of sym links to SSTables with a number higher than | |
| a specified value. | |
| Handy when you want to copy a delta. | |
| See command line help for usage. |
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 | |
| # encoding: utf-8 | |
| """ | |
| Changes the format specifier on SSTables **IN PLACE** | |
| e.g. change | |
| TwitterUserHistoricalValues-h-20983-Data.db | |
| to be | |
| TwitterUserHistoricalValues-g-20983-Data.db |
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
| "".join("{0:x}".format(ord(c)) for c in "thekey") |
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
| Using | |
| distribute==0.6.25 | |
| pip 1.0.2 | |
| Works in dev when using this in the pip requirements file (relative source reference)... | |
| -e packages/mas_common | |
| -e packages/mas_hooks | |
| Fails when... | |
| * building sdist for the packages |
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
| aarons-MBP-2011:ReferenceLibrary aaron$ curl keys.gnupg.net | |
| <?xml version="1.0" encoding="UTF-8"?> | |
| <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.1//EN" "http://www.w3.org/TR/xhtml11/DTD/xhtml11.dtd"> | |
| <html xmlns="http://www.w3.org/1999/xhtml"> | |
| <head><title>Document has moved</title></head> | |
| <body><h1>Document has moved</h1> | |
| <p>This document has moved to <a href="http://mud.stack.nl/">http://mud.stack.nl/</a>.</p></body></html> | |
| aarons-MBP-2011:ReferenceLibrary aaron$ |
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
| public class NanoTest | |
| { | |
| /** | |
| * usage: NanoTest - run for 100ms and count unique results from System.nanoTest() | |
| * NanoText x - run for x ms and count unique results from System.nanoTest() | |
| * @param args | |
| */ | |
| public static void main(String[] args) | |
| { | |
| final long duration = (args.length > 0 ? Long.parseLong(args[0]) : 100); |
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
| while true; do date; diff <(nodetool -h localhost netstats) <(sleep 5 && nodetool -h localhost netstats); 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
| From: aaron morton | |
| Subject: Fwd: Wellington Airport Website feedback: Airport Service, Aaron Morton | |
| Date: 28 June 2012 3:39:04 PM NZST | |
| To: leonie.gill@wcc.govt.nz | |
| Hi, | |
| I understand you are the Councillor for the Eastern suburbs. I live in Miramar and received the following response from the airport in response to an enquiry about the proposed road changes. | |
| I have asked them for evidence to support their claim that "Stewart Duff Dive is not a public road but part of the airport, ". |