]> git.quilime.com - plog.git/commitdiff
new post
authorGabriel Dunne <gdunne@quilime.com>
Mon, 14 Nov 2011 06:55:23 +0000 (22:55 -0800)
committerGabriel Dunne <gdunne@quilime.com>
Mon, 14 Nov 2011 06:55:23 +0000 (22:55 -0800)
content/code/osx_print_json [new file with mode: 0644]
pages/about

diff --git a/content/code/osx_print_json b/content/code/osx_print_json
new file mode 100644 (file)
index 0000000..c84c92d
--- /dev/null
@@ -0,0 +1,28 @@
+title = print formatted JSON, XML from osx command line
+date = mon, nov 14 2011
+tags = bash shell python json xml osx
+--
+
+via the command line:
+
+format json
+<pre class="prettyprint">
+cat unformatted.json | python -m json.tool
+</pre>
+
+save formated json to file
+<pre class="prettyprint">
+cat unformatted.json | python -m json.tool > formatted.json
+</pre>
+
+format json from clipboard
+<pre class="prettyprint">
+pbpaste | python -m json.tool
+</pre>
+
+format xml from clipboard
+<pre class="prettyprint">
+pbpaste | xmllint --format -
+</pre>
+`xmllint` is part of libxml2 and installed by default on OSX.
+
index 93cd4e569006f0ecbb34faf02d12c0f1b6447fbe..1b89431d7eb8e1da6074c8892d6f84874a995c2e 100644 (file)
@@ -1,6 +1,6 @@
 title = about
 --
-quilime is a codification of creative process and resources  
+a codification of creative process and resources  
 by **gabriel dunne** ([www](http://gabrieldunne.com), [email](&#x6d;&#x61;&#x69;&#108;&#x74;&#111;&#x3a;&#x67;&#x64;&#x75;&#x6e;&#110;&#x65;&#x40;&#x71;&#117;&#105;&#x6c;&#x69;&#x6d;&#101;&#x2e;&#x63;&#111;&#x6d;))
 <br />elsewhere:
 [github](http://github.com/quilime/),
@@ -11,8 +11,10 @@ by **gabriel dunne** ([www](http://gabrieldunne.com), [email](&#x6d;&#x61;&#x69;
 [ffffound](http://ffffound.com/home/quilime/found/),
 [@quilime](http://twitter.com/quilime/)
 
+quilime.com has taken many forms, originally operating as my online portfolio.   
+<a href="http://portfolio.quilime.com/">View an archive</a> of all projects.
 
+site update <a href="http://quilime.com/.rss" class="rss">rss</a>
 
-quilime.com is running on <a href="http://git.quilime.com/?p=plog.git;a=summary">plog</a>, an minimal, open source cms.
+built with <a href="http://git.quilime.com/?p=plog.git;a=summary">plog</a>, an minimal, opensource cms.
 
-<!--site update <a href="http://quilime.com/.rss" class="rss">rss</a>-->