Skip to content

Commit a4fc7cd

Browse files
committedMar 23, 2020
moved scripts around
1 parent 6ab40f9 commit a4fc7cd

40 files changed

+100
-3
lines changed
 
File renamed without changes.

‎bash/clean-tmpfiles.sh

+2
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
#!/bin/bash -x
2+
find ~arossi -name "*~" | xargs rm -f

‎bash/dcache-rpm

+4
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
#!/bin/bash
2+
3+
ls /home/arossi/work/dcache/packages/fhs/target/rpmbuild/RPMS/noarch
4+
File renamed without changes.
File renamed without changes.
File renamed without changes.

‎bash/eclipse.csh

+4
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
#! /bin/tcsh
2+
3+
/Applications/eclipse-SDK-3.7-macosx-cocoa/Eclipse.app/Contents/MacOS/eclipse &
4+

‎bash/find_java

+4
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
#/bin/bash
2+
3+
find modules -type f -name "*.java" | xargs grep $@
4+
File renamed without changes.

‎bash/java-version

+17
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,17 @@
1+
#!/bin/sh
2+
3+
CURR=`pwd`
4+
cd /Library/Java/JavaVirtualMachines
5+
6+
SDKS=(`ls -t | grep $1`)
7+
VERSION=${SDKS[0]}
8+
9+
echo ${VERSION}
10+
11+
rm -f current
12+
ln -s ${VERSION} current
13+
14+
cd $CURR
15+
16+
java -version
17+

‎bash/java-version.sh

+8
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
#!/bin/sh
2+
3+
VERSION=$1
4+
5+
rm -f /usr/java/default
6+
ln -s /usr/java/$VERSION /usr/java/default
7+
8+
java -version

‎bash/mvn-rpm

+4
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
#!/bin/bash
2+
3+
rm -f /home/arossi/Work/dcache-server/packages/fhs/target/rpmbuild/RPMS/noarch/*
4+
mvn clean package -am -pl packages/fhs -P rpm $@

‎bash/rename

+12
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
#!/bin/sh
2+
3+
cd $1
4+
5+
FILES=(`find . -name "*.jp*g"`)
6+
N=`echo ${FILES[@]} | wc -w`
7+
8+
for i in `seq 0 ${N}`
9+
do
10+
echo mv "${FILES[(${i})]}" NC_0${i}.jpg
11+
mv "${FILES[(${i})]}" NC_0${i}.jpg
12+
done

‎bash/rename.save

+12
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
#!/bin/sh -x
2+
3+
cd $1
4+
5+
FILES=(`ls *.jpg`)
6+
N=`echo ${FILES[@]} | wc -w`
7+
8+
for i in `seq 0 ${N}`
9+
do
10+
echo mv "${FILES[(${i})]}" ${i}.jpg
11+
mv "${FILES[(${i})]}" ${i}.jpg
12+
done

‎bash/rename.save.1

+12
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
#!/bin/sh -x
2+
3+
cd $1
4+
5+
FILES=(`ls *.jpg`)
6+
N=`echo ${FILES[@]} | wc -w`
7+
8+
for i in `seq 0 ${N}`
9+
do
10+
echo mv "${FILES[(${i})]}" ${i}.jpg
11+
mv "${FILES[(${i})]}" ${i}.jpg
12+
done

‎bash/ssh-socket.csh

+20
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,20 @@
1+
#!/bin/tcsh
2+
3+
set socket = /tmp/$USER-hyak-socket
4+
5+
if ( ! -e $socket ) then
6+
# -S: use/create socket
7+
# -f: background
8+
# -M: master mode (for tunnel)
9+
# -N: do not execute remote command
10+
ssh -S $socket -fMN arossi55@hyak.washington.edu
11+
endif
12+
13+
if ( ! -e $socket ) then
14+
echo "hyak: unable to create ssh socket '$socket'"
15+
exit 1
16+
endif
17+
18+
# -S: use socket
19+
# -Y: enable trusted X11 forwarding
20+
ssh -S $socket -Y arossi@hyak.washington.edu

‎bash/xterm.sh

+1
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
ssh -2 -Y arossi@fnisd1
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.

‎scripts/dmitry/README.md

-3
This file was deleted.
File renamed without changes.
File renamed without changes.
File renamed without changes.

0 commit comments

Comments
 (0)
Please sign in to comment.