My static website generator using poole https://www.xythobuz.de
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

2013_05_17_itunes.html 6.7KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137
  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');">
  21. <div class="navbar">
  22. <div class="navbar-inner">
  23. <a class="brand" href="http://xythobuz.de/lastmusic">♫</a>
  24. <ul class="nav">
  25. <li><a href="/index.html">Home</a></li>
  26. <li><a href="/blog.html">Blog</a></li>
  27. <li><a href="/contact.html">Contact</a></li>
  28. <li class="dropdown"><a href="/software.html" class="dropdown-toggle" data-toggle="dropdown">Software<b class="caret"></b></a><ul class="dropdown-menu">
  29. <li><a href="/avrnetstack.html">avrNetStack</a></li>
  30. <li><a href="/avrserial.html">AVR Serial Library</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. <li><a href="/yasab.html">YASAB AVR Bootloader</a></li>
  36. </ul>
  37. <li class="dropdown"><a href="/hardware.html" class="dropdown-toggle" data-toggle="dropdown">Hardware<b class="caret"></b></a><ul class="dropdown-menu">
  38. <li><a href="/ledcube.html">8x8x8 LED Cube</a></li>
  39. <li><a href="/xycontrol.html">xyControl</a></li>
  40. <li class="dropdown-submenu"><a href="/xyrobot.html" class="dropdown-toggle" data-toggle="dropdown">xyRobot</a><ul class="dropdown-menu">
  41. <li><a href="/bluetooth.html">Bluetooth UART (BTM-222)</a></li>
  42. <li><a href="/k6x4008.html">K6x4008 SRAM</a></li>
  43. <li><a href="/rremote.html">rRemote</a></li>
  44. <li><a href="/xyrobotremote.html">xyRobotRemote</a></li>
  45. </ul>
  46. <li><a href="/ssop28.html">SSOP28 - DIL Adapter</a></li>
  47. <li><a href="/serialdebug.html">Serial Debug</a></li>
  48. <li><a href="/ledmatrix.html">LED Matrix</a></li>
  49. </ul>
  50. </ul>
  51. </div>
  52. </div>
  53. <div id="header">
  54. <h1>xythobuz.de</h1>
  55. <p><a href="http://xythobuz.de/lastmusic">♫</a></p>
  56. <h2>Blog</h2>
  57. </div>
  58. <div id="content">
  59. <h2>Musik Script History</h2>
  60. <p><em>Posted at May 17, 2013.</em></p>
  61. <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>
  62. <p>Der Output ist nach wie vor <a href="http://xythobuz.de/lastmusic">hier zu sehen</a>...</p>
  63. <pre class="sh_sh">
  64. #!/bin/sh
  65. lasttrack=`cat /Users/thomas/.lasttrack`
  66. host=`hostname`
  67. datum=`date`
  68. if [ "$1" != "$lasttrack" ]; then
  69. if [ "$1" != "" ]; then
  70. 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
  71. echo "Last song played on &lt;b&gt;${host}&lt;/b&gt;'s iTunes:" &gt;&gt; /Users/thomas/.tmpfile
  72. echo &gt;&gt; /Users/thomas/.tmpfile
  73. echo " &lt;b&gt;$1&lt;/b&gt;" &gt;&gt; /Users/thomas/.tmpfile
  74. echo "by" &gt;&gt; /Users/thomas/.tmpfile
  75. echo " &lt;b&gt;$2&lt;/b&gt;" &gt;&gt; /Users/thomas/.tmpfile
  76. echo "on the Album" &gt;&gt; /Users/thomas/.tmpfile
  77. echo " &lt;b&gt;$3&lt;/b&gt;" &gt;&gt; /Users/thomas/.tmpfile
  78. echo "at" &gt;&gt; /Users/thomas/.tmpfile
  79. echo " &lt;i&gt;${datum}&lt;/i&gt;" &gt;&gt; /Users/thomas/.tmpfile
  80. echo &gt;&gt; /Users/thomas/.tmpfile
  81. echo "Last Songs played:" &gt;&gt; /Users/thomas/.tmpfile
  82. cat /Users/thomas/.trackhistory &gt;&gt; /Users/thomas/.tmpfile
  83. echo "&lt;/pre&gt;&lt;/body&gt;&lt;/html&gt;" &gt;&gt; /Users/thomas/.tmpfile
  84. scp /Users/thomas/.tmpfile zaphod:/var/www/lastmusic
  85. echo $1 &gt; /Users/thomas/.lasttrack
  86. 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
  87. tail -n 10 /Users/thomas/.trackhistory | tee /Users/thomas/.trackhistory
  88. fi
  89. fi
  90. </pre>
  91. <div id="disqus_thread"></div>
  92. <script type="text/javascript">
  93. var disqus_shortname = "xythobuz";
  94. (function() {
  95. var dsq = document.createElement("script"); dsq.type = "text/javascript"; dsq.async = true;
  96. dsq.src = "http://" + disqus_shortname + ".disqus.com/embed.js";
  97. (document.getElementsByTagName("head")[0] || document.getElementsByTagName("body")[0] ).appendChild(dsq);
  98. })();
  99. </script>
  100. <noscript>Please enable JavaScript to view the <a href="http://disqus. com/?ref_noscript">comments powered by Disqus.</a></noscript>
  101. <a href="http://disqus.com" class="dsq-brlink">comments powered by <span class="logo-disqus">Disqus</span></a>
  102. </div>
  103. <div style="color: gray; text-align: center;">
  104. Built with <a href="http://bitbucket.org/obensonne/poole">Poole</a>
  105. &middot;
  106. Made with <a href="http://twitter.github.io/bootstrap/index.html">Bootstrap</a>
  107. &middot;
  108. Using <a href="http://shjs.sourceforge.net">SHJS</a>
  109. &middot;
  110. Licensed as <a href="http://creativecommons.org/licenses/by/3.0">CC-BY</a>
  111. </div>
  112. <img src="/stats/count.php?img" alt="Analytics">
  113. <script src="http://gitforked.com/api/1.1/button.js" type="text/javascript"></script>
  114. <script type="text/javascript">
  115. var _gaq = _gaq || [];
  116. _gaq.push(['_setAccount', 'UA-39163591-1']);
  117. _gaq.push(['_setDomainName', 'xythobuz.org']);
  118. _gaq.push(['_setAllowLinker', true]);
  119. _gaq.push(['_trackPageview']);
  120. (function() {
  121. var ga = document.createElement('script'); ga.type = 'text/javascript'; ga.async = true;
  122. ga.src = ('https:' == document.location.protocol ? 'https://ssl' : 'http://www') + '.google-analytics.com/ga.js';
  123. var s = document.getElementsByTagName('script')[0]; s.parentNode.insertBefore(ga, s);
  124. })();
  125. </script>
  126. </body>
  127. </html>