<?xml version="1.0" encoding="utf-8" standalone="yes"?><rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom"><channel><title>Tip on Diogo Gomes</title><link>https://diogogomes.com/tags/tip/</link><description>Recent content in Tip on Diogo Gomes</description><generator>Hugo</generator><language>en</language><copyright>{year}</copyright><lastBuildDate>Fri, 20 Feb 2009 14:52:19 +0000</lastBuildDate><atom:link href="https://diogogomes.com/tags/tip/index.xml" rel="self" type="application/rss+xml"/><item><title>Bypassing a restrictive Firewall using SSH</title><link>https://diogogomes.com/2009/02/20/bypassing-a-restrictive-firewall-using-ssh/</link><pubDate>Fri, 20 Feb 2009 14:52:19 +0000</pubDate><guid>https://diogogomes.com/2009/02/20/bypassing-a-restrictive-firewall-using-ssh/</guid><description>&lt;p&gt;If you are faced with a restrictive firewall implemented by your local admin. But luckily enough to have access to a SSH server! You can use the following tip:&lt;/p&gt;
&lt;p&gt;A &lt;a href="http://en.wikipedia.org/wiki/SOCKS"&gt;SOCKS&lt;/a&gt; proxy can easily be setup using SSH, in a terminal type:&lt;/p&gt;
&lt;p&gt;&lt;code&gt;ssh -D 8080 -Nf your.sshserver.com&lt;/code&gt;&lt;/p&gt;
&lt;p&gt;Then just change your Browser/Application settings to point towards &lt;em&gt;localhost&lt;/em&gt; port &lt;em&gt;8080&lt;/em&gt;&lt;/p&gt;
&lt;p&gt;&lt;a href="https://diogogomes.com/images/2009/02/picture-2.png"&gt;&lt;img class="aligncenter size-medium wp-image-236" title="ProxyConf" src="https://diogogomes.com/images/2009/02/picture-2-300x241.png" alt="ProxyConf" width="300" height="241" /&gt;&lt;/a&gt;&lt;/p&gt;</description></item><item><title>Secure Screen Sharing</title><link>https://diogogomes.com/2009/02/03/secure-screen-sharing/</link><pubDate>Tue, 03 Feb 2009 13:15:29 +0000</pubDate><guid>https://diogogomes.com/2009/02/03/secure-screen-sharing/</guid><description>&lt;p&gt;At home I keep a &lt;a href="http://www.apple.com/macmini/"&gt;MacMini&lt;/a&gt; Media Center which from time to time I access it remotely. Usually I do this through the SSH Server in OS X. But eventually I might need to access it through a GUI. Here comes in hand Apple&amp;rsquo;s OS X nifty tool called &amp;ldquo;Screen Sharing&amp;rdquo; which is actually a &lt;a href="http://en.wikipedia.org/wiki/Vnc"&gt;VNC&lt;/a&gt; Server/Client. &lt;/p&gt;
&lt;p&gt;You can setup &amp;ldquo;Screen Sharing&amp;rdquo; at the same place you setup the SSH Server in &amp;ldquo;System Preferences -&amp;gt; Sharing&amp;rdquo; by ticking &amp;ldquo;Screen Sharing&amp;rdquo; and &amp;ldquo;Remote Login&amp;rdquo; respectively.&lt;/p&gt;</description></item><item><title>Squid transparent proxy in Ubuntu 8.04</title><link>https://diogogomes.com/2008/06/29/squid-transparent-proxy-in-ubuntu-804/</link><pubDate>Sun, 29 Jun 2008 17:50:57 +0100</pubDate><guid>https://diogogomes.com/2008/06/29/squid-transparent-proxy-in-ubuntu-804/</guid><description>&lt;p&gt;&lt;a href="http://www.squid-cache.org/"&gt;Squid&lt;/a&gt; is the defacto proxy system. Either in the lab or at home I use a transparent squid proxy in order to have a global cache system for all my devices (I really hate browser caches that take all you disk space).&lt;/p&gt;
&lt;p&gt;For years now, in order to configure a transparent Squid proxy you had to put in the following lines:&lt;/p&gt;
&lt;div class="highlight"&gt;&lt;pre tabindex="0" style="color:#f8f8f2;background-color:#272822;-moz-tab-size:4;-o-tab-size:4;tab-size:4;-webkit-text-size-adjust:none;"&gt;&lt;code class="language-bash" data-lang="bash"&gt;&lt;span style="display:flex;"&gt;&lt;span&gt;httpd_accel_host virtual
&lt;/span&gt;&lt;/span&gt;&lt;span style="display:flex;"&gt;&lt;span&gt;httpd_accel_port &lt;span style="color:#ae81ff"&gt;80&lt;/span&gt;
&lt;/span&gt;&lt;/span&gt;&lt;span style="display:flex;"&gt;&lt;span&gt;httpd_accel_with_proxy on
&lt;/span&gt;&lt;/span&gt;&lt;span style="display:flex;"&gt;&lt;span&gt;httpd_accel_uses_host_header on
&lt;/span&gt;&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;&lt;p&gt;plus the complimentary iptables rules in your router:&lt;/p&gt;</description></item><item><title>Leopard Terminal</title><link>https://diogogomes.com/2008/01/25/leopard-terminal/</link><pubDate>Fri, 25 Jan 2008 19:22:44 +0000</pubDate><guid>https://diogogomes.com/2008/01/25/leopard-terminal/</guid><description>&lt;p&gt;As a switcher I&amp;rsquo;m several times faced with the awkwardness of the differences between my previous work environment (Linux) and my new one.&lt;/p&gt;
&lt;p&gt;One of the most annoying ones has been the handling of the function keys. First I though that after a while I would get used to the mapping in OS X terminal, but then again I still work with too many Linux machines in the &lt;a href="http://hng.av.it.pt/" title="Heterogeneous Networks Group"&gt;Lab&lt;/a&gt;, and therefore never really let go of old habits.&lt;/p&gt;</description></item><item><title>Creating an electronic Curriculum Vitae</title><link>https://diogogomes.com/2007/11/02/creating-an-electronic-curriculum-vitae/</link><pubDate>Fri, 02 Nov 2007 16:55:48 +0000</pubDate><guid>https://diogogomes.com/2007/11/02/creating-an-electronic-curriculum-vitae/</guid><description>&lt;p&gt;Any now and then, one ends up needing to provide a Curriculum Vitae AKA &lt;a href="http://en.wikipedia.org/wiki/R%C3%A9sum%C3%A9"&gt;Résumé&lt;/a&gt; (CV).&lt;/p&gt;
&lt;img src="https://diogogomes.com/images/2008/06/images.jpeg" class="alignright" height="159" width="150"&gt;
&lt;p&gt;Either for applying for a job or just to be used to assert your credentials (for example while running for project fundings), you always end up needing an updated CV.&lt;/p&gt;
&lt;p&gt;So what do most people do ?&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;They keep a document of their idea of a CV&lt;/li&gt;
&lt;li&gt;They keep a document formated using the &lt;a href="http://europass.cedefop.europa.eu/europass/home/hornav/Introduction/navigate.action"&gt;&amp;ldquo;Europass standard&amp;rdquo;&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;They keep it online using services such as &lt;a href="http://www.linkedin.com"&gt;LinkedIn&lt;/a&gt;&lt;/li&gt;
&lt;/ul&gt;
&lt;p&gt;Of course there are other options :)&lt;/p&gt;</description></item><item><title>OS X Essentials</title><link>https://diogogomes.com/2007/08/30/os-x-essentials/</link><pubDate>Thu, 30 Aug 2007 01:42:01 +0100</pubDate><guid>https://diogogomes.com/2007/08/30/os-x-essentials/</guid><description>&lt;p&gt;Today one my &lt;a href="http://hng.av.it.pt/~jpbarraca/"&gt;friends&lt;/a&gt; became a switcher, thanks to a new Macbook
&lt;img src="https://diogogomes.com/images/2007/06/macbook.thumbnail.jpg" alt="Macbook" /&gt;&lt;/p&gt;
&lt;p&gt;One of the first things to do was of course to send him links of some of the things I consider essentials to any OS X user:&lt;/p&gt;
&lt;ul&gt;
	&lt;li&gt;Most basic widget (I don't get why apple doesn't ship such widget...) &lt;a href="http://www.islayer.com/index.php?op=item&amp;amp;id=7"&gt;iStat Pro&lt;/a&gt;&lt;/li&gt;
	&lt;li&gt;Codecs :) for that I use &lt;a href="http://perian.org/"&gt;Perian&lt;/a&gt; and &lt;a href="http://www.flip4mac.com/"&gt;Flip4mac&lt;/a&gt;&lt;/li&gt;
	&lt;li&gt;Instant Messaging is brought to you by &lt;a href="http://www.adiumx.com/"&gt;Adium&lt;/a&gt; aka "the duck"&lt;/li&gt;
	&lt;li&gt;File Transfer (FTP,SCP) is another duck's business: &lt;a href="http://cyberduck.ch/"&gt;Cyberduck&lt;/a&gt;&lt;/li&gt;
	&lt;li&gt;Re coding your multimedia files? You better pull your &lt;a href="http://handbrake.m0k.org/"&gt;HandBrake&lt;/a&gt;&lt;/li&gt;
	&lt;li&gt;With so much multimedia around the house you better get it all &lt;a href="http://www.delicious-monster.com/"&gt;Delicious&lt;/a&gt;ly sorted&lt;/li&gt;
	&lt;li&gt;Which you can then brag about in IRC using &lt;a href="http://colloquy.info/"&gt;Colloquy&lt;/a&gt;&lt;/li&gt;
	&lt;li&gt;Since life is not just about fun you can use &lt;a href="http://www.neooffice.org/"&gt;neoOffice&lt;/a&gt; to get some work actually done&lt;/li&gt;
&lt;/ul&gt;</description></item><item><title>DISTCC + AVAHI</title><link>https://diogogomes.com/2007/08/21/distcc-avahi/</link><pubDate>Tue, 21 Aug 2007 13:22:05 +0100</pubDate><guid>https://diogogomes.com/2007/08/21/distcc-avahi/</guid><description>&lt;p&gt;When considering a project involving a large number of source files, compilation time is always an issue.
&lt;a href="http://distcc.samba.org/"&gt;DistCC&lt;/a&gt; is in these cases a very good solution.
From DistCC site:&lt;/p&gt;
&lt;blockquote&gt;distcc is a program to distribute builds of C, C++, Objective C or Objective C++ code across several machines on a network. distcc should always generate the same results as a local build, is simple to install and use, and is usually much faster than a local compile&lt;/blockquote&gt;
My problem was how to keep the **$DISTCC_HOSTS** variable updated, since computers in my lab never seam to be left alone (after all... this is a lab :) ).
&lt;p&gt;My idea was therefore to use &lt;a href="http://avahi.org/"&gt;AVAHI&lt;/a&gt; and to come up with a simple unix pipe that would feed the $DISTCC_DIR/hosts file.&lt;/p&gt;</description></item><item><title>Using svn+ssh with RapidSVN</title><link>https://diogogomes.com/2007/08/08/using-svnssh-with-rapidsvn/</link><pubDate>Wed, 08 Aug 2007 14:18:20 +0100</pubDate><guid>https://diogogomes.com/2007/08/08/using-svnssh-with-rapidsvn/</guid><description>&lt;p&gt;After spending some time searching, I realized that this might help someone else.&lt;/p&gt;
&lt;p&gt;Not being able to properly replace &lt;a href="http://office.microsoft.com/en-us/visio/default.aspx"&gt;MS Visio&lt;/a&gt; in neither a Linux or OS X environment, I&amp;rsquo;ve been stuck with MS Office and a Virtual Machine for this sole purpose in my Linux and OSX environments. I keep my machine very light, I only install MS Office (Word+Excel+Visio), &lt;a href="http://www.mozilla.com/firefox/"&gt;Firefox &lt;/a&gt;&amp;amp; &lt;a href="http://www.mozilla.com/thunderbird/"&gt;Thunderbird&lt;/a&gt;, &lt;a href="http://www.chiark.greenend.org.uk/~sgtatham/putty/"&gt;Putty &lt;/a&gt;and &lt;a href="http://rapidsvn.tigris.org/"&gt;RapidSVN&lt;/a&gt;. This enables me to quickly access and edit a document, either using a web repository (&lt;a href="http://www.bscw.de/" title="Basic Support for Collaborative Work"&gt;e.g. BSCW&lt;/a&gt;), e-mail or &lt;a href="http://en.wikipedia.org/wiki/Subversion_%28software%29"&gt;SVN &lt;/a&gt;(don&amp;rsquo;t ask why, but some people like to use SVN to share documents in binary format).&lt;/p&gt;</description></item></channel></rss>