Skip to content

Instantly share code, notes, and snippets.


David Torralba Goitia dtgoitia

View GitHub Profile
dtgoitia /
Last active July 21, 2019 09:25
BASH snippet to set up a new RSA key
echo "Creating a RSA key"
read -p " > Enter your email: " email
echo ""
ssh-keygen -t rsa -b 4096 -C "$email" -f "$key_path" > /dev/null 2>&1

Keybase proof

I hereby claim:

  • I am dtgoitia on github.
  • I am dtgoitia ( on keybase.
  • I have a public key ASCq83IqvTmv7S-P0kjSxqbSchyl57I_s_EolKz22DlVKgo

To claim this, I am signing this object:

View AutoLISP-1.lsp
(defun c:1 ( / ss )
; Remove polyline first vertex and close polyline
(if (setq ss (ssget '(( 0 . "LWPOLYLINE")) ))
(foreach a (ssnamex ss)
(if (= 'ename (type (cadr a)))
(if (= "LWPOLYLINE" (cdr (assoc 0 (entget (cadr a)))))
(if (= :vlax-false (vla-get-closed (vlax-ename->vla-object (cadr a))))
; Remove first vertex
(DT:RemovePolylineVertex (cadr a) (vlax-curve-getEndParam (vlax-ename->vla-object (cadr a))))