Insert a comment with username and date ...
Add the following to your .emacs file:
;; insert a comment w/ name and date
(defun insert-comment ()
(interactive)
(comment-dwim "")
(insert-string "!!! ")
(insert-string (getenv "USER"))
(insert (format-time-string " %Y%m%d: ")))
To use it, just type “M-x insert-comment“.
If it’s too much work for you, you can add [...] | Read More =>
Notifications using ssh and dbus-python
First make sure dbus-python is installed on the remote host. Download the mesg.sh script. Make it executable. To send a message to a user at a remote desktop. u can also use html-like syntax to send URLs. He will receive the following notification. [...] | Read More =>
Mount remote directories using ssh
Install sshfs-fuse and make sure fuse is loaded. mount the remote dir using sshfs [...] | Read More =>
rsync over ssh
rsync --progress -avz -e ssh user@host:data/ ./data/ [...] | Read More =>
Sudo & Multiple command line
problem:
$ sudo 'for i in 1 2; do echo $i; done'sudo: for i in 1 2; do echo $i; done: command not found
solution:
$ sudo bash -c 'for i in 1 2; do echo $i; done'12
[...] | Read More =>
Anime CRC32 checksum in Linux
Submitted by: Taoufix | Category: Computers, Media & Fun
Make sure you have python fchksum installed (for gentoo users : emerge dev-python/python-fchksum). Create a file (crc32sum.py) w/ the following content. [...] | Read More =>
Cracked LCD Prank
Submitted by: Taoufix | Category: Computers, Media & Fun
You can get the pictures from here.
See the prank in action.
[...] | Read More =>
Firefox Add-ons : User Agent Switcher
Submitted by: Fahdos | Category: Computers, Web & Design
User Agent Switcher lets you change the User Agent browser.
You can access:
Dumb sites which doesn’t recognize a Firefox browser (set Agent to IE)
Pay or “Registered users only” sites (set Agent to Google Bot)
[...] | Read More =>
My top 10 Commands
The idea comes from here. They call me the Copy Ninja for a reason (^\) Anyway, here they are: [...] | Read More =>