Click Technology

Linux, Windows, Mac it's all good
Browsing Linux Tips

Tip of the month, easily!

March22

So, I’m sitting there trying to install a python module with pip and the package keeps erroring, saying the package has a problem on line X of file y in some-package-3.4.1.tar.gz. The installation so far has been like this..

Rage quit

Ugh! Must I really de-tar/zip this and crawl through it and edit the code and then retar/zip the code and so on?

No.

Not with vim.

You just go…

$ vim some-package-3.4.1.tar.gz

vim then unzips and untars the file and shows it as a directory listing. You arrow-down the list, pick the file you want, hit return and it opens the file ready to edit. Noice!

When finished, all you do is, as normal, just go :wq and it saves the file and shows the list of files in the tar archive again. :wq again and vim re-tars and re-compresses the file, ready to use. On a scale of 1-10, that is clearly an 11.

posted under Linux Tips | Comments Off on Tip of the month, easily!

A plus for email..

March14

So, you followed that tutorial about how to setup postfix with SA and clamd, right?  OP?
Here’s a handy tip.

Imagine the scenario.. you’re online and a site wants your email address to email you something. You don’t want to really give your address because it’s possible the data will be sold or passed on. Wat do?

Append a plus (“+”) sign and any combination of words or numbers after your email address.

For example, if your email address is bob.smith@test.com, and you book tickets on say, a travel website, enter your email address as bob.smith+shitty_travel@test.com. You will receive your email/tickets etc. as usual, but now you can filter it and also, more importantly, see where spamming mail has come from if you suddenly get unrelated mail with the same target address. Noice.

posted under Linux Tips | Comments Off on A plus for email..

This.

November14

This is why I love git. A little tricky to get the exact hang of it, but once you have it, there’s no going back!

posted under Linux Tips | Comments Off on This.

Good to (not) know

June27

Check out this tweet form Mr. Edward Snowden.  Interesting indeed.  PGP still looks intact in its raw form.  This is good news.  Assuming the end point device has not been compromised of course and the password and private key snarfed.

That said, that is something really only a state player or well financed operative will have a shot at.  For the regular folk using PGP means always having your thoughts and ideas protected.

 

If somebody gets access to your mail server, as per Hillary Clinton, at least the attacker will have squigabytes worth of nothing and nobody finds out about your involvement with Saudi, mis-handling classified documents, Libya and the Clinton Foundation.

Your email was intercepted.  Two words.  “Shit” and “Jack”.

posted under General, Linux Tips | Comments Off on Good to (not) know

Useful backup advice..

June5

It’s always a good time to remind yourself of the advantages of having a backup of your files.  Have a read of the Tao of Backup, before it’s too late!

posted under Linux Tips | No Comments »

Stack overflow gem

May29

I was looking for some info on the right way to use a regex to parse a small piece of html which had me stumped.

I found this gem on stack overflow with 4426 positive replies.  This guy gets it.

posted under Linux Tips | No Comments »
« Older Entries

This is my website for short blog posts and interesting materials that are noteworthy or have some handy-tip value.