RSS
 

Recursively chmod directories or files only

13 Jan

find . -type d -exec chmod 755 {} \;

This will recursively search your directory tree (starting at dir ‘dot’) and chmod 755 all directories only.

Similarly, the following will chmod all files only (and ignore the directories):

find . -type f -exec chmod 644 {} \;

 

 

Counting all files in a directory (and subdirectories)

16 Dec

I found a useful CLI command to count the number of files in my directory.

ls -Ra1 /usr|grep -v /|grep -vx ""|grep -vx "\.*"|wc -l
 
No Comments

Posted in Ubuntu

 

Update EEE PC BIOS

07 Oct

Tu update or flash you bios follow these steps

  1. Get the latest bios for your model from http://support.asus.com/download/download.aspx
  2. Rename the file to 1005P.ROM
  3. Format your USB storage device fat16.
  4. Put 1005P.ROM on the USB storage device.
  5. Shut down the netbook.
  6. Turn the netbook back on.
  7. Hold down alt, and press f2 repeatedly.
  8. The ASUS ezflash utility should come up. Allow it to do its work.
 
No Comments

Posted in HowTo, Ubuntu

 

SVN undo the add operation

28 Sep

If you use SVN to commit your work and get the error “is scheduled for addition, but is missing” when committing to the repository, then problem is that the file is scheduled for the add operation but somehow it has been deleted and SVN couldn’t send it to the repository because the file no longer exist.

To make the commit works, all you need to do is undo the add operation

svn revert myfile

Hope this helps!

 
1 Comment

Posted in Computer

 

10 Dead Simple Gmail Tips, Tricks & Shortcuts

25 Sep

I liked very much a post on mashable dealing with Gmail tips.

I liked this tip:

Add Emphasis in Chat


Gmail’s instant messaging Chat function is one of the more basic options around, but there are a few bits of formatting you can use to add nuance to your online communication.

To bold a word, asterisk it like this: *Mashable*

To add italics, just underscore before and after the word like this: _Mashable_

And to strike a word through, add hyphens before and after like so: -Mashable-

and this tip:

Create Variations of Your E-mail Address


Although technically you only have one Gmail address, you can create as many variations of it as you wish to help manage your incoming mail.

You can do this by adding a word after your name with a plus sign (if the site you’re entering the address into allows it). So, yourname+newsletters@gmail.com, yourname+shopping@gmail.com, and so on.

This alias system then comes into its own if you also set up filters to direct those messages where you want them. For example, they could skip the inbox and be archived, have a label applied, be forwarded to another account, and so on.

To set up a filter, go to “Settings,” hit the “Filters” tab, select “Create New Filter” and follow the simple steps from there.

The original post can be found here.