Created
December 12, 2019 00:04
-
-
Save Otoris/2d730501cdf503fa313af07484900963 to your computer and use it in GitHub Desktop.
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
export PATH="/Users/ethantrawick/.composer/vendor/bin:~/.node/bin:/usr/bin/xmllint:/usr/bin/php:/usr/local/bin/jshint:/usr/local/bin/csslint:/usr/bin/tidy:/usr/local/bin/bootlint:/Users/ethantrawick/GitHub/GLuaFixer/result/bin:/Users/ethantrawick/Library/Python/3.7/bin:/Users/ethantrawick/Library/Python/3.7:~/.local/bin:$PATH" | |
#load id_rsa so we don't need a passpharse for every action. | |
ssh-add -A 2>/dev/null; | |
#case $- in | |
# *i*) source ~/.bashrc | |
#esac | |
#export HOST="local.dev" | |
#DIRECTORY EXPORTS | |
export GITLAB="/Users/ethantrawick/Work - Summit/GitLab" | |
export MERCEDESLEGACY=$GITLAB/Mercedes-Benz-Certified-Collision-Program | |
export TCCC=$GITLAB/Toyota-Certified-Collision-Centers | |
export PORSCHELOCATOR=$GITLAB/Porsche-Locator | |
export PORSCHE=$GITLAB/Porsche-Certified-Collision-Program | |
export MERCEDES=$GITLAB/Mercedes-Benz-Certified-Collision-Program | |
export PSX=$GITLAB/Parts-Sales-Xcellerator | |
alias gs='git status ' | |
alias ga='git add ' | |
alias gb='git branch ' | |
alias gc='git commit' | |
alias gd='git diff' | |
#alias go='git checkout ' | |
alias gk='gitk --all&' | |
alias gx='gitx --all' | |
alias got='git ' | |
alias ll='ls -al' | |
alias ..='cd ..' | |
alias get="http --download" | |
alias mercedes='cd "$MERCEDES"' | |
alias mercedesold='cd "$MERCEDESLEGACY"' | |
alias tccc='cd $TCCC' | |
alias porschelocator='cd "$PORSCHELOCATOR"' | |
alias porsche='cd "$PORSCHE"' | |
alias psx='cd "$PSX"' | |
function play { | |
# Skip DASH manifest for speed purposes. This might actually disable | |
# being able to specify things like 'bestaudio' as the requested format, | |
# but try anyway. | |
# Get the best audio that isn't WebM, because afplay doesn't support it. | |
# Use "$*" so that quoting the requested song isn't necessary. | |
youtube-dl --default-search=ytsearch: \ | |
--youtube-skip-dash-manifest \ | |
--output="${TMPDIR:-/tmp/}%(title)s-%(id)s.%(ext)s" \ | |
--restrict-filenames \ | |
--format="bestaudio[ext!=webm]" \ | |
--audio-quality=1 "$*" \ | |
--exec=afplay "$*" | |
} | |
function mp3 { | |
# Get the best audio, convert it to MP3, and save it to the current | |
# directory. | |
youtube-dl --default-search=ytsearch: \ | |
--restrict-filenames \ | |
--format=bestaudio \ | |
--extract-audio \ | |
--audio-format=mp3 \ | |
--output="~/Dropbox/youtube-dl/%(title)s-%(id)s.%(ext)s" \ | |
--audio-quality=1 "$*" | |
} | |
function convert_timelapse { | |
NOW=$(date +"%y%m%d%H%M%S"); | |
cd ~/screencapture/jpg; | |
cnt=0 | |
rm -rf .DS_Store; | |
for file in * | |
do | |
if [ -f "$file" ] ; then | |
ext=${file##*.} | |
printf -v pad "%05d" "$cnt" | |
mv "$file" "${pad}.${ext}" | |
cnt=$(( $cnt + 1 )) | |
fi | |
done; | |
rm -rf 00000.jpg; | |
for pic in *.jpg; | |
do convert $pic -resize 50% $pic; | |
done; | |
ffmpeg -r 24 -i %05d.jpg -b 20000k ~/screencapture/mov/$USER-$NOW.mov; | |
rm -rf ./*.jpg; | |
} | |
if [ -e /Users/ethantrawick/.nix-profile/etc/profile.d/nix.sh ]; then . /Users/ethantrawick/.nix-profile/etc/profile.d/nix.sh; fi # added by Nix installer | |
# Tidy for Mac OS X by balthisar.com is adding the new path for Tidy. | |
export PATH=$PATH/usr/local/bin:/usr/local/sbin: | |
source /usr/local/opt/autoenv/activate.sh |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment