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
| This test creates keyed messages and pushes them to one Kafka broker (source). | |
| Mirror maker is consuming from source and pushing to destination. | |
| After publishing, the test consumes first from source, then destination, and compares the counts per partition. | |
| Output: | |
| running with topic EQEVYCTWOV | |
| publishing 10000 messages to EQEVYCTWOV | |
| partition source destination match |
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
| // this gets you most of the way to being able to paste your account information | |
| var trs = document.querySelectorAll('tr, input[type=text]'); | |
| for(var i = 0; i < trs.length; i++){ | |
| var tr = trs[i]; | |
| tr.onpaste = null; | |
| tr.onkeypress = null; | |
| tr.oncontextmenu = null; | |
| } | |
| document.removeEventListener('mousedown') |
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
| $DOCKER_MACHINE --debug create -d virtualbox --virtualbox-memory 2048 $VM | |
| executing: /usr/local/bin/VBoxManage | |
| STDOUT: Oracle VM VirtualBox Command Line Management Interface Version 5.0.2 | |
| (C) 2005-2015 Oracle Corporation | |
| All rights reserved. | |
| Usage: | |
| VBoxManage [<general option>] <command> |
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
| ➜ tcs git:(master) git checkout feature/RED-599-Bundling | |
| Branch feature/RED-599-Bundling set up to track remote branch feature/RED-599-Bundling from origin. | |
| Switched to a new branch 'feature/RED-599-Bundling' | |
| ➜ tcs git:(feature/RED-599-Bundling) git rebase feature/fanatics | |
| First, rewinding head to replay your work on top of it... | |
| Applying: PDP Round swatches, exposed sizing. | |
| Applying: More updates to the PDP; circle swatches, flush left, fixed color swatch | |
| Using index info to reconstruct a base tree... | |
| M TCS.Website/Areas/Fullsite/Views/Catalog/ProductDetails.ascx | |
| M TCS.Website/css/fullsite/global.css |
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
| ➜ bower-test npm -g list | |
| ^C | |
| ➜ bower-test npm -g list | grep bower | |
| ├─┬ [email protected] | |
| │ ├─┬ [email protected] | |
| │ ├── [email protected] | |
| │ ├─┬ [email protected] | |
| │ ├── [email protected] | |
| │ ├─┬ [email protected] | |
| ├─┬ [email protected] |
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
| # Scrubs a file of ip addresses, renaming anything that isn't broadcast to 10.0.0.(1-n) | |
| import re | |
| import sys | |
| pattern = '(?:[0-9]{1,3}\.){3}[0-9]{1,3}' | |
| def main(): | |
| with open('output.txt', 'r') as output_file: | |
| output = output_file.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
| const output = {} | |
| for (const verb of Object.keys(server.router.routes)) { | |
| console.log(verb) | |
| for (const route of server.router.routes[verb]) { | |
| const {method, spec: {path}} = route | |
| if (!output[path]) { | |
| output[path] = [] | |
| } | |
| output[path].push(method) | |
| } |
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
| # ssh to circleci.fanaticslabs.com | |
| circleci dev-console |
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
| // Base implementation: | |
| function videoExperience(options) { | |
| var elem = document.createElement("...") | |
| // attach handlers, set up video/images/etc | |
| return elem | |
| } | |
| // TCS: | |
| var video = videoExperience(options) | |
| document.getElementById("videoContainer").appendChild(video) |
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
| # takes json from ajax request on list of kindle ebooks, returns title, author, url | |
| cat books.json | jq '.GetContentsForCollection | .asinDetails[] | .title + " - " + .authors + " www.amazon.com" + .dpURL' |