Skip to content

Commit

Permalink
Merge branch 'master' of github.com:kaihendry/dotfiles
Browse files Browse the repository at this point in the history
  • Loading branch information
kaihendry committed Dec 13, 2017
2 parents e4bc896 + dc50e90 commit 657e9c8
Show file tree
Hide file tree
Showing 8 changed files with 64 additions and 6 deletions.
7 changes: 1 addition & 6 deletions .bashrc
Expand Up @@ -114,9 +114,4 @@ test -f /usr/bin/aws_completer && complete -C '/usr/bin/aws_completer' aws
# added by travis gem
[ -f /home/hendry/.travis/travis.sh ] && source /home/hendry/.travis/travis.sh

# tabtab source for serverless package
# uninstall by removing these lines or running `tabtab uninstall serverless`
[ -f /home/hendry/.node_modules/lib/node_modules/serverless/node_modules/tabtab/.completions/serverless.bash ] && . /home/hendry/.node_modules/lib/node_modules/serverless/node_modules/tabtab/.completions/serverless.bash
# tabtab source for sls package
# uninstall by removing these lines or running `tabtab uninstall sls`
[ -f /home/hendry/.node_modules/lib/node_modules/serverless/node_modules/tabtab/.completions/sls.bash ] && . /home/hendry/.node_modules/lib/node_modules/serverless/node_modules/tabtab/.completions/sls.bash
export PATH="/usr/local/sbin:$PATH"
1 change: 1 addition & 0 deletions .ssh/config
Expand Up @@ -5,6 +5,7 @@ ControlMaster auto
ControlPath ~/.ssh/c-%r@%h:%p

Host bible
User hendry
port 500
HostName bible.kitten-x.com

Expand Down
15 changes: 15 additions & 0 deletions Movies/archive.sh
@@ -0,0 +1,15 @@
#!/bin/bash
for bundle in *.fcpbundle
do
test $bundle/Settings.plist || exit
name=$(basename $bundle .fcpbundle)
if test -e $name.tar
then
echo $name.tar already exists
exit 1
fi
if tar -cv --exclude "*Render Files*" --exclude "*Analysis Files*" -f $name.tar $bundle
then
test -e $name.tar && rm -rf $bundle
fi
done
9 changes: 9 additions & 0 deletions Movies/clearUp.sh
@@ -0,0 +1,9 @@
for i in *.fcpbundle
do
source=$(basename $i)
size=$(du -s $source | awk '{print $1}')
if test $size == 0
then
rsync -av --delete $(mktemp -d)/ $source/ && rmdir $source/
fi
done
9 changes: 9 additions & 0 deletions Movies/lupload.sh
@@ -0,0 +1,9 @@
#!/bin/sh
for i in "$@"
do
test -e "$i" || exit
test -d /Volumes/raid1/kai || exit
ddir="/Volumes/raid1/kai/$(date +%Y-%m-%d)"
test -d $ddir || mkdir $ddir
mv $i $ddir
done
5 changes: 5 additions & 0 deletions Movies/sizeUp.sh
@@ -0,0 +1,5 @@
for i in *.fcpbundle
do
echo $i
( cd $i && du -sh *)
done
15 changes: 15 additions & 0 deletions bin/fcpx-archive.sh
@@ -0,0 +1,15 @@
#!/bin/bash
for bundle in *.fcpbundle
do
test $bundle/Settings.plist || exit
name=$(basename $bundle .fcpbundle)
if test -e $name.tar
then
echo $name.tar already exists
exit 1
fi
if tar -cv --exclude "*Render Files*" --exclude "*Analysis Files*" -f $name.tar $bundle
then
test -e $name.tar && rm -rf $bundle
fi
done
9 changes: 9 additions & 0 deletions bin/lupload.sh
@@ -0,0 +1,9 @@
#!/bin/sh
for i in "$@"
do
test -e "$i" || exit
test -d /Volumes/raid1/kai || exit
ddir="/Volumes/raid1/kai/$(date +%Y-%m-%d)"
test -d $ddir || mkdir $ddir
mv $i $ddir
done

0 comments on commit 657e9c8

Please sign in to comment.