Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
This file contains 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 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. |
This file contains 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/python | |
""" | |
This script allows you to automatically create tasks in Taskwarrior based on unread | |
emails fetched from an IMAP server. It fetches unread emails from a specified IMAP | |
server, parses the subject of each email, and creates a corresponding task in | |
Taskwarrior. | |
The script reads configuration parameters, such as IMAP server details, email address, | |
password command, IMAP folder, default project for tasks, and default tags for tasks, |
This file contains 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 | |
# GistID: 8bfc3cd340d443b6847ccd443b4a1acc | |
yaycachedir=~/.cache/yay | |
yaycache="$(find $yaycachedir -maxdepth 1 -type d | awk '{ print "-c " $1 }' | tail -n +2)" | |
echo "==> Keep last 2 installed versions" | |
/usr/bin/paccache -rvk2 $yaycache | |
for pkgdir in "$yaycachedir"/*/; do |
This file contains 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 | |
# Export title, link and extraxt to a gmi file | |
# GistID: 6489320d1def15b182b86bf29f1d1b73 | |
id=$(xprop -root | awk '/_NET_ACTIVE_WINDOW\(WINDOW\)/{print $NF}') | |
name=$(xprop -id $id | awk '/_NET_WM_NAME/{$1=$2="";print}' | cut -d'"' -f2) | |
FILE_NOTE=${GMI_FILE_NOTE:-~/sdf/gopher/notes-de-lectures.gmi} | |
#FILE_NOTE=/tmp/test.gmi | |
TITRE=${1:-$name} |
This file contains 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
/* | |
* Vieb - Vim Inspired Electron Browser | |
* Copyright (C) 2019-2022 Jelmer van Arnhem | |
* | |
* This program is free software: you can redistribute it and/or modify | |
* it under the terms of the GNU General Public License as published by | |
* the Free Software Foundation, either version 3 of the License, or | |
* (at your option) any later version. | |
* | |
* This program is distributed in the hope that it will be useful, |
This file contains 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 | |
# get width of the monitor | |
# GistID: 95863f4302b5bd8c85e565a122f8e0df | |
xrandr | grep "*" | cut -d" " -f4 | cut -d"x" -f2 |
This file contains 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 | |
# get width of the monitor | |
# GistID: 3e0bc7adbd07f82eb7eeca30215e9934 | |
xrandr | grep "*" | cut -d" " -f4 | cut -d"x" -f1 |
NewerOlder