- How to pretty print JSON record
echo '{"name":"value"}' | python -mjson.tool
Notes about various (technical) topics and encountered or solved puzzles from engineering, devops or networking disciplines.
echo '{"name":"value"}' | python -mjson.tool
# (1) Example can be found here | |
# https://github.com/rtomaszewski/dotfiles | |
# (2) | |
#alias homeshick="source $HOME/.homesick/repos/homeshick/bin/homeshick.sh" | |
git clone git://github.com/andsens/homeshick.git $HOME/.homesick/repos/homeshick | |
source $HOME/.homesick/repos/homeshick/homeshick.sh | |
# (3) | |
homeshick clone rtomaszewski/dotfiles | |
# because we don't use 'home' directory in the dotfiles repository we use this workaround | |
homeshick generate local | |
homeshick cd local | |
cd home | |
find ../../../repos/dotfiles -maxdepth 1 ! -name .git -a ! -name dotfiles -exec ln -s {} . \; | |
# (4) | |
homeshick link | |
# (5) | |
cat $HOME/.mydotfiles >> $HOME/.bashrc |
document.body.innerHTML="this is now your new page" "this is now your new page"
$ node > require("js-beautify") { [Function] js: [Function: js_beautify], css: [Function: css_beautify], html: [Function], js_beautify: [Function: js_beautify], css_beautify: [Function: css_beautify], html_beautify: [Function] } >
... Sublime2\Data\Packages\CodeFormatter\To trigger the formatting:
view.run_command("code_formatter")References
Unknown macro command find_all_under
Line : aaa comment1 comment2 comment3 Line : bbb comment4 comment5
[ { "args": { "by": "characters", "extend": true, "forward": true }, "command": "move" }, { "args": null, "command": "find_all_under" } ]
view.window().run_command("find_all_under")
view.run_command("device_list")