My static website generator using poole https://www.xythobuz.de
Du kannst nicht mehr als 25 Themen auswählen Themen müssen mit entweder einem Buchstaben oder einer Ziffer beginnen. Sie können Bindestriche („-“) enthalten und bis zu 35 Zeichen lang sein.

2013_05_17_itunes.html 6.3KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159
  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. <link rel="author" href="/xythobuz@xythobuz.de">
  9. <link rel="shortcut icon" href="/img/favicon.ico">
  10. <script type="text/javascript" src="/js/sh_main.js"></script>
  11. <link type="text/css" rel="stylesheet" href="/css/sh_bright.min.css" />
  12. <link rel="stylesheet" href="/css/style.css" type="text/css" media="screen" />
  13. <link rel="alternate" type="application/rss+xml" title="Blog" href="/rss.xml">
  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. </head>
  17. <body onload="sh_highlightDocument('/js/sh/', '.min.js');">
  18. <div id="header">
  19. <h1>xythobuz.de</h1>
  20. <p><a href="http://xythobuz.de/lastmusic">♫</a></p>
  21. <h2>Blog</h2>
  22. </div>
  23. <nav>
  24. <ul id="menu">
  25. <li><a href="/index.html">Home</a>
  26. </li>
  27. <li><a href="/blog.html">Blog</a>
  28. </li>
  29. <li><a href="/contact.html">Contact</a>
  30. </li>
  31. <li><a href="/software.html">Software</a>
  32. <ul>
  33. <li><a href="/avrnetstack.html">avrNetStack</a>
  34. </li>
  35. <li><a href="/avrserial.html">AVR Serial Library</a>
  36. </li>
  37. <li><a href="/c250.html">Mio C250 Unlock</a>
  38. </li>
  39. <li><a href="/nas.html">IB-NAS6210 Linux</a>
  40. </li>
  41. <li><a href="/serialhelper.html">Serial Helper</a>
  42. </li>
  43. <li><a href="/ultimatenotifier.html">Ultimate Notifier Script</a>
  44. </li>
  45. <li><a href="/yasab.html">YASAB AVR Bootloader</a>
  46. </li>
  47. </ul>
  48. </li>
  49. <li><a href="/hardware.html">Hardware</a>
  50. <ul>
  51. <li><a href="/ledcube.html">8x8x8 LED Cube</a>
  52. </li>
  53. <li><a href="/xycontrol.html">xyControl</a>
  54. </li>
  55. <li><a href="/xyrobot.html">xyRobot</a>
  56. <ul>
  57. <li><a href="/bluetooth.html">Bluetooth UART (BTM-222)</a>
  58. </li>
  59. <li><a href="/k6x4008.html">K6x4008 SRAM</a>
  60. </li>
  61. <li><a href="/rremote.html">rRemote</a>
  62. </li>
  63. <li><a href="/xyrobotremote.html">xyRobotRemote</a>
  64. </li>
  65. </ul>
  66. </li>
  67. <li><a href="/ssop28.html">SSOP28 - DIL Adapter</a>
  68. </li>
  69. <li><a href="/serialdebug.html">Serial Debug</a>
  70. </li>
  71. <li><a href="/ledmatrix.html">LED Matrix</a>
  72. </li>
  73. </ul>
  74. </li>
  75. </ul>
  76. </nav>
  77. <div id="content">
  78. <h2>Musik Script History</h2>
  79. <p><em>Posted at May 17, 2013.</em></p>
  80. <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>
  81. <p>Der Output ist nach wie vor <a href="http://xythobuz.de/lastmusic">hier zu sehen</a>...</p>
  82. <pre class="sh_sh">
  83. #!/bin/sh
  84. lasttrack=`cat /Users/thomas/.lasttrack`
  85. host=`hostname`
  86. datum=`date`
  87. if [ "$1" != "$lasttrack" ]; then
  88. if [ "$1" != "" ]; then
  89. 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
  90. echo "Last song played on &lt;b&gt;${host}&lt;/b&gt;'s iTunes:" &gt;&gt; /Users/thomas/.tmpfile
  91. echo &gt;&gt; /Users/thomas/.tmpfile
  92. echo " &lt;b&gt;$1&lt;/b&gt;" &gt;&gt; /Users/thomas/.tmpfile
  93. echo "by" &gt;&gt; /Users/thomas/.tmpfile
  94. echo " &lt;b&gt;$2&lt;/b&gt;" &gt;&gt; /Users/thomas/.tmpfile
  95. echo "on the Album" &gt;&gt; /Users/thomas/.tmpfile
  96. echo " &lt;b&gt;$3&lt;/b&gt;" &gt;&gt; /Users/thomas/.tmpfile
  97. echo "at" &gt;&gt; /Users/thomas/.tmpfile
  98. echo " &lt;i&gt;${datum}&lt;/i&gt;" &gt;&gt; /Users/thomas/.tmpfile
  99. echo &gt;&gt; /Users/thomas/.tmpfile
  100. echo "Last Songs played:" &gt;&gt; /Users/thomas/.tmpfile
  101. cat /Users/thomas/.trackhistory &gt;&gt; /Users/thomas/.tmpfile
  102. echo "&lt;/pre&gt;&lt;/body&gt;&lt;/html&gt;" &gt;&gt; /Users/thomas/.tmpfile
  103. scp /Users/thomas/.tmpfile zaphod:/var/www/lastmusic
  104. echo $1 &gt; /Users/thomas/.lasttrack
  105. 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
  106. tail -n 10 /Users/thomas/.trackhistory | tee /Users/thomas/.trackhistory
  107. fi
  108. fi
  109. </pre>
  110. <div id="disqus_thread"></div>
  111. <script type="text/javascript">
  112. var disqus_shortname = "xythobuz";
  113. (function() {
  114. var dsq = document.createElement("script"); dsq.type = "text/javascript"; dsq.async = true;
  115. dsq.src = "http://" + disqus_shortname + ".disqus.com/embed.js";
  116. (document.getElementsByTagName("head")[0] || document.getElementsByTagName("body")[0] ).appendChild(dsq);
  117. })();
  118. </script>
  119. <noscript>Please enable JavaScript to view the <a href="http://disqus. com/?ref_noscript">comments powered by Disqus.</a></noscript>
  120. <a href="http://disqus.com" class="dsq-brlink">comments powered by <span class="logo-disqus">Disqus</span></a>
  121. </div>
  122. <div id="footer">
  123. Built with <a href="http://bitbucket.org/obensonne/poole">Poole</a>
  124. &middot;
  125. Licensed as <a href="http://creativecommons.org/licenses/by/3.0">CC-BY</a>
  126. &middot;
  127. <a href="http://validator.w3.org/check?uri=referer">Validate HTML</a>
  128. &middot;
  129. <a href="http://jigsaw.w3.org/css-validator/validator?uri=xythobuz.de%2Fstyle.css&amp;profile=css3">Validate CSS</a>
  130. &middot;
  131. <a href="http://feed1.w3.org/check.cgi?url=http://www.xythobuz.de/rss.xml">Validate RSS</a>
  132. &middot;
  133. <a href="http://www.validome.org/google/validate?url=http://www.xythobuz.de&amp;googleTyp=SITEMAP">Validate Sitemap</a>
  134. </div>
  135. <img src="/stats/count.php?img" alt="Analytics">
  136. <script src="http://gitforked.com/api/1.1/button.js" type="text/javascript"></script>
  137. <script type="text/javascript">
  138. var _gaq = _gaq || [];
  139. _gaq.push(['_setAccount', 'UA-39163591-1']);
  140. _gaq.push(['_setDomainName', 'xythobuz.org']);
  141. _gaq.push(['_setAllowLinker', true]);
  142. _gaq.push(['_trackPageview']);
  143. (function() {
  144. var ga = document.createElement('script'); ga.type = 'text/javascript'; ga.async = true;
  145. ga.src = ('https:' == document.location.protocol ? 'https://ssl' : 'http://www') + '.google-analytics.com/ga.js';
  146. var s = document.getElementsByTagName('script')[0]; s.parentNode.insertBefore(ga, s);
  147. })();
  148. </script>
  149. </body>
  150. </html>