Skip to content

Instantly share code, notes, and snippets.

View maxibove13's full-sized avatar

Max maxibove13

  • IDATHA
  • Montevideo, Uruguay
View GitHub Profile
@maxibove13
maxibove13 / web_dev.md
Last active August 27, 2022 01:40
Web Development roadmap
@maxibove13
maxibove13 / gist:7678b8e3bd64781144dec1dc53110647
Created April 28, 2022 02:36
download unsplash wallpapers.
#!/bin/bash
wget -O /var/tmp/wallpaper.jpg https://source.unsplash.com/random/2560x1600/?mountains && gsettings set org.gnome.desktop.background picture-uri file:///var/tmp/wallpaper.jpg

Configurar SSH keys para gitlab

Crear claves ssh

Ir a la carpeta ~/.ssh y tipear el siguiente comando:

ssh-keygen -t rsa -b 2048 -C "<tu_email>@fing.edu.uy" 
@maxibove13
maxibove13 / carclass.py
Created July 8, 2021 21:44
A class to create Cars and Trips.
#!/usr/bin/env python3
# -*- coding: UTF-8 -*-
"""Module containing a Vehicle and Trip classes"""
__author__ = "Maximiliano Bove"
__email__ = "mbove@fing.edu.uy"
__status__ = "Development"
__date__ = "07/21"
@maxibove13
maxibove13 / compare_dates.py
Last active July 9, 2021 17:00
python program to compare two given dates by user
# Import RegEx
import re
# Functions
def enterDate(input_msg) :
"""Ask user for a date and validates it through dd/mm/yyyy format"""
# Regular expression to match
date_regex = r"[\d]{2}/[\d]{2}/[\d]{4}"
@maxibove13
maxibove13 / three_way_scp.sh
Created May 29, 2021 21:40
shell script to copy through an intermediate server. Remember to give permissions to the script: `chmod +x three_way_scp.sh`
ssh -t tero "scp mbove@login.cluster.uy:~/testingCopy ." &&
scp tero:~/testingCopy . &&
ssh -t tero "rm ~/testingCopy"
@maxibove13
maxibove13 / config.m
Created March 9, 2021 15:02
Config file for pre-processing scripts in MATLAB of caffa3d-wrf nesting.
%% PRIMERA PARTE: Settings
% 1. Directorio de guardado de las salidas.
% �Atenci�n! Terminar la direcci�n con un backslash (\) o un slash
% (/) (Windows o Linux respectivamente).
SavePath = '/home/max/Documents/FING/NEFELE/caffaInputFiles/'; %Directorio de guardado de las salidas de preprocesamiento.
% 2. Switches y opciones seleccionables
@maxibove13
maxibove13 / logic.js
Last active February 5, 2021 16:40
rock, paper, scissor logic
Users = [
{
id: 1,
name: 'Max',
email: 'maxibove13@gmail.com',
password: 'secret'
// matches Id to identify the matches played by User
matchesUser: [
id: '4',
@maxibove13
maxibove13 / getInputByTypeName.js
Created September 20, 2020 14:03
Get all inputs IDs with type='number'
const allNumFilters = document.querySelectorAll('input[type="number"]');
let allNumFiltersArray = [];
for (let i = 0; i < allNumFilters.length; i++) {
allNumFiltersArray.push(allNumFilters[i].id)
}
function filters() {
setTimeout(function(){
// clean the container.
while (container.hasChildNodes()) {
container.removeChild(container.lastChild)
}
// Initialize filteredArray as the full emperor list.
window.filteredArray = emperors;
// Call all filters functions.
howLong('fromReigningYears','toReigningYears');