Skip to content

Instantly share code, notes, and snippets.

View lsaavedr's full-sized avatar

Luis Saavedra lsaavedr

View GitHub Profile
@lsaavedr
lsaavedr / UbuntuOnTheFly.md
Last active November 12, 2024 20:15
Ubuntu On the Fly

Ubuntu On the Fly

En esta oportunidad veremos como instalar Ubuntu noble en una partición que tengamos libre (también podría ser un disco externo), esto lo haremos sin tener necesidad de reiniciar ni dejar de trabajar. Luego de terminar la instalación tendremos que reiniciar si queremos probar nuestro nuevo sistema.

Sistema Base

  • La partición se encuentra en /dev/sdb2
  • La partición se montará en $PWD/ubuntu (debe ser /root/ubuntu)
  • El nombre de nuestro equipo será pcsito y el dominio ssd
  • El super usuario se llamará lsaavedr

Accedemos como root y configuramos este sistema:

@lsaavedr
lsaavedr / example.sh
Last active September 24, 2018 07:08
print two pages per sheet
pdfjam --paper letterpaper --nup 2x1 --trim "4cm 4cm 4cm 0cm" --scale 1.1 --landscape in.pdf --outfile output.pdf
@lsaavedr
lsaavedr / tcoord_mlp.py
Created April 13, 2017 18:35 — forked from marcelino-m/tcoord_mlp.py
Transformacion de coordenadas MLP
import math as m
def mlp2sirgas(x_in, y_in):
K = 0.9993861340849
W = 0.0025759302920
T_x = 299836.7973
T_y = 6399665.955
teta= W * m.pi / 180.0