Skip to content

Instantly share code, notes, and snippets.

View nico-i's full-sized avatar

Nico Ismaili nico-i

View GitHub Profile
@nico-i
nico-i / rec_image_copy.py
Last active May 16, 2022 11:01
Copy nested images into an output directory
import os
import shutil
import sys
from tqdm import tqdm
work_path = '.'
if len(sys.argv) > 1:
work_path = sys.argv[1]
output_dir = os.path.abspath('./all_files/')
@nico-i
nico-i / azure_to_trello_migrator.py
Last active August 7, 2023 14:45
This script converts an Azure DevOps export csv file to a csv file that can be imported into Trello with "Import to Trello by Blue Cat (CSV, Excel)"
import csv
# export method I used: https://debug.to/6112/export-work-items-in-azure-devops
class AzureItem:
# Item ID,Board Column,Parent ID,Work Item Type,Title,Description,Assigned To,State,Tags
item_id = ''
board_column = ''
parent_id = ''
work_item_type = ''
@nico-i
nico-i / drink_water_cron.sh
Last active March 19, 2024 10:32
Display an intrusive prompt to drink water every 15min using a cron job
# - OSX / MacOS -
# Cron Job
*/15 * * * * osascript -e 'tell application (path to frontmost application as text) to display dialog "Drink some water. :]" buttons {"OK"}'
# Automatically add cron job to existing cron jobs
(crontab -l ; echo "*/15 * * * * osascript -e 'tell application (path to frontmost application as text) to display dialog \"Drink some water. :]\" buttons {\"OK\"}'") | crontab -
# as su
(sudo crontab -l ; echo "*/15 * * * * osascript -e 'tell application (path to frontmost application as text) to display dialog \"Drink some water. :]\" buttons {\"OK\"}'") | sudo crontab -
# - Fedora Linux -
# Cron Job