Debian/Ubuntu: Loading iptables rules on boot

Submitted by Druss on Wed, 2012-07-04 03:30

If you've ever worked with Debian or Ubuntu servers, you've very likely had to set up a firewall at some point or the other. However, any changes that are made are not saved and loaded if the server is ever rebooted. The following is a quick guide on how to get this happening:

(root or sudo access is required)

Command-line downloading files behind an authentication wall

Submitted by Druss on Sat, 2012-06-30 00:25

I often find myself in situations where I want to download a file from the command-line using tools such as wget. While there are many reasons to doing so, today I needed to do it due to the size of the file and the fact that I needed it on a webserver of mine. So instead of downloading it first to my desktop and then uploading it to my server, I wanted to simply download the file directly from my webserver via the command-line.

Firefox taskbar pinned icon opening window with a duplicate icon

Submitted by Druss on Wed, 2012-06-13 12:22

I accidentally unpinned my Windows 7 Firefox taskbar icon. While I was able to re-add it easily enough, clicking it to open FF resulting in a duplicate icon being spawned which was where FF was opened. I had to google a bit to find a fix and here it is:

Envy, jealousy, and puke: Why all green?

Submitted by Druss on Wed, 2012-06-13 11:12

I was wondering earlier why the predominant color of Islam is green. This led me to wondering why it's also associated with emotions like envy and jealousy. Here are a few of the fruits of my dig deep down into the "emerald mine of knowledge" that is the Internet.

From Shakespeare's The Merchant of Venice:

Hiding Apache version information in Ubuntu

Submitted by Druss on Sat, 2012-06-02 00:03

If you've ever visited a webserver's error page, it will usually state the error followed by information about the server. This will customarily tend to include the webserver software, its version, possibly information about some of the modules compiled in as well as the server's address and port. While this might look generous and helpful, it also allows bad guys as well as other parties to probe the server to find out what it is running as well as other details such as version information. This information can be used for nefarious purposes.

Minuscule vs. Miniscule - Spelling evolution

Submitted by Druss on Tue, 2012-05-22 03:30

Every now and then I find myself subconsciously typing miniscule when I should actually be typing minuscule. I know that the latter is the correct spelling. Nevertheless, the former is so widely used nowadays that, and a lot of sources back this, it has become the spelling of choice when it comes to non-literary (colloquial) usage. Seeing it used so widely and so often is impressed on my brain and I literally can't help myself spell it that way when I'm in .. auto mode.

Linking Adsense account to Google Analytics account

Submitted by Druss on Mon, 2012-05-21 23:40

The new Google Analytics interface is quite nice if often annoying. One of the many issues I have been having with it is linking the Adsense account for one particular domain to its equivalent Analytics account. Most of the help documentation is for the previous version of the Analytics interface and the newer docs are not terribly helpful at all. The latter simply keeps asking me to go to the Admin tab and linking the Adsense account by clicking on it or something trivial like that.

Git: Deleting remote branches and tags from the commandline

Submitted by Druss on Thu, 2012-05-17 00:50

Since it wasn't working well enough in Eclipse, I had to muddle around for a solution for the command-line. I found the one below and it's nifty:

Deleting a branch:
git push origin :mybranch

Deleting a tag:
git push origin :mytag

IOW, the syntax is identical for both tags and branches.

Cheers!

Tags:

Pages

Subscribe to languor.us RSS