<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	>

<channel>
	<title>XayOn&#039;s weblog</title>
	<atom:link href="http://xayon.net/feed/" rel="self" type="application/rss+xml" />
	<link>http://xayon.net</link>
	<description>Experiment with your limits</description>
	<lastBuildDate>Tue, 28 Feb 2012 12:52:20 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.2.1</generator>
		<item>
		<title>Exporting a subversion repository from a git repository using github</title>
		<link>http://xayon.net/exporting-a-subversion-repository-from-a-git-repository-using-github/</link>
		<comments>http://xayon.net/exporting-a-subversion-repository-from-a-git-repository-using-github/#comments</comments>
		<pubDate>Tue, 28 Feb 2012 11:42:52 +0000</pubDate>
		<dc:creator>David Francos</dc:creator>
				<category><![CDATA[Development]]></category>
		<category><![CDATA[Linux Generic stuff]]></category>
		<category><![CDATA[Own development]]></category>

		<guid isPermaLink="false">http://xayon.net/?p=375</guid>
		<description><![CDATA[Ok, so, you want to]]></description>
			<content:encoded><![CDATA[<p>Ok, so, you want to <em>quick-and-easily export your git repository as a subversion repository</em>, the answer is pretty straightforward: <span style="text-decoration: underline;">Use github as an intermediary</span>.<br />
For it, you first will need to configure a github account and create a repository, that&#8217;s not the object of this article so you might want to dig up a little over the google seas. For this example, repository FooBar will be used, and repo.foobar.com will be the origin git.</p>
<p>First, we go to our own repo&#8217;s directory (a clone of your current repository&#8217;s), and add github proyect as remote, like this:</p>
<div id="gist-1932069" class="gist">

        <div class="gist-file">
          <div class="gist-data gist-syntax">
              <div class="highlight"><pre><div class='line' id='LC1'>git clone git@repo.foobar.com/FooBar</div><div class='line' id='LC2'><span class="nb">cd </span>FooBar</div><div class='line' id='LC3'>git remote add github git@github.com:XayOn/FooBar </div><div class='line' id='LC4'><span class="c"># Remember to replace XayOn for your username and FooBar for your github repo name</span></div><div class='line' id='LC5'><br/></div></pre></div>
          </div>

          <div class="gist-meta">
            <a href="https://gist.github.com/raw/1932069/ab6018a803e17abc2f01a0144b4ddf93c6d2f3cc/gistfile1.sh" style="float:right;">view raw</a>
            <a href="https://gist.github.com/1932069#file_gistfile1.sh" style="float:right;margin-right:10px;color:#666">gistfile1.sh</a>
            <a href="https://gist.github.com/1932069">This Gist</a> brought to you by <a href="http://github.com">GitHub</a>.
          </div>
        </div>
</div>

<p>Luckily, github exports automatically all its git repos as subversion, so, right now, you&#8217;re already able to execute:</p>
<pre>svn co http://github.com/XayOn/FooBar</pre>
<p><strong>And there you have it, your git repo, exported as subversion, just keep the github repo updated with </strong></p>
<pre>git remote push github &lt;branch&gt;</pre>
<pre></pre>
]]></content:encoded>
			<wfw:commentRss>http://xayon.net/exporting-a-subversion-repository-from-a-git-repository-using-github/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Betabeers zaragoza</title>
		<link>http://xayon.net/betabeers-zaragoza/</link>
		<comments>http://xayon.net/betabeers-zaragoza/#comments</comments>
		<pubDate>Sun, 26 Feb 2012 12:51:32 +0000</pubDate>
		<dc:creator>David Francos</dc:creator>
				<category><![CDATA[Life]]></category>

		<guid isPermaLink="false">http://xayon.net/?p=379</guid>
		<description><![CDATA[Estoy organizando el primer evento]]></description>
			<content:encoded><![CDATA[<p>Estoy organizando el primer evento betabeers en zaragoza, podeis apuntaros <a href="http://xayon.net/ob">aquí</a></p>
<p style="text-align: center;"><strong>Ven a compartir tus conocimientos y experiencias con nosotros, terminaremos el evento, como siempre, entre cervezas.</strong><br />
<strong>Contamos entre nosotros con el taller de Iván Loire sobre Node.js Express.js y Knokout.js!</strong></p>
<h3 style="text-align: left;">Programa:</h3>
<blockquote>
<ul>
<li>- Taller de Node.js Express.js y Knockout.js por Ivan loire</li>
<li> Presentacion de los siguientes proyectos:</li>
</ul>
<ul>
<li>NumBalls &#8211; Informacion social sobre deportistas de elite (Marc de Palol)</li>
<li>Focused.es &#8211; Focus your tweets (Santiago Montiú)</li>
<li>Bilorium &#8211; El juego que cambiara el mundo (Diego Marquina)</li>
<li>GrassCMS &#8211; El CMS que podría utilizar tu madre (Francisco Sanz)</li>
</ul>
</blockquote>
<p style="text-align: center;"><strong>Con la colaboración de:</strong></p>
<p style="text-align: center;"><a href="http://xayon.net/YDq" target="_blank"><img src="http://betabeers.com/banners/milladigital.png" alt="" /></a><a href="http://xayon.net/7D" target="_blank"><img src="http://betabeers.com/banners/ciem.png" alt="" /></a><a href="http://xayon.net/cq" target="_blank"><img src="http://betabeers.com/banners/ayuntamiento_zaragoza.png" alt="" /></a></p>
]]></content:encoded>
			<wfw:commentRss>http://xayon.net/betabeers-zaragoza/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Aircrack-ng unoficial debian package</title>
		<link>http://xayon.net/aircrack-ng-unoficial-debian-package/</link>
		<comments>http://xayon.net/aircrack-ng-unoficial-debian-package/#comments</comments>
		<pubDate>Fri, 10 Feb 2012 12:10:26 +0000</pubDate>
		<dc:creator>David Francos</dc:creator>
				<category><![CDATA[Development]]></category>
		<category><![CDATA[Linux Generic stuff]]></category>

		<guid isPermaLink="false">http://xayon.net/?p=356</guid>
		<description><![CDATA[I&#8217;ve been working lately on]]></description>
			<content:encoded><![CDATA[<p>I&#8217;ve been working lately on an unoficial aircrack-ng package containing all the cool stuff, including airoscript. I talked with Thomas D&#8217;Otreppe and he told me I could use some space on aircrack-ng&#8217;s servers, but I haven&#8217;t had it yet, so I put the repository under degeneratedlabs. If the repo is down try again in a few hours.</p>
<p>You can install lastest (weekly built) aircrack-ng by adding this repo to your /etc/apt/sources.list</p>
<pre>deb http://repo.degeneratedlabs.net/debian/ aircrackng-unstable/</pre>
<p>And executing</p>
<pre>apt-get update &amp;&amp; apt-get install aircrack-ng</pre>
<p>Also, you can find the sources I use to generate the package at <a href="http://xayon.net/2O" target="_blank">my github</a>. And the script I made to ease the build here:</p>
<div id="gist-1716957" class="gist">

        <div class="gist-file">
          <div class="gist-data gist-syntax">
              <div class="highlight"><pre><div class='line' id='LC1'>svn co http://trac.aircrack-ng.org/svn/trunk aircrack-ng-1.1 <span class="o">&amp;&amp;</span> <span class="nb">cd </span>aircrack-ng-1.1 <span class="o">&amp;&amp;</span> svn info <span class="o">&amp;&amp;</span> <span class="o">{</span> rm -rf <span class="sb">`</span>find . -name .svn<span class="sb">`</span> <span class="o">&amp;&amp;</span> tar czvf  ../aircrack-ng_1.1.orig.tar.gz *; <span class="o">}</span> &amp;&gt;/dev/null <span class="o">&amp;&amp;</span> git clone http://github.com/XayOn/Aircrack-ngDebian debian &amp;&gt;/dev/null <span class="o">&amp;&amp;</span> vim debian/changelog <span class="o">&amp;&amp;</span> debuild <span class="nv">$@</span> <span class="o">&amp;&amp;</span> <span class="nb">cd</span> .. <span class="o">&amp;&amp;</span> dput repo.degeneratedlabs.net *changes</div></pre></div>
          </div>

          <div class="gist-meta">
            <a href="https://gist.github.com/raw/1716957/2e7d66229fcee3fcb397fb7ea9cc529cdef37200/gistfile1.sh" style="float:right;">view raw</a>
            <a href="https://gist.github.com/1716957#file_gistfile1.sh" style="float:right;margin-right:10px;color:#666">gistfile1.sh</a>
            <a href="https://gist.github.com/1716957">This Gist</a> brought to you by <a href="http://github.com">GitHub</a>.
          </div>
        </div>
</div>

]]></content:encoded>
			<wfw:commentRss>http://xayon.net/aircrack-ng-unoficial-debian-package/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Installing aircrack-ng from subversion</title>
		<link>http://xayon.net/installing-aircrack-ng-from-subversion/</link>
		<comments>http://xayon.net/installing-aircrack-ng-from-subversion/#comments</comments>
		<pubDate>Thu, 02 Feb 2012 14:00:48 +0000</pubDate>
		<dc:creator>David Francos</dc:creator>
				<category><![CDATA[Life]]></category>

		<guid isPermaLink="false">http://xayon.net/?p=349</guid>
		<description><![CDATA[I recently made a commit]]></description>
			<content:encoded><![CDATA[<p>I recently made a commit into aircrack-ng subversion repository adding an environment variable ready to build &#8220;external&#8221; scripts like airoscript-ng, airgraph-ng, versuck-ng and airdrop-ng, as well as any other directory inside scripts/ dir wich contains a Makefile.</p>
<p>This has two implications:</p>
<ul>
<li>It&#8217;s quite easy to do a package from that (I&#8217;m working on an unofficial weekly subversion package)</li>
<li>It&#8217;s quite easy to install aircrack-ng with sqlite support, all the unstable stuff and the plugins</li>
</ul>
<p>I&#8217;ll explain how to do the last one, in a few single script:</p>
<div><div id="gist-1710620" class="gist">

        <div class="gist-file">
          <div class="gist-data gist-syntax">
              <div class="highlight"><pre><div class='line' id='LC1'>apt-get install subversion build-essential libpcap0.8 libssl1.0.0 zlib1g wireless-tools xterm python graphviz macchanger dsniff hydra zenity pyrit sslstrip wkhtmltopdf john libpcap0.8-dev libssl-dev libsqlite3-dev libnl-dev</div><div class='line' id='LC2'>svn co http://trac.aircrack-ng.org/trunk/</div><div class='line' id='LC3'>make -C trunk <span class="nv">unstable</span><span class="o">=</span><span class="nb">true </span><span class="nv">ext_scripts</span><span class="o">=</span><span class="nb">true </span><span class="nv">sqlite</span><span class="o">=</span><span class="nb">true</span></div><div class='line' id='LC4'>make -C trunk install <span class="nv">unstable</span><span class="o">=</span><span class="nb">true </span><span class="nv">ext_scripts</span><span class="o">=</span><span class="nb">true </span><span class="nv">sqlite</span><span class="o">=</span><span class="nb">true</span></div></pre></div>
          </div>

          <div class="gist-meta">
            <a href="https://gist.github.com/raw/1710620/1690b7b97bb07105359f8190e8412d764a15c895/Subversion-with-everything.sh" style="float:right;">view raw</a>
            <a href="https://gist.github.com/1710620#file_subversion_with_everything.sh" style="float:right;margin-right:10px;color:#666">Subversion-with-everything.sh</a>
            <a href="https://gist.github.com/1710620">This Gist</a> brought to you by <a href="http://github.com">GitHub</a>.
          </div>
        </div>
</div>
</div>
<p>Et voilá, you execute that as root, it will get lastest aircrack-ng revision and dependences (and most of airoscript-ng ones, all the necesary and packaged).</p>
]]></content:encoded>
			<wfw:commentRss>http://xayon.net/installing-aircrack-ng-from-subversion/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Automagically organising your bittorrent downloads with deluge</title>
		<link>http://xayon.net/automagically-organising-your-bittorrent-downloads-with-deluge/</link>
		<comments>http://xayon.net/automagically-organising-your-bittorrent-downloads-with-deluge/#comments</comments>
		<pubDate>Mon, 30 Jan 2012 16:21:57 +0000</pubDate>
		<dc:creator>David Francos</dc:creator>
				<category><![CDATA[Development]]></category>
		<category><![CDATA[Linux Generic stuff]]></category>

		<guid isPermaLink="false">http://xayon.net/?p=341</guid>
		<description><![CDATA[I, as most people, like]]></description>
			<content:encoded><![CDATA[<p>I, as most people, like to have my video files <em>ordered</em>. After I&#8217;ve finished downloading a torrent I manually move it to my media dir, under a directory for the series it belongs to, or no directory at all, but it&#8217;s a hard and <strong>unnecesary</strong> process.</p>
<blockquote>
<p style="text-align: left;">I&#8217;ll explain here (and provide an script for it) how to make deluge automagically handle our files.</p>
</blockquote>
<p>I&#8217;ve chosen <em>deluge</em> bittorrent client for this guide (blame it on enver555), but you should be able to use my script (with maybe, a few modifications about the argument handling) anywhere.</p>
<h3>Getting the script</h3>
<p>First, you will need to download the shorting script, it&#8217;s a single 5-liner bash script, with lots of magic and power, for that reason, I&#8217;ve called it the torrent shorting hat.</p>
<div id="gist-1705151" class="gist">

        <div class="gist-file">
          <div class="gist-data gist-syntax">
              <div class="highlight"><pre><div class='line' id='LC1'><span class="c">#!/bin/bash </span></div><div class='line' id='LC2'><span class="nv">id</span><span class="o">=</span><span class="nv">$1</span>; <span class="nv">name</span><span class="o">=</span><span class="nv">$2</span>; <span class="nv">path</span><span class="o">=</span><span class="nv">$3</span>; <span class="nb">source</span> ~/.torrent-aliases</div><div class='line' id='LC3'><span class="nb">type</span><span class="o">=</span><span class="k">$(</span>file -b --mime-type <span class="nv">$path</span> |cut -d/ -f1<span class="k">)</span></div><div class='line' id='LC4'><span class="k">for </span>dest_dir in <span class="k">${</span><span class="p">!regexes[@]</span><span class="k">}</span>; <span class="k">do </span>mkdir -p ~/Media/<span class="nv">$type</span>/<span class="nv">$dest_dir</span>; <span class="o">[[</span> <span class="nv">$path</span> <span class="o">=</span>~ <span class="k">${</span><span class="nv">regexes</span><span class="p">[</span><span class="nv">$dest_dir</span><span class="p">]</span><span class="k">}</span> <span class="o">]]</span> <span class="o">&amp;&amp;</span> <span class="o">{</span> mv <span class="nv">$path</span> ~/Media/<span class="nv">$type</span>/<span class="nv">$dest_dir</span>/; <span class="nb">exit</span>; <span class="o">}</span>; <span class="k">done</span></div><div class='line' id='LC5'>mv <span class="nv">$path</span> ~/Media/<span class="nv">$type</span>/<span class="nv">$dest_dir</span> <span class="c"># Fallback</span></div><div class='line' id='LC6'><br/></div></pre></div>
          </div>

          <div class="gist-meta">
            <a href="https://gist.github.com/raw/1705151/3fa2d8d5589efc2bb6a0f4b3e7d1c6f9969da0ee/gistfile1.sh" style="float:right;">view raw</a>
            <a href="https://gist.github.com/1705151#file_gistfile1.sh" style="float:right;margin-right:10px;color:#666">gistfile1.sh</a>
            <a href="https://gist.github.com/1705151">This Gist</a> brought to you by <a href="http://github.com">GitHub</a>.
          </div>
        </div>
</div>

<h3>Installing it system-wide or locally</h3>
<p>You might want all your users to have access to this script, for that, as with any other linux program, you should copy it to path and give it executable permissions, that&#8217;s, as root:</p>
<pre>wget <a href="https://raw.github.com/gist/1705151/540fd4445ca4e0f540ddf82decba3ffc421c46ab/gistfile1.sh">https://raw.github.com/gist/1705151/540fd4445ca4e0f540ddf82decba3ffc421c46ab/gistfile1.sh</a> -O /usr/local/bin/torrent_shorting_hat
chmod +x /usr/local/bin/torrent_shorting_hat</pre>
<p>I personally recoment this method, but if you prefer, you can get it at your local home, you could, for example, do something like this:</p>
<pre>wget <a href="https://raw.github.com/gist/1705151/540fd4445ca4e0f540ddf82decba3ffc421c46ab/gistfile1.sh">https://raw.github.com/gist/1705151/540fd4445ca4e0f540ddf82decba3ffc421c46ab/gistfile1.sh</a> -O .torrent_shorting_hat
chmod +x .torrent_shorting_hat</pre>
<h3>Configuring deluge</h3>
<p>We enable the execute plugin</p>
<div id="attachment_345" class="wp-caption aligncenter" style="width: 281px"><a href="http://xayon.net/SB"><img class="size-medium wp-image-345" title="deluge_enable_execute" src="http://xayon.net/wp-content/uploads/2012/01/deluge_enable_execute-271x300.png" alt="" width="271" height="300" /></a><p class="wp-caption-text">Enable execute plugin</p></div>
<p>Then, we add an execute action for a &#8220;finished torrent download&#8221; handler. If you&#8217;ve added your script locally, you had to reference it as its <strong>full path</strong>, otherwise you have just to use <em>&#8220;torrent_shorting_hat</em>&#8221; as scrpit:</p>
<p>&nbsp;</p>
<div id="attachment_344" class="wp-caption aligncenter" style="width: 276px"><a href="http://xayon.net/TM"><img class="size-medium wp-image-344" title="torrent-complete-add" src="http://xayon.net/wp-content/uploads/2012/01/torrent-complete-add-266x300.png" alt="" width="266" height="300" /></a><p class="wp-caption-text">Adding the complete script call.</p></div>
<p>&nbsp;</p>
<h3>Configuring the sorting hat</h3>
<p>The sorting hat will read a file in your home called .torrent-aliases, more exactly its regexes variable, it&#8217;s basically a shell script with associative arrays, like this:</p>
<pre>regexes[''hitchicker']="(.*)42(.*)"</pre>
<p>This will get everything containing &#8220;42&#8243; to a folder in ~/Media/(<em>mimetype</em>)/hitchicker, being mimetype the file&#8217;s mimetype. Wich, by the way, means that <strong><em>even if you don&#8217;t have anything configured, the script will organize files by its type</em>.</strong></p>
<p>&nbsp;</p>
]]></content:encoded>
			<wfw:commentRss>http://xayon.net/automagically-organising-your-bittorrent-downloads-with-deluge/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Rstext.me restructuredtext slideshows on the cloud</title>
		<link>http://xayon.net/rstext-me-restructuredtext-slideshows-on-the-cloud/</link>
		<comments>http://xayon.net/rstext-me-restructuredtext-slideshows-on-the-cloud/#comments</comments>
		<pubDate>Wed, 25 Jan 2012 17:05:18 +0000</pubDate>
		<dc:creator>David Francos</dc:creator>
				<category><![CDATA[Development]]></category>
		<category><![CDATA[Own development]]></category>
		<category><![CDATA[Releases]]></category>

		<guid isPermaLink="false">http://xayon.net/?p=338</guid>
		<description><![CDATA[I just made restructuredtext slideshow]]></description>
			<content:encoded><![CDATA[<p>I just made restructuredtext slideshow solution public, under the motto &#8220;Getting your slideshows done have never been so easy&#8221;.</p>
<blockquote><p>&#8221; The best thing about it is that you can build nice, corporate-looking presentations in just seconds, concentrating in the information instead of the format or the style. We provide a lot of predefined themes, and will give corporate support for bussiness image templates&#8221;</p>
<p><em>David Francos</em></p></blockquote>
<p>Rstext.me turns around our current concept of building a slideshow by providing a nice infraestructure to edit and store online your slideshows, in restructuredtext format (a widely used easy-to-read markup language).</p>
<p>You can visit it <a href="http://xayon.net/6B">here</a></p>
<p>Source:<a href="http://xayon.net/bx"> http://blog.rstext.me</a></p>
<p>&nbsp;</p>
<p>&nbsp;</p>
<p>&nbsp;</p>
<p>&nbsp;</p>
]]></content:encoded>
			<wfw:commentRss>http://xayon.net/rstext-me-restructuredtext-slideshows-on-the-cloud/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Bringing back old flash /tmp files!</title>
		<link>http://xayon.net/bringing-back-old-flash-tmp-files/</link>
		<comments>http://xayon.net/bringing-back-old-flash-tmp-files/#comments</comments>
		<pubDate>Fri, 20 Jan 2012 23:24:04 +0000</pubDate>
		<dc:creator>David Francos</dc:creator>
				<category><![CDATA[Life]]></category>

		<guid isPermaLink="false">http://xayon.net/?p=318</guid>
		<description><![CDATA[I recently wrote a script]]></description>
			<content:encoded><![CDATA[<p>I recently wrote a script for playing files on recent browsers with mplayer, a friend asked me if could bring the old system back&#8230; so here I did it, each time you execute this script you&#8217;ll have your current playing videos linked again in /tmp with their old names:</p>
<blockquote>
<pre>for i in $(pgrep -f flash); do file /proc/$i/fd/*|awk '/Flash/{ gsub(/`/, ""); gsub(/:/, ""); system("ln -s " $1 " " $6); }'; done</pre>
</blockquote>
]]></content:encoded>
			<wfw:commentRss>http://xayon.net/bringing-back-old-flash-tmp-files/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>/foreach user_in [users] do [commands] in irssi</title>
		<link>http://xayon.net/foreach-user_in-users-do-commands-in-irssi/</link>
		<comments>http://xayon.net/foreach-user_in-users-do-commands-in-irssi/#comments</comments>
		<pubDate>Fri, 13 Jan 2012 20:26:33 +0000</pubDate>
		<dc:creator>David Francos</dc:creator>
				<category><![CDATA[Development]]></category>
		<category><![CDATA[Own development]]></category>
		<category><![CDATA[Releases]]></category>

		<guid isPermaLink="false">http://xayon.net/?p=329</guid>
		<description><![CDATA[I just finished my implementation]]></description>
			<content:encoded><![CDATA[<p>I just finished my implementation of foreach user_in for irssi.</p>
<p>There was out there a plugin to execute anything for each user in a channel window. I had the requirement to send information to a huge amount of that users (that is, a list of users from my bitlbee channel) but not to all the channel, so I said&#8230; Why not a foreach_user indo?</p>
<p>This way, I can, for example, do something like this:</p>
<pre>/foreach user in friend_one friend_two friend_three /msg -bitlbee &amp;bitlbee $0: Want a beer? 2100 at my place.
 /foreach user in contact_one contact_two friend_three /msg -bitlbee &amp;bitlbee $0: Have you checked out my last proyect</pre>
<p>For this, just download the script from <a href="http://xayon.net/yE" target="_blank">my github</a> and place it in .irssi/scripts/autorun so it will be auto-executed when starting irssi, and load it with:</p>
<p>/load autorun/foreach_user_in.pl</p>
]]></content:encoded>
			<wfw:commentRss>http://xayon.net/foreach-user_in-users-do-commands-in-irssi/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Adding socks5 support to python-irclib</title>
		<link>http://xayon.net/adding-socks5-support-to-python-libirc/</link>
		<comments>http://xayon.net/adding-socks5-support-to-python-libirc/#comments</comments>
		<pubDate>Thu, 05 Jan 2012 19:44:20 +0000</pubDate>
		<dc:creator>David Francos</dc:creator>
				<category><![CDATA[Development]]></category>
		<category><![CDATA[Life]]></category>
		<category><![CDATA[Linux Generic stuff]]></category>
		<category><![CDATA[Own development]]></category>

		<guid isPermaLink="false">http://xayon.net/?p=316</guid>
		<description><![CDATA[I was playing with IRC]]></description>
			<content:encoded><![CDATA[<p>I was playing with IRC and Proxyes a few weeks ago, and I found out that python&#8217;s irclib didn&#8217;t support them!<br />
It took me like a minute or so to fix it, just overloading socket with socksocket, you can have a look at <a href="http://xayon.net/Okt">my fork in github</a></p>
<blockquote>
<pre>        try:
            import socks, os
            socks.setdefaultproxy(socks.PROXY_TYPE_SOCKS5,
                os.getenv('proxy_addr'), os.getenv('proxy_port'))
            socket.socket = socks.socksocket
        except:
            pass</pre>
</blockquote>
<p>So, basically I try importing socks and setting up a default proxy, socks5 (sorry, I haven&#8217;t considered socks4 on there), with the environment variables proxy_addr and proxy_port as addr and port.</p>
<p>To use it, you&#8217;ll have to get a libirc-based application (there&#8217;s a bot included that might be a start) and, before starting it, define proxy_addr and proxy_port</p>
<pre>proxy_addr=127.0.0.1; proxy_port=1080; python my_python-irclib_based_foo</pre>
<p>Enjoy =)</p>
]]></content:encoded>
			<wfw:commentRss>http://xayon.net/adding-socks5-support-to-python-libirc/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Playing temporary files with mplayer on Flash 11</title>
		<link>http://xayon.net/playing-temporary-files-with-mplayer-on-flash-11/</link>
		<comments>http://xayon.net/playing-temporary-files-with-mplayer-on-flash-11/#comments</comments>
		<pubDate>Wed, 28 Dec 2011 15:34:02 +0000</pubDate>
		<dc:creator>David Francos</dc:creator>
				<category><![CDATA[Life]]></category>

		<guid isPermaLink="false">http://xayon.net/?p=311</guid>
		<description><![CDATA[Back in the times of]]></description>
			<content:encoded><![CDATA[<p>Back in the times of Flash Player 10 we could do an <em>mplayer /tmp/Flash*.</em> You could use mplayer on your flash videos, or even download them! Sadly, Adobe realized that, and <em>fixed</em> it.</p>
<p>But it&#8217;s still posible! Basically, each process has a list in /proc of all the File Descriptors it has opened, between them we&#8217;ll find our flv file.<br />
More concisely, It will reside on /proc/_PID_/fd where PID is the process id, and will be a symbolic link, pointing to /tmp/FlashXXX<br />
<strong>You&#8217;ve read right, points to /tmp/FlashXXX as the old ones, so we can just list it and filter by that name</strong></p>
<blockquote>
<h3>Save or play your youtube, megavideo, daylimotion and many more flash videos on linux!</h3>
</blockquote>
<p>I first tried listing all files in /proc/*/fd but that was slow as hell, so I filtered out (thanks to pgrep) the ones matching all full processes containing &#8220;flash&#8221; (should work on firefox and chrome at least) in their full call.</p>
<pre>for i in $(pgrep -f flash); do file /proc/$i/fd/*|awk '/tmp\/Flash/ { gsub(/:/, ""); print $1 }'; done</pre>
<p>You can now just use that files with mplayer!</p>
<p>I, personally, have buggy speakers and use it for manually increasing the volume output with softvol switch (forcing a software volume mixing)</p>
<pre>mplayer -fs -zoom -idx -softvol -softvol-max 10000 -volume 5000 `for i in $(pgrep -f flash); do file /proc/$i/fd/*|awk '/tmp\/Flash/ { gsub(/:/, ""); print $1 }'; done`</pre>
<pre></pre>
<p>&nbsp;</p>
]]></content:encoded>
			<wfw:commentRss>http://xayon.net/playing-temporary-files-with-mplayer-on-flash-11/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
	</channel>
</rss>

