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
| # Give it a gpx filename as the argument. | |
| # This assumes the track name is in the <name> element. This is how it came from Strava. YMMV. | |
| # Some of theses headers certainly aren't needed. Experiment carefully. Read the comments inline. | |
| # Most important will be your API key which is in the binary form data. Search for 'name="key"' | |
| # below. You may have to inspect an API call to get your key. | |
| filename="$1" | |
| filecontents=`cat $1` | |
| name=`cat $1 | grep '<name>' | sed -e 's/.*<name>//g' | sed -e 's/<\/name>//g'` |
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 | |
| OIFS=$IFS | |
| IFS=$(echo -en "\n\b") | |
| for f in * | |
| do | |
| echo "$f" | |
| done | |
| IFS=$OIFS |
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
| if [ $UID -eq 0 ]; then NCOLOR="red"; else NCOLOR="green"; fi | |
| if [ "$AWSUME_PROFILE" = "canary-production-admin" ]; then PCOLOR="red"; else PCOLOR="green"; fi | |
| ## Prompt stuff | |
| # Autoload zsh's `add-zsh-hook` and `vcs_info` functions | |
| # (-U autoload w/o substition, -z use zsh style) | |
| autoload -Uz add-zsh-hook vcs_info | |
| # Set prompt substitution so we can use the vcs_info_message variable |
OlderNewer