Tuesday, December 22, 2009

"hiding" a file in windows

copy /B [image.jpg] + [file] [new.jpg]

/B” is for binary. By adding this mark, you append [file] binary mode to the end of the new JPG.

a jpg viewer will only read the length indicated in the file header and ignore the rest, displaying the file as normal. By appending the extra data, the jpg's new file size will be the sum of the original jpg and the new file appended to it.

from:webfreebies4u.boggspot.com

Sunday, December 20, 2009

Alcatel CMD

ip static-route 192.168.0.1 mask 255.255.255.255 gateway 192.168.1.2 metric 1

Use to add a static route

Alcatel CMD

write memory
- copy working certified
- copy flash-synchro

Use after making configuration changes to save those changes.

Apple Mail DB re-index CMD

from: Dan Warne

March 3rd, 2007 · View commentsComments

Tim Gaden of Hawk Wings fame (and formerly of APC X-Factor fame, sniffle) has documented an excellent tip to speed up Apple Mail.

It involves optimising the SQLite database Apple Mail uses to store indexes and subject lines of emails.

You can check your current 'envelope archive' size by entering this in the terminal:

ls -lah ~/Library/Mail/Envelope\ Index

Then to optimise it (cleans out stuff that has been marked for deletion but not actually deleted, defragments the structure, etc):

sqlite3 ~/Library/Mail/Envelope\ Index vacuum;

Then check your envelope archive size again to see the results…

ls -lah ~/Library/Mail/Envelope\ Index

It compacted my envelope archive down from 55MB to 50MB — not a huge increase, but the speed difference was dramatic.

In particular, my 'sent mail' folder which had been taking 10 – 15 seconds to open (8,000 items) now only takes two or three seconds.

Read the full post and many informative comments here.

Alcatel CMD

Alcatel VLAN port assignment CMD

vlan [x] port default [x or x/x or x/x-x]

Twitpic RSS

To follow/find the TwitPic RSS feed use the following: http://twitpic.com/photos/username/feed.rss

renameing files with Bash

bash-3.2$ for file in *.png; do mv ${file} ${file%.png}.jpg; done