This is a annoying, even if it take 5mn to code thing like that :
(defun my-dired-rm-rf()
"Rm -rf directories"
(interactive)
(let ((sel (selected-window)))
(dolist (curFile (dired-get-marked-files))
(if (yes-or-no-p (concat "Do you want to remove \"" (file-name-nondirectory curFile) "\" ? "))
(progn
(shell-command (concat "rm -rvf " curFile)
"*Removing Directories*")
(kill-buffer "*Removing Directories*")
(select-window sel)
(revert-buffer)
)
))
))
you [...]
Filed under: Emacs on February 11th, 2007 | No Comments »
Renaming Oracle Database is a pain, coming from OpenSource DB like
MySQL or PostGres where we do that all the time i did not think that
Oracle have to be such a pain.
My only way i can find.
- If i have the tablespace named tablesp1 and owned by the
user user1, and i want to [...]
Filed under: Oracle on February 7th, 2007 | No Comments »
A useful svn wrapper scripts. Get a diff of your local repostitory against the upstream repository changes. I wonder why it is not builtins though like a svn status -u but for dif.
#!/bin/bash
IFS="
"
for line in `svn status -u`;do
[[ $line != " "* ]] && continue
rev=`echo [...]
Filed under: Scripts on February 6th, 2007 | 1 Comment »