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/zsh | |
| # Retrieve a link from history firefox with the title | |
| # GistID: b0f0f613a0e9752f75654d7dd569841e | |
| history_dir=${FIREFOX_PROFILE_DIR:-~/.mozilla/firefox/lpaxa2pv.travail-1729068729785} | |
| title=$1 | |
| database=file:${history_dir}/places.sqlite?immutable=1 | |
| sqlite3 $database <<EOF | |
| SELECT url FROM moz_places WHERE title LIKE '%${title}' | |
| EOF |
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
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
| module https://gist.github.com/tyjak/fc9b3cfc6d616fdc5df1718729d44d0f | |
| go 1.20 |
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
| package bodyreplace | |
| import ( | |
| "bytes" | |
| "io" | |
| "net/http" | |
| "regexp" | |
| ) | |
| type Config struct { |
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
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 | |
| # | |
| # The script automates task creation in Taskwarrior using the title of the | |
| # active window. It allows for tag extraction from the window title, annotation | |
| # creation from text selection, and Taskwarrior option customization through | |
| # command-line arguments. Errors are logged for debugging purposes, and | |
| # notifications are provided for task creation success and failure. | |
| # | |
| # Exemple : task_add -a -t +cal due:2025-04-04T1700 | |
| # |
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 | |
| # This script serves as a Taskwarrior hook, automating the generation and | |
| # sending of iCal events via email when tasks with specific criteria are | |
| # modified or created. It extracts task details, such as title, due date, and | |
| # annotations, then constructs an iCal event and sends it as an email | |
| # attachment using Mutt. Optionally, it can append event details to a specified | |
| # file. The script enhances Taskwarrior's functionality by seamlessly | |
| # integrating task management with calendar events, streamlining task tracking | |
| # and scheduling processes. |
NewerOlder