Wednesday, October 26, 2011

How to copy the real URL of pages listed in google search results

Okay. Google's practice of using long ass unsharable redirect links instead of direct links to websites in their search results is a fucking pain in the ass. It's impossible to right click and copy a link to a page right from the google search result page, which makes it impossible to get an appropriate link to something that cannot be viewed in the browser and can only me downloaded, like a pdf, a word document, or something similar.

I have a solution.

Notice that on a fresh search, if you hover a link, what will first show in the status bar is the direct URL to the page it links to. However, as soon as you click or right click the link, the URL is replaced with that ugly google URL.

The solution is to use FireBug, right click and inspect the [pdf] or [doc] element that is just before the link. It's then easy to locate the actual link of search result and possible to get the direct URL. You have to do it on a fresh search and you must not click the link.

Friday, October 21, 2011

The good ones go first

You know how they say that the good ones go first and then people say "God needed them"... well maybe god is actually like "Fuck you, you're too happy, so I'm going to kill you and put you in a shittier life."

Wednesday, October 19, 2011

Quickly save and reinstall a list of packages on Ubuntu

Credit this guy : http://ubuntuforums.org/showthread.php?t=261366

I found out how to do this recently and thought it might be helpful to some people. To output this information to a file in your home directory you would use,
dpkg --get-selections > installed-software
And if you wanted to use the list to reinstall this software on a fresh ubuntu setup,

dpkg --set-selections < installed-software
followed by

dselect

Sunday, October 09, 2011

Setup mibbit with InspIRCd 2.0

Both Mibbit's and InspIRCd's wikis are incomplete about that. So here is the full set of instructions on setting this up, with a little improvement.

If you have uncommented <module name="m_cgiirc.so"> in your config file then recomment it.
Instead, add the following line to your config :
<include file="conf/cgiirc.conf">

Create a new file called cgiirc.conf in the conf directory.
Inside that file, add the following :

<module name="m_cgiirc.so">

<cgiirc opernotice="yes">

<cgihost type="webirc" password="yourpasswordhere" mask="64.62.228.82">
<cgihost type="webirc" password="yourpasswordhere" mask="207.192.75.252">
<cgihost type="webirc" password="yourpasswordhere" mask="78.129.202.38">
<cgihost type="webirc" password="yourpasswordhere" mask="109.169.29.95">

<connect name="mibbit" allow="64.62.228.82" maxchans="30" timeout="60" pingfreq="120" recvq="8192" localmax="50" globalmax="50" useident="no" limit="5000" modes="+ix">
<connect name="mibbit2" allow="207.192.75.252" maxchans="30" timeout="60" pingfreq="120" recvq="8192" localmax="50" globalmax="50" useident="no" limit="5000" modes="+ix">
<connect name="mibbit3" allow="78.129.202.38" maxchans="30" timeout="60" pingfreq="120" recvq="8192" localmax="50" globalmax="50" useident="no" limit="5000" modes="+ix">
<connect name="mibbit4" allow="109.169.29.95" maxchans="30" timeout="60" pingfreq="120" recvq="8192" localmax="50" globalmax="50" useident="no" limit="5000" modes="+ix">

This provides you with the advantage of having all your configuration related to cgiirc in one file so if you need to change something, it will be much easier.

"yourpasswordhere" is a password that you will set by going to irc.mibbit.com #help and talking to an IRCOP to have your network added to their database. Note that they won't list your network in their server list if you don't want them to. You HAVE to do this (register your network with mibbit), otherwise everyone who will connect to your network using Mibbit will be under one of the 4 Mibbit hosts. This means that if you do not do this and ban someone who uses Mibbit, you will also ban everyone who uses Mibbit and has connected with the same Mibbit host.

You should be all set! All you need to do now is to rehash your server.