My static website generator using poole https://www.xythobuz.de
Vous ne pouvez pas sélectionner plus de 25 sujets Les noms de sujets doivent commencer par une lettre ou un nombre, peuvent contenir des tirets ('-') et peuvent comporter jusqu'à 35 caractères.

2013_05_17_itunes.html 8.0KB

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. <div class="colmask leftmenu"><div class="colleft">
  24. <div class="content">
  25. <h2>Musik Script History</h2>
  26. <p><em>Posted at May 17, 2013.</em></p>
  27. <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>
  28. <p>Der Output ist nach wie vor <a href="http://xythobuz.de/lastmusic">hier zu sehen</a>...</p>
  29. <pre class="sh_sh">
  30. #!/bin/sh
  31. lasttrack=`cat /Users/thomas/.lasttrack`
  32. host=`hostname`
  33. datum=`date`
  34. if [ "$1" != "$lasttrack" ]; then
  35. if [ "$1" != "" ]; then
  36. 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
  37. echo "Last song played on &lt;b&gt;${host}&lt;/b&gt;'s iTunes:" &gt;&gt; /Users/thomas/.tmpfile
  38. echo &gt;&gt; /Users/thomas/.tmpfile
  39. echo " &lt;b&gt;$1&lt;/b&gt;" &gt;&gt; /Users/thomas/.tmpfile
  40. echo "by" &gt;&gt; /Users/thomas/.tmpfile
  41. echo " &lt;b&gt;$2&lt;/b&gt;" &gt;&gt; /Users/thomas/.tmpfile
  42. echo "on the Album" &gt;&gt; /Users/thomas/.tmpfile
  43. echo " &lt;b&gt;$3&lt;/b&gt;" &gt;&gt; /Users/thomas/.tmpfile
  44. echo "at" &gt;&gt; /Users/thomas/.tmpfile
  45. echo " &lt;i&gt;${datum}&lt;/i&gt;" &gt;&gt; /Users/thomas/.tmpfile
  46. echo &gt;&gt; /Users/thomas/.tmpfile
  47. echo "Last Songs played:" &gt;&gt; /Users/thomas/.tmpfile
  48. cat /Users/thomas/.trackhistory &gt;&gt; /Users/thomas/.tmpfile
  49. echo "&lt;/pre&gt;&lt;/body&gt;&lt;/html&gt;" &gt;&gt; /Users/thomas/.tmpfile
  50. scp /Users/thomas/.tmpfile zaphod:/var/www/lastmusic
  51. echo $1 &gt; /Users/thomas/.lasttrack
  52. 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
  53. tail -n 10 /Users/thomas/.trackhistory | tee /Users/thomas/.trackhistory
  54. fi
  55. fi
  56. </pre>
  57. <div id="disqus_thread"></div>
  58. <script type="text/javascript">
  59. var disqus_shortname = "xythobuz";
  60. (function() {
  61. var dsq = document.createElement("script"); dsq.type = "text/javascript"; dsq.async = true;
  62. dsq.src = "http://" + disqus_shortname + ".disqus.com/embed.js";
  63. (document.getElementsByTagName("head")[0] || document.getElementsByTagName("body")[0]).appendChild(dsq);
  64. })();
  65. </script>
  66. <noscript>Please enable JavaScript to view the <a href="http://disqus.com/?ref_noscript">comments powered by Disqus.</a></noscript>
  67. <a href="http://disqus.com" class="dsq-brlink">comments powered by <span class="logo-disqus">Disqus</span></a>
  68. </div>
  69. <div class="nav">
  70. <h3>Thomas Buck</h3>
  71. <div id="logo"><img id="logoImg" src="http://www.gravatar.com/avatar/8d18fec40a74782052fb4c007d212475?s=180" alt="Avatar"></div>
  72. <p id="bio">
  73. I'm a 19 year old Information Engineering student from Germany, mostly building cool stuff with AVR microcontrollers. All of my projects are released as <a href="http://www.gnu.org/philosophy/free-sw.html">Free Software</a> on my <a href="https://github.com/xythobuz">GitHub Profile</a>. It would be nice if you could use this <a href="http://www.amazon.de/?_encoding=UTF8&amp;camp=1638&amp;creative=19454&amp;linkCode=ur2&amp;site-redirect=de&amp;tag=xythobuzorg-21">Amazon.de Affiliate Link</a>.
  74. </p>
  75. <ul id="menuList">
  76. <li><a href="/index.html">Home</a></li>
  77. <li><a href="/blog.html">Blog</a></li>
  78. <li><a href="/contact.html">Contact</a></li>
  79. <li>&nbsp;</li>
  80. <li><a href="/ledcube.html">8x8x8 LED Cube</a></li>
  81. <li><a href="/yasab.html">YASAB AVR Bootloader</a></li>
  82. <li><a href="/avrnetstack.html">avrNetStack</a></li>
  83. <li><a href="/xycontrol.html">xyControl</a></li>
  84. <li><a href="/avrserial.html">AVR Serial Library</a></li>
  85. <li><a href="/serialdebug.html">Serial Debug</a></li>
  86. <li><a href="/ledmatrix.html">LED Matrix</a></li>
  87. <li><a href="/ssop28.html">SSOP28 - DIL Adapter</a></li>
  88. <li><a href="/xyrobot.html">xyRobot</a></li>
  89. <li><a href="/bluetooth.html">Bluetooth UART (BTM-222)</a></li>
  90. <li><a href="/k6x4008.html">K6x4008 SRAM</a></li>
  91. <li><a href="/xyrobotremote.html">xyRobotRemote</a></li>
  92. <li><a href="/rremote.html">rRemote</a></li>
  93. <li>&nbsp;</li>
  94. <li><a href="/c250.html">Mio C250 Unlock</a></li>
  95. <li><a href="/nas.html">IB-NAS6210 Linux</a></li>
  96. <li><a href="/ultimatenotifier.html">Ultimate Notifier Script</a></li>
  97. <li><a href="/serialhelper.html">Serial Helper</a></li>
  98. </ul>
  99. <div id="recent">
  100. Recent blog posts:
  101. <ul id="recentList">
  102. <li class="recentList"><a href="/2013_05_28_pid.html">Regelschwingungen</a></li><li class="recentDate">2013-05-28</li>
  103. <li class="recentList"><a href="/2013_05_20_just_cause.html">Just Cause 2 Capture</a></li><li class="recentDate">2013-05-20</li>
  104. <li class="recentList"><a href="/2013_05_17_itunes.html">Musik Script History</a></li><li class="recentDate">2013-05-17</li>
  105. <li class="recentList"><a href="/2013_05_09_itunes.html">Musikgeschmack</a></li><li class="recentDate">2013-05-09</li>
  106. <li class="recentList"><a href="/2013_05_05_debian.html">Debian Update</a></li><li class="recentDate">2013-05-05</li>
  107. </ul>
  108. </div>
  109. </div>
  110. </div></div>
  111. <img id="dude" alt="The Dude abides..." src="/img/dude.png">
  112. <img id="walter" alt="Mark it zero!" src="/img/walter.png">
  113. <div id="footer">
  114. Built with <a href="http://bitbucket.org/obensonne/poole">Poole</a>
  115. &middot;
  116. Licensed as <a href="http://creativecommons.org/licenses/by/3.0">CC-BY</a>
  117. &middot;
  118. <a href="http://validator.w3.org/check?uri=referer">Validate HTML</a>
  119. &middot;
  120. <a href="http://jigsaw.w3.org/css-validator/validator?uri=xythobuz.de%2Fstyle.css&amp;profile=css3">Validate CSS</a>
  121. &middot;
  122. <a href="http://feed1.w3.org/check.cgi?url=http://www.xythobuz.de/rss.xml">Validate RSS</a>
  123. &middot;
  124. <a href="http://www.validome.org/google/validate?url=http://www.xythobuz.de&amp;googleTyp=SITEMAP">Validate Sitemap</a>
  125. </div>
  126. <img src="/stats/count.php?img" alt="Analytics">
  127. <script src="http://gitforked.com/api/1.1/button.js" type="text/javascript"></script>
  128. <script type="text/javascript">
  129. var _gaq = _gaq || [];
  130. _gaq.push(['_setAccount', 'UA-39163591-1']);
  131. _gaq.push(['_setDomainName', 'xythobuz.org']);
  132. _gaq.push(['_setAllowLinker', true]);
  133. _gaq.push(['_trackPageview']);
  134. setTimeout("_gaq.push(['_trackEvent', '30_seconds', 'read'])", 30000);
  135. (function() {
  136. var ga = document.createElement('script'); ga.type = 'text/javascript'; ga.async = true;
  137. ga.src = ('https:' == document.location.protocol ? 'https://ssl' : 'http://www') + '.google-analytics.com/ga.js';
  138. var s = document.getElementsByTagName('script')[0]; s.parentNode.insertBefore(ga, s);
  139. })();
  140. </script>
  141. </body>
  142. </html>