Last active
December 14, 2015 06:39
-
-
Save trevordixon/5044646 to your computer and use it in GitHub Desktop.
Macro to parse that web server log.
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
Show hidden characters
| [ | |
| { | |
| "args": | |
| { | |
| "characters": "\"" | |
| }, | |
| "command": "insert" | |
| }, | |
| { | |
| "args": null, | |
| "command": "exit_insert_mode" | |
| }, | |
| { | |
| "args": | |
| { | |
| "action_args": null, | |
| "action_command": null, | |
| "motion_args": | |
| { | |
| "character": " ", | |
| "extend": true | |
| }, | |
| "motion_clip_to_line": true, | |
| "motion_command": "vi_move_to_character", | |
| "motion_inclusive": true, | |
| "motion_mode": 0.0 | |
| }, | |
| "command": "vi_eval" | |
| }, | |
| { | |
| "args": | |
| { | |
| "commands": | |
| [ | |
| [ | |
| "enter_visual_mode", | |
| null | |
| ], | |
| [ | |
| "vi_eval", | |
| { | |
| "action_args": null, | |
| "action_command": null, | |
| "motion_args": | |
| { | |
| "character": " ", | |
| "extend": true | |
| }, | |
| "motion_clip_to_line": true, | |
| "motion_command": "vi_move_to_character", | |
| "motion_inclusive": true, | |
| "motion_mode": 0.0 | |
| } | |
| ], | |
| [ | |
| "vi_eval", | |
| { | |
| "action_args": null, | |
| "action_command": null, | |
| "motion_args": | |
| { | |
| "character": " ", | |
| "extend": true | |
| }, | |
| "motion_clip_to_line": true, | |
| "motion_command": "vi_move_to_character", | |
| "motion_inclusive": true, | |
| "motion_mode": 0.0 | |
| } | |
| ], | |
| [ | |
| "vi_eval", | |
| { | |
| "action_args": null, | |
| "action_command": null, | |
| "motion_args": | |
| { | |
| "extend": true, | |
| "forward": true, | |
| "visual": false | |
| }, | |
| "motion_clip_to_line": false, | |
| "motion_command": "vi_move_by_characters_in_line", | |
| "motion_inclusive": false, | |
| "motion_mode": 0.0 | |
| } | |
| ], | |
| [ | |
| "vi_eval", | |
| { | |
| "action_args": | |
| { | |
| "insert_command": "vi_delete" | |
| }, | |
| "action_command": "enter_insert_mode", | |
| "motion_args": null, | |
| "motion_clip_to_line": false, | |
| "motion_command": null, | |
| "motion_inclusive": false, | |
| "motion_mode": 0.0 | |
| } | |
| ], | |
| [ | |
| "insert", | |
| { | |
| "characters": "\",\"" | |
| } | |
| ], | |
| [ | |
| "exit_insert_mode", | |
| null | |
| ] | |
| ] | |
| }, | |
| "command": "sequence" | |
| }, | |
| { | |
| "args": | |
| { | |
| "action_args": null, | |
| "action_command": null, | |
| "motion_args": | |
| { | |
| "character": "]", | |
| "extend": true | |
| }, | |
| "motion_clip_to_line": true, | |
| "motion_command": "vi_move_to_character", | |
| "motion_inclusive": true, | |
| "motion_mode": 0.0 | |
| }, | |
| "command": "vi_eval" | |
| }, | |
| { | |
| "args": | |
| { | |
| "commands": | |
| [ | |
| [ | |
| "insert", | |
| { | |
| "characters": "\"" | |
| } | |
| ], | |
| [ | |
| "right_delete", | |
| null | |
| ], | |
| [ | |
| "right_delete", | |
| null | |
| ], | |
| [ | |
| "insert", | |
| { | |
| "characters": "," | |
| } | |
| ], | |
| [ | |
| "move", | |
| { | |
| "by": "characters", | |
| "forward": true | |
| } | |
| ], | |
| [ | |
| "exit_insert_mode", | |
| null | |
| ] | |
| ] | |
| }, | |
| "command": "sequence" | |
| }, | |
| { | |
| "args": | |
| { | |
| "action_args": null, | |
| "action_command": null, | |
| "motion_args": | |
| { | |
| "extend": true, | |
| "forward": true, | |
| "visual": false | |
| }, | |
| "motion_clip_to_line": false, | |
| "motion_command": "vi_move_by_characters_in_line", | |
| "motion_inclusive": false, | |
| "motion_mode": 0.0 | |
| }, | |
| "command": "vi_eval" | |
| }, | |
| { | |
| "args": | |
| { | |
| "commands": | |
| [ | |
| [ | |
| "enter_visual_mode", | |
| null | |
| ], | |
| [ | |
| "vi_eval", | |
| { | |
| "action_args": null, | |
| "action_command": null, | |
| "motion_args": | |
| { | |
| "character": " ", | |
| "extend": true | |
| }, | |
| "motion_clip_to_line": true, | |
| "motion_command": "vi_move_to_character", | |
| "motion_inclusive": true, | |
| "motion_mode": 0.0 | |
| } | |
| ], | |
| [ | |
| "vi_eval", | |
| { | |
| "action_args": | |
| { | |
| }, | |
| "action_command": "vi_delete", | |
| "motion_args": null, | |
| "motion_clip_to_line": false, | |
| "motion_command": null, | |
| "motion_inclusive": false, | |
| "motion_mode": 0.0 | |
| } | |
| ] | |
| ] | |
| }, | |
| "command": "sequence" | |
| }, | |
| { | |
| "args": | |
| { | |
| "action_args": null, | |
| "action_command": null, | |
| "motion_args": | |
| { | |
| "character": " ", | |
| "extend": true | |
| }, | |
| "motion_clip_to_line": true, | |
| "motion_command": "vi_move_to_character", | |
| "motion_inclusive": true, | |
| "motion_mode": 0.0 | |
| }, | |
| "command": "vi_eval" | |
| }, | |
| { | |
| "args": | |
| { | |
| "commands": | |
| [ | |
| [ | |
| "enter_visual_mode", | |
| null | |
| ], | |
| [ | |
| "vi_eval", | |
| { | |
| "action_args": null, | |
| "action_command": null, | |
| "motion_args": | |
| { | |
| "character": "\"", | |
| "extend": true | |
| }, | |
| "motion_clip_to_line": true, | |
| "motion_command": "vi_move_to_character", | |
| "motion_inclusive": true, | |
| "motion_mode": 0.0 | |
| } | |
| ], | |
| [ | |
| "vi_eval", | |
| { | |
| "action_args": null, | |
| "action_command": null, | |
| "motion_args": | |
| { | |
| "extend": true, | |
| "forward": false | |
| }, | |
| "motion_clip_to_line": false, | |
| "motion_command": "vi_move_by_characters_in_line", | |
| "motion_inclusive": false, | |
| "motion_mode": 0.0 | |
| } | |
| ], | |
| [ | |
| "vi_eval", | |
| { | |
| "action_args": | |
| { | |
| }, | |
| "action_command": "vi_delete", | |
| "motion_args": null, | |
| "motion_clip_to_line": false, | |
| "motion_command": null, | |
| "motion_inclusive": false, | |
| "motion_mode": 0.0 | |
| } | |
| ] | |
| ] | |
| }, | |
| "command": "sequence" | |
| }, | |
| { | |
| "args": | |
| { | |
| "commands": | |
| [ | |
| [ | |
| "move", | |
| { | |
| "by": "characters", | |
| "forward": true, | |
| "register": "\"" | |
| } | |
| ], | |
| [ | |
| "insert", | |
| { | |
| "characters": "," | |
| } | |
| ], | |
| [ | |
| "exit_insert_mode", | |
| null | |
| ] | |
| ] | |
| }, | |
| "command": "sequence" | |
| }, | |
| { | |
| "args": | |
| { | |
| "action_args": null, | |
| "action_command": null, | |
| "motion_args": | |
| { | |
| "extend": true, | |
| "forward": true, | |
| "visual": false | |
| }, | |
| "motion_clip_to_line": false, | |
| "motion_command": "vi_move_by_characters_in_line", | |
| "motion_inclusive": false, | |
| "motion_mode": 0.0 | |
| }, | |
| "command": "vi_eval" | |
| }, | |
| { | |
| "args": | |
| { | |
| "action_args": null, | |
| "action_command": null, | |
| "motion_args": | |
| { | |
| "extend": true, | |
| "forward": true, | |
| "visual": false | |
| }, | |
| "motion_clip_to_line": true, | |
| "motion_command": "vi_move_by_characters", | |
| "motion_inclusive": false, | |
| "motion_mode": 0.0 | |
| }, | |
| "command": "vi_eval" | |
| }, | |
| { | |
| "args": | |
| { | |
| "action_args": null, | |
| "action_command": null, | |
| "motion_args": | |
| { | |
| "extend": true, | |
| "forward": false | |
| }, | |
| "motion_clip_to_line": false, | |
| "motion_command": "vi_move_by_characters_in_line", | |
| "motion_inclusive": false, | |
| "motion_mode": 0.0 | |
| }, | |
| "command": "vi_eval" | |
| }, | |
| { | |
| "args": | |
| { | |
| "commands": | |
| [ | |
| [ | |
| "enter_visual_mode", | |
| null | |
| ], | |
| [ | |
| "vi_eval", | |
| { | |
| "action_args": null, | |
| "action_command": null, | |
| "motion_args": | |
| { | |
| "character": " ", | |
| "extend": true | |
| }, | |
| "motion_clip_to_line": true, | |
| "motion_command": "vi_move_to_character", | |
| "motion_inclusive": true, | |
| "motion_mode": 0.0 | |
| } | |
| ], | |
| [ | |
| "vi_eval", | |
| { | |
| "action_args": null, | |
| "action_command": null, | |
| "motion_args": | |
| { | |
| "character": " ", | |
| "extend": true | |
| }, | |
| "motion_clip_to_line": true, | |
| "motion_command": "vi_move_to_character", | |
| "motion_inclusive": true, | |
| "motion_mode": 0.0 | |
| } | |
| ], | |
| [ | |
| "vi_eval", | |
| { | |
| "action_args": null, | |
| "action_command": null, | |
| "motion_args": | |
| { | |
| "character": " ", | |
| "extend": true | |
| }, | |
| "motion_clip_to_line": true, | |
| "motion_command": "vi_move_to_character", | |
| "motion_inclusive": true, | |
| "motion_mode": 0.0 | |
| } | |
| ], | |
| [ | |
| "vi_eval", | |
| { | |
| "action_args": | |
| { | |
| }, | |
| "action_command": "vi_delete", | |
| "motion_args": null, | |
| "motion_clip_to_line": false, | |
| "motion_command": null, | |
| "motion_inclusive": false, | |
| "motion_mode": 0.0 | |
| } | |
| ] | |
| ] | |
| }, | |
| "command": "sequence" | |
| }, | |
| { | |
| "args": | |
| { | |
| "action_args": null, | |
| "action_command": null, | |
| "motion_args": | |
| { | |
| "character": "\"", | |
| "extend": true | |
| }, | |
| "motion_clip_to_line": true, | |
| "motion_command": "vi_move_to_character", | |
| "motion_inclusive": true, | |
| "motion_mode": 0.0 | |
| }, | |
| "command": "vi_eval" | |
| }, | |
| { | |
| "args": | |
| { | |
| "action_args": null, | |
| "action_command": null, | |
| "motion_args": | |
| { | |
| "extend": true, | |
| "forward": true, | |
| "visual": false | |
| }, | |
| "motion_clip_to_line": false, | |
| "motion_command": "vi_move_by_characters_in_line", | |
| "motion_inclusive": false, | |
| "motion_mode": 0.0 | |
| }, | |
| "command": "vi_eval" | |
| }, | |
| { | |
| "args": | |
| { | |
| "character": "," | |
| }, | |
| "command": "replace_character" | |
| }, | |
| { | |
| "args": | |
| { | |
| "action_args": null, | |
| "action_command": null, | |
| "motion_args": | |
| { | |
| "character": "\"", | |
| "extend": true | |
| }, | |
| "motion_clip_to_line": true, | |
| "motion_command": "vi_move_to_character", | |
| "motion_inclusive": true, | |
| "motion_mode": 0.0 | |
| }, | |
| "command": "vi_eval" | |
| }, | |
| { | |
| "args": | |
| { | |
| "action_args": null, | |
| "action_command": null, | |
| "motion_args": | |
| { | |
| "character": "\"", | |
| "extend": true | |
| }, | |
| "motion_clip_to_line": true, | |
| "motion_command": "vi_move_to_character", | |
| "motion_inclusive": true, | |
| "motion_mode": 0.0 | |
| }, | |
| "command": "vi_eval" | |
| }, | |
| { | |
| "args": | |
| { | |
| "action_args": null, | |
| "action_command": null, | |
| "motion_args": | |
| { | |
| "extend": true, | |
| "forward": true, | |
| "visual": false | |
| }, | |
| "motion_clip_to_line": false, | |
| "motion_command": "vi_move_by_characters_in_line", | |
| "motion_inclusive": false, | |
| "motion_mode": 0.0 | |
| }, | |
| "command": "vi_eval" | |
| }, | |
| { | |
| "args": | |
| { | |
| "commands": | |
| [ | |
| [ | |
| "enter_visual_mode", | |
| null | |
| ], | |
| [ | |
| "vi_eval", | |
| { | |
| "action_args": null, | |
| "action_command": null, | |
| "motion_args": | |
| { | |
| "character": " ", | |
| "extend": true | |
| }, | |
| "motion_clip_to_line": true, | |
| "motion_command": "vi_move_to_character", | |
| "motion_inclusive": true, | |
| "motion_mode": 0.0 | |
| } | |
| ], | |
| [ | |
| "vi_eval", | |
| { | |
| "action_args": null, | |
| "action_command": null, | |
| "motion_args": | |
| { | |
| "character": " ", | |
| "extend": true | |
| }, | |
| "motion_clip_to_line": true, | |
| "motion_command": "vi_move_to_character", | |
| "motion_inclusive": true, | |
| "motion_mode": 0.0 | |
| } | |
| ], | |
| [ | |
| "vi_eval", | |
| { | |
| "action_args": | |
| { | |
| "insert_command": "vi_delete" | |
| }, | |
| "action_command": "enter_insert_mode", | |
| "motion_args": null, | |
| "motion_clip_to_line": false, | |
| "motion_command": null, | |
| "motion_inclusive": false, | |
| "motion_mode": 0.0 | |
| } | |
| ], | |
| [ | |
| "insert", | |
| { | |
| "characters": "," | |
| } | |
| ], | |
| [ | |
| "insert", | |
| { | |
| "characters": "\"" | |
| } | |
| ], | |
| [ | |
| "exit_insert_mode", | |
| null | |
| ] | |
| ] | |
| }, | |
| "command": "sequence" | |
| }, | |
| { | |
| "args": | |
| { | |
| "action_args": null, | |
| "action_command": null, | |
| "motion_args": | |
| { | |
| "extend": true, | |
| "repeat": 1.0 | |
| }, | |
| "motion_clip_to_line": true, | |
| "motion_command": "vi_move_to_hard_eol", | |
| "motion_inclusive": true, | |
| "motion_mode": 0.0 | |
| }, | |
| "command": "vi_eval" | |
| }, | |
| { | |
| "args": | |
| { | |
| "character": "\"" | |
| }, | |
| "command": "replace_character" | |
| } | |
| ] |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment