This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #!/bin/bash | |
| # --------------------------------------------------------- | |
| # Script para pedir un número de escritorios virtuales | |
| # y configurarlo con gsettings. | |
| # Usa zenity si está disponible, si no, usa yad. | |
| # --------------------------------------------------------- | |
| # Detectar herramienta disponible | |
| if command -v yad >/dev/null 2>&1; then |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| bind-key -n Home send Escape "OH" | |
| bind-key -n End send Escape "OF" |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #!/usr/bin/env fish | |
| # ------------------------------------------------------------ | |
| # Convert every .mp4 file in the current directory to OGG Vorbis | |
| # and place the resulting .ogg files in a sibling folder | |
| # called "archivos-audio". | |
| # ------------------------------------------------------------ | |
| # 1. Create the destination folder if it doesn't exist | |
| set timestamp (date +"%Y-%m-%dT%H%M%S") |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #!/usr/bin/fish | |
| # | |
| # dwm-status-bar | |
| # | |
| # Prints status information to X's root window. | |
| # This is suitable for dwm and similar tiling window managers. | |
| set DATE_FORMAT "+%a %d %b %Y %H:%M %Z" | |
| while true |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| from datetime import datetime | |
| # Formato de la fecha: 'dd-mm-yyyy' | |
| fecha_inicio = '01-01-2023' | |
| fecha_fin = '16-12-2023' | |
| # Convertir las cadenas a objetos datetime | |
| fecha_inicio = datetime.strptime(fecha_inicio, '%d-%m-%Y') | |
| fecha_fin = datetime.strptime(fecha_fin, '%d-%m-%Y') |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| import base64 | |
| def create_onedrive_directdownload (onedrive_link): | |
| data_bytes64 = base64.b64encode(bytes(onedrive_link, 'utf-8')) | |
| data_bytes64_String = data_bytes64.decode('utf-8').replace('/','_').replace('+','-').rstrip("=") | |
| resultUrl = f"https://api.onedrive.com/v1.0/shares/u!{data_bytes64_String}/root/content" | |
| return resultUrl |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| from pathlib import Path | |
| def create_dirs_recursively(location: str): | |
| Path(location).mkdir(parents=True, exist_ok=True) |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| """ | |
| extract_zip_to_sqlite.py: Extract a zipped collection on csv files into a fresh sqlite3 database. | |
| == Requirements == | |
| * A fairly recent version of Pandas. | |
| * An schema of the tables definitions. | |
| == Ussage == |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| """ | |
| export_access_to_csv.py - Creates a compressed dump of an MSAccess database tables. | |
| USAGE | |
| invoke from the same directory where `settings.toml` is located. | |
| RETURNS | |
| A comprezed zip file in the format '%Y-%m-%dT%H_%M_%S-database_name.zip' |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| import argparse | |
| from datetime import date | |
| from pathlib import Path | |
| FRONTMATTER_TEMPLATE = """--- | |
| layout: page | |
| title: {args.title} | |
| comments: true | |
| published: true |
NewerOlder