Skip to content

Instantly share code, notes, and snippets.

View nogara's full-sized avatar

Luiz Gustavo Nogara nogara

  • Square Knowledge Ventures
  • Rio de Janeiro
View GitHub Profile
@nogara
nogara / weather.sh
Last active September 21, 2023 19:11
Simple alternative to wttr.in using OpenWeatherMap
#!/bin/bash
# Check for debug flag
DEBUG=0
if [ "$1" == "--debug" ]; then
DEBUG=1
shift
fi
# Check if location is provided
@nogara
nogara / ConvertDOCtoPDF.scpt.source
Last active May 20, 2024 13:21
Convert old Microsoft .doc files to PDFs
on run {input_file, output_file}
try
-- Ensure input and output paths are POSIX paths (macOS paths)
set input_path to POSIX file input_file
set output_path to POSIX file output_file
tell application "Microsoft Word"
-- Start Microsoft Word if not already running
if not application "Microsoft Word" is running then
launch