My static website generator using poole https://www.xythobuz.de
您最多选择25个主题 主题必须以字母或数字开头,可以包含连字符 (-),并且长度不得超过35个字符

2013_05_17_itunes.html 7.7KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146
  1. <!DOCTYPE html>
  2. <html>
  3. <head>
  4. <meta charset="utf-8" />
  5. <title>Blog (#) xythobuz.de</title>
  6. <meta name="description" content="Electronics &amp; Software Projects" />
  7. <meta name="keywords" content="xythobuz" />
  8. <meta name="viewport" content="width=device-width, initial-scale=1.0">
  9. <link rel="author" href="/xythobuz@xythobuz.de">
  10. <link rel="shortcut icon" href="/img/favicon.ico">
  11. <link rel="alternate" type="application/rss+xml" title="Blog" href="/rss.xml">
  12. <link type="text/css" rel="stylesheet" href="/css/sh_bright.min.css" />
  13. <link rel="stylesheet" href="/css/bootstrap.css" type="text/css" media="screen" />
  14. <link rel="stylesheet" href="/css/gh-fork-ribbon.css" />
  15. <link href='http://fonts.googleapis.com/css?family=Droid+Sans:400,700' rel='stylesheet' type='text/css'>
  16. <script type="text/javascript" src="/js/sh_main.js"></script>
  17. <script src="//ajax.googleapis.com/ajax/libs/jquery/2.0.1/jquery.min.js"></script>
  18. <script type="text/javascript" src="/js/bootstrap.js"></script>
  19. </head>
  20. <body onload="sh_highlightDocument('/js/sh/', '.min.js');" style="font-size: 1.1em; font-family: 'Droid Sans', sans-serif;">
  21. <div class="navbar">
  22. <div class="navbar-inner">
  23. <ul class="nav">
  24. <li><a href="/index.html">Home</a></li>
  25. <li><a href="/blog.html">Blog</a></li>
  26. <li><a href="/contact.html">Contact</a></li>
  27. <li class="dropdown"><a href="/software.html" class="dropdown-toggle" data-toggle="dropdown">Software<b class="caret"></b></a><ul class="dropdown-menu">
  28. <li><a href="/avrnetstack.html">avrNetStack</a></li>
  29. <li><a href="/avrserial.html">AVR Serial Library</a></li>
  30. <li><a href="/yasab.html">YASAB AVR Bootloader</a></li>
  31. <li><a href="/c250.html">Mio C250 Unlock</a></li>
  32. <li><a href="/nas.html">IB-NAS6210 Linux</a></li>
  33. <li><a href="/serialhelper.html">Serial Helper</a></li>
  34. <li><a href="/ultimatenotifier.html">Ultimate Notifier Script</a></li>
  35. </ul>
  36. <li class="dropdown"><a href="/hardware.html" class="dropdown-toggle" data-toggle="dropdown">Hardware<b class="caret"></b></a><ul class="dropdown-menu">
  37. <li><a href="/ledcube.html">8x8x8 LED Cube</a></li>
  38. <li><a href="/xycontrol.html">xyControl</a></li>
  39. <li class="dropdown-submenu"><a href="/xyrobot.html" class="dropdown-toggle disabled" data-toggle="dropdown">xyRobot</a><ul class="dropdown-menu">
  40. <li><a href="/bluetooth.html">Bluetooth UART (BTM-222)</a></li>
  41. <li><a href="/k6x4008.html">K6x4008 SRAM</a></li>
  42. <li><a href="/rremote.html">rRemote</a></li>
  43. <li><a href="/xyrobotremote.html">xyRobotRemote</a></li>
  44. </ul>
  45. <li><a href="/ssop28.html">SSOP28 - DIL Adapter</a></li>
  46. <li><a href="/serialdebug.html">Serial Debug</a></li>
  47. <li><a href="/ledmatrix.html">LED Matrix</a></li>
  48. </ul>
  49. <li class="divider-vertical"></li>
  50. <li><a href="http://xythobuz.de/lastmusic">♫</a></li>
  51. <li class="divider-vertical"></li>
  52. <li class="dropdown"><a href="#" class="dropdown-toggle" data-toggle="dropdown">Language<b class="caret"></b></a><ul class="dropdown-menu">
  53. <li><a href='2013_05_17_itunes.html'>English</a></li>
  54. </ul></li>
  55. <li class="divider-vertical"></li>
  56. <script type="text/javascript">
  57. function sitesearch(curobj) {
  58. curobj.q.value = "site:xythobuz.de " + curobj.r.value
  59. }
  60. </script>
  61. <form class="navbar-search" action="http://www.google.com/search" method="get" onSubmit="sitesearch(this)">
  62. <input name="q" type="hidden" />
  63. <input name="r" type="text" class="search-query span2" placeholder="Search..." />
  64. </form>
  65. </ul>
  66. </div>
  67. </div>
  68. <div style="width: 75%; margin-left: auto; margin-right: auto;">
  69. <h2>Musik Script History</h2>
  70. <p><em>Posted at May 17, 2013.</em></p>
  71. <p>Ja, ich gebe zu, daß mein <a href="http://xythobuz.de/2013_05_09_itunes.html">Shell Skript</a> wirklich sehr hässlich war. Jetzt ist es zwar immer noch hässlich, aber nicht ganz so sehr. Und es merkt sich die letzten 10 gespielten Songs. Fuck yeah :D</p>
  72. <p>Der Output ist nach wie vor <a href="http://xythobuz.de/lastmusic">hier zu sehen</a>...</p>
  73. <pre class="sh_sh">
  74. #!/bin/sh
  75. lasttrack=`cat /Users/thomas/.lasttrack`
  76. host=`hostname`
  77. datum=`date`
  78. if [ "$1" != "$lasttrack" ]; then
  79. if [ "$1" != "" ]; then
  80. echo "&lt;html&gt;&lt;head&gt;&lt;meta charset=\"utf-8\" /&gt;&lt;title&gt;xythobuz listened to...&lt;/title&gt;&lt;/head&gt;&lt;body&gt;&lt;pre&gt;" &gt; /Users/thomas/.tmpfile
  81. echo "Last song played on &lt;b&gt;${host}&lt;/b&gt;'s iTunes:" &gt;&gt; /Users/thomas/.tmpfile
  82. echo &gt;&gt; /Users/thomas/.tmpfile
  83. echo " &lt;b&gt;$1&lt;/b&gt;" &gt;&gt; /Users/thomas/.tmpfile
  84. echo "by" &gt;&gt; /Users/thomas/.tmpfile
  85. echo " &lt;b&gt;$2&lt;/b&gt;" &gt;&gt; /Users/thomas/.tmpfile
  86. echo "on the Album" &gt;&gt; /Users/thomas/.tmpfile
  87. echo " &lt;b&gt;$3&lt;/b&gt;" &gt;&gt; /Users/thomas/.tmpfile
  88. echo "at" &gt;&gt; /Users/thomas/.tmpfile
  89. echo " &lt;i&gt;${datum}&lt;/i&gt;" &gt;&gt; /Users/thomas/.tmpfile
  90. echo &gt;&gt; /Users/thomas/.tmpfile
  91. echo "Last Songs played:" &gt;&gt; /Users/thomas/.tmpfile
  92. cat /Users/thomas/.trackhistory &gt;&gt; /Users/thomas/.tmpfile
  93. echo "&lt;/pre&gt;&lt;/body&gt;&lt;/html&gt;" &gt;&gt; /Users/thomas/.tmpfile
  94. scp /Users/thomas/.tmpfile zaphod:/var/www/lastmusic
  95. echo $1 &gt; /Users/thomas/.lasttrack
  96. echo "&lt;b&gt;$1&lt;/b&gt; by &lt;b&gt;$2&lt;/b&gt; on &lt;b&gt;$3&lt;/b&gt; at &lt;i&gt;${datum}&lt;/i&gt;" &gt;&gt; /Users/thomas/.trackhistory
  97. tail -n 10 /Users/thomas/.trackhistory | tee /Users/thomas/.trackhistory
  98. fi
  99. fi
  100. </pre>
  101. <div id="disqus_thread"></div>
  102. <script type="text/javascript">
  103. var disqus_shortname = "xythobuz";
  104. (function() {
  105. var dsq = document.createElement("script"); dsq.type = "text/javascript"; dsq.async = true;
  106. dsq.src = "http://" + disqus_shortname + ".disqus.com/embed.js";
  107. (document.getElementsByTagName("head")[0] || document.getElementsByTagName("body")[0] ).appendChild(dsq);
  108. })();
  109. </script>
  110. <noscript>Please enable JavaScript to view the <a href="http://disqus. com/?ref_noscript">comments powered by Disqus.</a></noscript>
  111. <a href="http://disqus.com" class="dsq-brlink">comments powered by <span class="logo-disqus">Disqus</span></a>
  112. </div>
  113. <div style="color: gray; text-align: center;">
  114. Built with <a href="http://bitbucket.org/obensonne/poole">Poole</a>
  115. &middot;
  116. Made with <a href="http://twitter.github.io/bootstrap/index.html">Bootstrap</a>
  117. &middot;
  118. Using <a href="http://shjs.sourceforge.net">SHJS</a>
  119. &middot;
  120. Licensed as <a href="http://creativecommons.org/licenses/by/3.0">CC-BY</a>
  121. </div>
  122. <img src="http://xythobuz.de/stats/count.php?img" alt="Analytics">
  123. <script src="http://gitforked.com/api/1.1/button.js" type="text/javascript"></script>
  124. <script type="text/javascript">
  125. var _gaq = _gaq || [];
  126. _gaq.push(['_setAccount', 'UA-39163591-1']);
  127. _gaq.push(['_setDomainName', 'xythobuz.org']);
  128. _gaq.push(['_setAllowLinker', true]);
  129. _gaq.push(['_trackPageview']);
  130. setTimeout("_gaq.push(['_trackEvent', '30_seconds', 'read'])", 30000);
  131. (function() {
  132. var ga = document.createElement('script'); ga.type = 'text/javascript'; ga.async = true;
  133. ga.src = ('https:' == document.location.protocol ? 'https://ssl' : 'http://www') + '.google-analytics.com/ga.js';
  134. var s = document.getElementsByTagName('script')[0]; s.parentNode.insertBefore(ga, s);
  135. })();
  136. </script>
  137. </body>
  138. </html>