- Save the two files below. I put them in '~/.scripts'
- Modify the configuration in konsole-watcher.sh to your liking
- Modify the location of konsole-watcher.sh in konsole-watcher-autostart.sh if you chose to put it somewhere besides ~/.scripts
- Create the directory ~/.konsole (or other location you chose for the save file)
- Create a symlink to konsole-watcher-autostart.sh in '~/.config/autostart-scripts
- or open System Settings > Startup and Shutdown and add a script to the Script Files (it does the same thing as creating the symlink)
- You might want to add a menu entry as well in case KDE autostart doesn't work for some reason
| #!/usr/bin/env python3 | |
| '''toodledo-agenda.py - Prepare your daily agenda in Toodledo | |
| Toodldeo doesn't _quite_ do the right thing, at least for me, whether I sort by | |
| date and then priority, or by priority and then date. | |
| * If I sort by date first, then top-priority items that aren't due by a | |
| specific date get pushed all the way to the bottom of my to-do list and I | |
| never see them. |
| @namespace url("http://www.mozilla.org/keymaster/gatekeeper/there.is.only.xul"); | |
| /* This Source Code Form is subject to the terms of the Mozilla Public | |
| * License, v. 2.0. If a copy of the MPL was not distributed with this | |
| * file, You can obtain one at http://mozilla.org/MPL/2.0/. */ | |
| /* | |
| * This style will hide the tab bar. For MacOS Big Sur | |
| * | |
| * Contributor(s): Isaac-Newt, Ivan0xFF, millerdev, AMomchilov | |
| */ |
- create and alias/ symlink for the file, I use 'watcher.sh' in my home directory
- when you fire up a
gnome-terminal- enter
~/watcher.shand leave that tab running in the background
- enter
- when you crash and reboot, and fire up a
gnome-terminal- enter
~/watcher.sh restoreto restore all your windows and tabs that you previously had open, and it will cotninue watching automatically after that is done
- enter
| #!/bin/bash | |
| # | |
| BACKUPDEST="$1" | |
| DOMAIN="$2" | |
| MAXBACKUPS="$3" | |
| if [ -z "$BACKUPDEST" -o -z "$DOMAIN" ]; then | |
| echo "Usage: ./vm-backup <backup-folder> <domain> [max-backups]" | |
| exit 1 |
| #! /bin/bash | |
| # Given the current working directory, find all of the files of the | |
| # type given and search for TODO comments in them and return a list | |
| # of these items. | |
| # | |
| # Usage: todolist <dir> '*.py' | |
| DIR=$1 | |
| if [ -z "$DIR" ]; then | |
| DIR="." |
This is way more complicated than it should be. The following conditions need to be met :
- need to be able to track and merge in upstream changes
- don't want remote commit messages in master
- only interested in sub-directory of another repo
- needs to go in a subdirectory in my repo.
In this particular case, I'm interested in bringing in the 'default' template of jsdoc as a sub-directory in my project so I could potentially make changes to the markup it genereates while also being able to update from upstream if there are changes. Ideally their template should be a separate repo added to jsdoc via a submodule -- this way I could fork it and things would be much easier.... but, it is what it is.
After much struggling with git, subtree and git-subtree, I ended up finding this http://archive.h2ik.co/2011/03/having-fun-with-git-subtree/ -- it basically sets up separate branches from tracking remote, the particular sub-directory, and uses git subtree contrib module to pull it all togther. Following are