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 | |
| ### ABOUT: See: http://gist.github.com/366269 | |
| ### Runs rsync, retrying on errors up to a maximum number of tries. | |
| ### On failure script waits for internect connection to come back up by pinging google.com before continuing. | |
| ### | |
| ### Usage: $ ./rsync-retry.sh source destination | |
| ### Example: $ ./rsync-retry.sh user@server.example.com:~/* ~/destination/path/ | |
| ### | |
| ### INPORTANT: |
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 backups an OS X system to an external volume, effectively | |
| # cloning it. It is based on [0], [1] and [2] for OS X and [3] and [4] for | |
| # Linux. One could also use commercial tools like SuperDuper! or Carbon Copy | |
| # Cloner. The latter website has an interesting list[5] on what files to | |
| # exclude when cloning. | |
| # | |
| # Exclusions (from CCC[5]), see rsync_excludes_osx.txt | |
| # |
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
| # GLOBAL CONFIGURATIONS | |
| # ------------------------------------------------------------------- | |
| # See https://github.com/jigish/slate/wiki/Global-Configs | |
| config defaultToCurrentScreen true | |
| config secondsBeforeRepeat 0.4 | |
| config secondsBetweenRepeat 0.1 | |
| config keyboardLayout "qwerty" | |
| config nudgePercentOf screenSize | |
| config resizePercentOf screenSize |
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 | |
| # encode.sh | |
| # | |
| # Copyright (c) 2013 Don Melton | |
| # | |
| # This version published on June 7, 2013. | |
| # | |
| # Re-encode video files in a format suitable for playback on Apple TV, Roku 3, | |
| # iOS, OS X, etc. |
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 | |
| # batch.sh | |
| # | |
| # Copyright (c) 2013-2014 Don Melton | |
| # | |
| # This version published on October 22, 2014. | |
| # | |
| # Batch control for the "transcode-video.sh" script. | |
| # |
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
| tell application "Evernote" | |
| set x to selection | |
| repeat with i from 1 to count of x | |
| set theurl to note link of item i of x | |
| end repeat | |
| end tell |
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
| property markdownloc : "/usr/local/bin/multimarkdown" | |
| property tid : AppleScript's text item delimiters | |
| set mdSource to the clipboard | |
| --check for Title metadata | |
| try | |
| if text item 1 of paragraph 1 of mdSource = "#" then | |
| if not text item 2 of paragraph 1 of mdSource = "#" then | |
| set theTitle to text items 3 thru -1 of paragraph 1 of mdSource as string |
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
| (* CREATE AND AUTOLINK TO NEW NOTE FROM SELECTION | |
| --Stephen Margheim | |
| --11/26/13 | |
| --open source | |
| This script takes text selected from within an Evernote note and (1) creates a new note whose titles matches the selected text in the same notebook, (2) embeds a link to the original note as the first line of the new note, and (3) replaces the selected text with a link to the newly created note. | |
| This allows you to easily create a wiki-like environment within your Evernote account. | |
| *) |
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 | |
| # | |
| # transcode-video.sh | |
| # | |
| # Copyright (c) 2013-2015 Don Melton | |
| # | |
| about() { | |
| cat <<EOF | |
| $program 5.13 of April 8, 2015 |
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 | |
| # | |
| # convert-video.sh | |
| # | |
| # Copyright (c) 2013-2014 Don Melton | |
| # | |
| about() { | |
| cat <<EOF | |
| $program 2.0 of December 3, 2014 |
OlderNewer