Last Update: 2017-01-11
task [id] modify end: status:pending
task +DELETED end:today modify end: status:pending
| #!/bin/env bash | |
| # | |
| # Author: Amado Martinez - AmadoMartinez.mx | |
| # License: MIT License | |
| # Date: 2016-05-02 | |
| # | |
| # Example: | |
| # $ ./shotwell_filenames_by_tag.sh ~/.local/share/shotwell/data/photo.db MyTag | |
| # |
| #!/bin/bash | |
| # | |
| # Author: Amado Martinez - AmadoMartinez.mx | |
| # License: MIT License | |
| # Date: 2016-05-10 | |
| # | |
| # Keywords: Flash Terminal Color Shell Color Blink Alert | |
| # | |
| if [ $# -lt 2 ] ; then |
| <?php | |
| /** | |
| * Returns the Symlink (Non-Realpath) of the current script. | |
| * I am not so sure how well this function works from inside include's. | |
| * Use case: | |
| * | |
| * [amado@gravedigger phpcode]$ php -f subdir/mysymlink/subdir/mysymlink/subdir/mysymlink/app.php | |
| * PWD: /tmp/phpcode | |
| * SCRIPT_FILENAME: subdir/mysymlink/subdir/mysymlink/subdir/mysymlink/app.php | |
| * ___FILE__ : /tmp/phpcode/app.php |
| #!/usr/bin/env php | |
| <?php | |
| /** | |
| * Author: Amado Martinez | |
| * License: MIT | |
| * Date: 2016-07-22 | |
| * | |
| * modify .i3status.conf general section: output_format = "i3bar" | |
| * modify i3 config: status_command i3status -c .i3status.conf | php -f ~/bin/i3statusphp | |
| * |
| #!/bin/env bash | |
| # | |
| # Author: Amado Martinez - AmadoMartinez.mx | |
| # License: MIT License | |
| # Date: 2016-08-11 | |
| # | |
| # Backup a complete wordpress installation | |
| # | |
| if [ $# -lt 2 ] ; then |
| ///<reference path="node.d.ts"/> | |
| /** | |
| * Author: Amado Martinez <amadomartinez.mx> | |
| * License: MIT | |
| * Date: 2016-08-31 | |
| * | |
| # information. To use it, ensure your ~/.i3status.conf contains this line: | |
| # output_format = "i3bar" | |
| # in the 'general' section. | |
| # Then, in your ~/.i3/config, use: |
| /** | |
| * Amado Martinez <amadomartinez.mx> | |
| * | |
| * Example Typescript / Javascript to retrieve taskwarrior data | |
| */ | |
| var execSync = require("child_process").execSync; | |
| var getIds = (filter) => { | |
| let ids = execSync("task " + filter + " _id").toString().split("\n"); | |
| ids.pop(); // remove empty line | |
| return ids; |
| #!/bin/env bash | |
| # | |
| # Author: Amado Martinez - AmadoMartinez.mx | |
| # License: MIT License | |
| # Date: 2016-11-02 | |
| # | |
| # Migrate to CentOS7 Script | |
| # provide newhost argument to transfer data and launch import and init processes to the new machine. | |
| # ssh keys must be setup on remote system. | |
| # use import argument for importing migration data and install services |
http://taskwarrior.org/docs/timewarrior/tutorial.html
Last update: 2016-11-15
$ sudo pacman -S timew