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
""" | |
Check if a temperature lower than a certain threshold is detected in next day's forecast in | |
Weather.com | |
Requirements: | |
* beautifulsoup4 | |
* requests | |
""" | |
import subprocess | |
import sys |
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
""" | |
Searches for deleted videos from the likes playlist of YouTube | |
Ubuntu packages: | |
* python3-google-auth-oauthlib | |
* python3-googleapi | |
* python3-tqdm | |
""" | |
import argparse | |
import os |
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/sh | |
BACKUP_NOTION="/home/leonardo/Baul/backup/notion.zip" | |
set -e | |
echo "\033[93m" "Copiar backup a remoto" "\033[m" | |
rclone copy "$BACKUP_NOTION" backup: | |
echo "\033[92m" "OK" "\033[m" | |
echo | |
echo "\033[93m" "Comprobando:" "\033[m" | |
ls -lt "$BACKUP_NOTION" | |
echo |
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
""" activity_plot.py | |
Diagrama heatmap de calendario de actividad | |
Dependencies: | |
- pandas | |
- numpy | |
- matplotlib | |
Usage: | |
python activity_plot.py |
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
""" | |
This module processes insurance PDF files and updates a Google Sheets spreadsheet with extracted | |
data. | |
It provides functionality to: | |
- Authenticate and connect to Google Sheets using service account credentials. | |
- Parse and extract relevant information (such as month, price, and valuation) from a PDF file. | |
- Append the extracted data as a new row in a specified Google Sheets document. | |
- Optionally run in dry-run mode to print extracted data without updating the spreadsheet. |
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
#include <WindowsConstants.au3> | |
#include "digimon-world-dawn_dusk\nogba.au3" | |
#include "digimon-world-dawn_dusk\utils.au3" | |
Opt("ExpandVarStrings", 1) | |
Opt("MouseCoordMode", 2) | |
Opt("PixelCoordMode", 2) | |
Opt("SendKeyDelay", 100) | |
Opt("TrayMenuMode", 3) |
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/sh | |
FILE="/etc/php/7.4/mods-available/xdebug.ini" | |
case "$1" in | |
"off") patron="^(zend_extension)/# \1" ;; | |
"on") patron="^# (zend_extension)/\1" ;; | |
*) error 1 "Comando no reconocido" | |
esac | |
sed -Ei "s/$patron/" "$FILE" |
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/sh | |
ACCOUNT="TODO" | |
set -e | |
result=${2-${1%.*}.2.${1##*.}} | |
tmpFile=$(mktemp) | |
pdftk "$1" output "$tmpFile" uncompress | |
sed -i "s/$ACCOUNT//g" "$tmpFile" | |
pdftk "$tmpFile" output "$result" compress | |
rm "$tmpFile" |
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
# https://www.man7.org/linux/man-pages/man1/tmux.1.html | |
unbind C-b | |
set-option -g prefix C-a | |
set-option -g default-command "" | |
TMUX_COLOR="blue" | |
set -g status-bg black | |
set -g status-fg $TMUX_COLOR |
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
def theodorus(stop: int, radius=1., center: list[float] = (0., 0., 0.), clockwise=True, z=0.): | |
""" Generates the Theodorus spiral points | |
Assumes the center of the spiral is at the `center` | |
#### Arguments | |
- `stop`: Number of points | |
- `radius` (default: `1.0`): Radius of the spiral | |
- `center` (default: `(0.0, 0.0)`): Center of the spiral | |
- `clockwise` (default: `True`): Rotation direction of the spiral |
NewerOlder