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
git config --global user.name "Ivan E. Cao-Berg" | |
git config --global user.email "icaoberg@scs.cmu.edu" |
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
#!/bin/bash | |
for FOLDER in *; | |
do | |
if [ -d "$FOLDER" ]; | |
then | |
zip -r "$FOLDER".zip "$FOLDER" | |
fi | |
done |
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
#!/bin/bash | |
for FOLDER in *; | |
do | |
if [ -d "$FOLDER" ]; | |
then | |
echo $FOLDER | |
for SUBFOLDER in "$FOLDER"/* | |
do |
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
#!/bin/bash | |
find . -name "*.m" -exec sed -i 's/\/home\/icaoberg\/cellorganizer-matlab-master/\/home\/icaoberg\/projects\/cellorganizer\/matlab/g' {} \; |
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
#!/bin/bash | |
find . -name "*.sh" -exec sed -i 's/#PBS -M icaoberg@andrew.cmu.edu/##PBS -M icaoberg@andrew.cmu.edu/g' {} \; |
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
TAG="v1.7.2" | |
git tag -d $TAG | |
git push origin :refs/tags/$TAG |
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
#!/bin/bash | |
sudo apt-get update | |
sudo apt-get install setup-tools python-matplotlib | |
sudo easy_install pip | |
sudo pip install pyslic | |
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
cp /opt/matlab/amd64_f7/7.10/lib/matlab7/toolbox/matlab/codetools/private/*.gif . | |
sed -i 's/file:\/\/\/\/opt\/matlab\/amd64_f7\/7.10\/lib\/matlab7\/toolbox\/matlab\/codetools\/private\///g' *.html | |
sed -i 's/file:\/\/\/\/opt\/matlab\/7.13\/toolbox\/matlab\/codetools\/private\///g' *.html | |
sed -i 's/file0.html/index.html/g' *.html | |
mv file0.html index.html |
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
#!/bin/bash | |
SUBSTRING='substring_to_remove' | |
for FILE in * | |
do | |
mv -v "$FILE" "${FILE/$SUBSTRING/}" | |
done |
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
#!/bin/bash | |
mencoder -oac copy -ovc copy -idx -o output.avi input1.avi input2.avi input3.avi |