Skip to content

Instantly share code, notes, and snippets.

Avatar

David Torralba Goitia dtgoitia

View GitHub Profile
@dtgoitia
dtgoitia / ssh-key-setup.sh
Last active Jul 21, 2019
BASH snippet to set up a new RSA key
View ssh-key-setup.sh
#!/bin/bash
key_name="id_rsa"
key_path="$HOME/.ssh/$key_name"
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
View keybase.md

Keybase proof

I hereby claim:

  • I am dtgoitia on github.
  • I am dtgoitia (https://keybase.io/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))))
(progn
; Remove first vertex
(DT:RemovePolylineVertex (cadr a) (vlax-curve-getEndParam (vlax-ename->vla-object (cadr a))))
You can’t perform that action at this time.