buy levitra online
viagra generic
cialis sale
cialis non prescription
viagra usa
canadian pharmacy levitra
discount cialis
no prescription cialis
viagra generic
order cialis lowest price
viagra for sale
buy cialis online without prescription
order online levitra
viagra buy
buy cialis online without prescription
viagra cheap
buy levitra online
cialis for sale
viagra online
viagra no prescription
discount viagra sale
no prescription viagra
cialis without prescription
no prescription viagra
no prescription viagra
no prescription viagra
generic cialis sale
buy cialis uk
order viagra cialis
viagra cheap
discount levitra
canadian pharmacy
canadian pharmacy viagra
viagra online without prescription
viagra for sale
cialis for sale
levitra without prescription
viagra online
no prescription viagra
viagra for sale
generic viagra sale
viagra sale
buy viagra online without prescription
viagra cheap
levitra without prescription
discount viagra
viagra without prescription
canadian cialis
buy viagra
cialis without prescription
discount cialis
generic viagra sale
generic levitra
no prescription viagra
levitra for sale
price viagra
sale of viagra
levitra no prescription
viagra no prescription
viagra for sale
get viagra without prescription
Viagra online without prescription
cheap viagra sale
no prescription levitra
canadian viagra for sale
viagra canada
buy generic cialis
cheapest viagra
buy viagra online without prescription
canadian pharmacy cialis
cialis 20 mg
discount viagra
buy viagra online without prescription
viagra no prescription
where to buy viagra
(require 'url) (require 'htmlize)
(defvar scpaste-http-destination
"http://p.hagelb.org"
"Publicly-accessible (via HTTP) location for pasted files.")
(defvar scpaste-scp-destination
"p.hagelb.org:p.hagelb.org"
"SSH-accessible directory corresponding to `scpaste-http-destination'.
You must have write-access to this directory via `scp'.")
(defvar scpaste-footer
(concat "<p style='font-size: 8pt; font-family: monospace;'>Generated by "
user-full-name
" using <a href='http://p.hagelb.org'>scpaste</a> at %s.</p>")
"HTML message to place at the bottom of each file.")
(defvar scpaste-tmp-dir "/tmp"
"Writable location to store temporary files.")
(defun scpaste (original-name)
"Paste the current buffer via `scp' to `scpaste-http-destination'."
(interactive "MName (defaults to buffer name): ")
(let* ((b (htmlize-buffer))
(name (url-hexify-string (if (equal "" original-name)
(buffer-name)
original-name)))
(full-url (concat scpaste-http-destination "/" name ".html"))
(scp-destination (concat scpaste-scp-destination "/" name ".html"))
(tmp-file (concat scpaste-tmp-dir "/" name)))
(save-excursion
(switch-to-buffer b)
(search-forward " </body>\n</html>")
(insert (format scpaste-footer (current-time-string)))
(write-file tmp-file)
(kill-buffer b))
(eshell-command (concat "scp " tmp-file " " scp-destination))
(ignore-errors (kill-buffer "*EShell Command Output*"))
(kill-new full-url)
(message "Pasted to %s (on kill ring)" full-url)))
(defun scpaste-index ()
"Generate an index of all existing pastes on server on the splash page."
(interactive)
(let ((dest-parts (split-string scpaste-scp-destination ":")))
(eshell-command (concat "ssh " (car dest-parts) " ls " (cadr dest-parts)))
(save-excursion
(switch-to-buffer "*EShell Command Output*")
(flush-lines "^Password: $" (point-min) (point-max))
(flush-lines "private" (point-min) (point-max))
(let ((file-list (split-string (buffer-string) "\n")))
(with-temp-buffer
(insert-file-contents "~/.emacs.d/scpaste.el") (goto-char (point-min))
(search-forward ";;; Commentary")
(previous-line)
(insert "\n;;; Pasted Files\n\n")
(mapcar (lambda (file) (insert (concat ";; * <" scpaste-http-destination "/" file ">\n"))) file-list)
(emacs-lisp-mode) (font-lock-fontify-buffer) (rename-buffer "SCPaste")
(scpaste "index")))
(ignore-errors (kill-buffer "*EShell Command Output*")))))
(provide 'scpaste)