Skip to content

Instantly share code, notes, and snippets.

View alv-alvarez's full-sized avatar

Alvaro Alvarez alv-alvarez

  • Santiago, Chile
View GitHub Profile
@alv-alvarez
alv-alvarez / setup.sh
Created December 6, 2022 23:33 — forked from bradp/setup.sh
New Mac Setup Script
echo "Creating an SSH key for you..."
ssh-keygen -t rsa
echo "Please add this public key to Github \n"
echo "https://github.com/account/ssh \n"
read -p "Press [Enter] key after this..."
echo "Installing xcode-stuff"
xcode-select --install
@alv-alvarez
alv-alvarez / Operaciones-Git
Created May 16, 2018 20:28 — forked from jelcaf/Operaciones-Git
Git Tips - Mini-trucos de Git para facilitarme la tarea
#############################################
# Push de la rama actual
git push origin $rama_actual
#############################################
# Volver a un commit anterior, descartando los cambios
git reset --HARD $SHA1
#############################################
# Ver y descargar Ramas remotas
#Ordenar fechas segun formato
from datetime import datetime
date = ['aug_17', 'jul_17', 'jun_17', 'may_17', 'oct_17', 'sep_17'] // Las fechas deben venir segun el formato del locate
date_sorted = sorted(date, key=lambda month: datetime.strptime(month, "%b_%y"))
#Ordenar segun arreglo dado
date = ['ago_17', 'jul_17', 'jun_17', 'may_17', 'oct_17', 'sep_17']