cleanup
This commit is contained in:
1
anaconda_env
Normal file → Executable file
1
anaconda_env
Normal file → Executable file
@@ -6,6 +6,7 @@
|
||||
#fi
|
||||
|
||||
dest=/sf/bernina/anaconda/4.4.0
|
||||
#dest=/sf/bernina/anaconda/ahl
|
||||
|
||||
echo Loading PSI Anaconda Python distribution 3.6
|
||||
module load psi-python36/4.4.0
|
||||
|
||||
15
anaconda_testenv
Executable file
15
anaconda_testenv
Executable file
@@ -0,0 +1,15 @@
|
||||
#!/bin/bash
|
||||
|
||||
#if [ $# != 1 ]; then
|
||||
# echo "Usage: $0 [alvra|bernina]"
|
||||
# exit 1
|
||||
#fi
|
||||
|
||||
dest=/sf/bernina/anaconda/ahl
|
||||
|
||||
echo Loading PSI Anaconda Python distribution 3.6
|
||||
module load psi-python36/4.4.0
|
||||
|
||||
echo Activating BERNINA Conda environment
|
||||
source activate $dest
|
||||
|
||||
2
chrome
Executable file
2
chrome
Executable file
@@ -0,0 +1,2 @@
|
||||
#/bin/bash
|
||||
google-chrome --user-data-dir=$HOME/.config/chrome-profiles/$HOSTNAME "$@"
|
||||
4
chromeAs
4
chromeAs
@@ -8,4 +8,6 @@
|
||||
#}
|
||||
#set-title "chrome terminal"
|
||||
|
||||
gnome-terminal -e "su $1 -c google-chrome"
|
||||
|
||||
#gnome-terminal -x sh -c "export XDG_RUNTIME_DIR=/run/user/$UID; su - $1 -c chrome"
|
||||
gnome-terminal -x sh -c "su - $1 -c chrome"
|
||||
|
||||
15
chrome_as
Executable file
15
chrome_as
Executable file
@@ -0,0 +1,15 @@
|
||||
#!/bin/bash
|
||||
#function set-title() {
|
||||
# if [[ -z "$ORIG" ]]; then
|
||||
# ORIG=$PS1
|
||||
# fi
|
||||
# TITLE="\[\e]2;$*\a\]"
|
||||
# PS1=${ORIG}${TITLE}
|
||||
#}
|
||||
#set-title "chrome terminal"
|
||||
|
||||
|
||||
#gnome-terminal -x sh -c "export XDG_RUNTIME_DIR=/run/user/$UID; su - $1 -c chrome"
|
||||
PASSWD="$(zenity --password --title=Chrome as User)\n"
|
||||
|
||||
echo -e "$PASSWD" | sudo -u $1 -S chrome
|
||||
11
eco
11
eco
@@ -1,9 +1,6 @@
|
||||
#/bin/bash
|
||||
source /opt/gfa/python
|
||||
export PYTHONPATH=$PYTHONPATH:/sf/bernina/config/src/python
|
||||
ipython --pylab --no-banner -c "\
|
||||
print(' ___ _______\n / -_) __/ _ \ \n Experiment Control \__/\__/\___/ \n\n');\
|
||||
from eco.instruments import bernina;\
|
||||
from eco.instruments.bernina import *;\
|
||||
" -i
|
||||
#source /opt/gfa/python
|
||||
source anaconda_env
|
||||
export PYTHONPATH=$PYTHONPATH:/sf/bernina/config/src/python/eco
|
||||
python /sf/bernina/config/src/python/eco/startup.py -s bernina "$@" -l
|
||||
|
||||
|
||||
9
eco_bams_bpms
Executable file
9
eco_bams_bpms
Executable file
@@ -0,0 +1,9 @@
|
||||
#/bin/bash
|
||||
#source /opt/gfa/python
|
||||
source anaconda_env
|
||||
export PYTHONPATH=$PYTHONPATH:/sf/bernina/config/src/python
|
||||
ipython --pylab --no-banner -c "\
|
||||
from eco_bams_bpms.instruments import bernina;\
|
||||
import eco_bams_bpms.instruments.bernina *;\
|
||||
" -i
|
||||
|
||||
14
eco_dev
Executable file
14
eco_dev
Executable file
@@ -0,0 +1,14 @@
|
||||
#/bin/bash
|
||||
PS1=$PS1"\[\e]2;eco_dev - Bernina \a\]"
|
||||
source anaconda_env
|
||||
export PYTHONPATH=$PYTHONPATH:/sf/bernina/config/src/python/devel
|
||||
ipython --pylab --no-banner -c "\
|
||||
print(' ___ _______\n / -_) __/ _ \ \n Experiment Control \__/\__/\___/ \n\n');\
|
||||
import h5py;\
|
||||
h5py.enable_ipython_completer();\
|
||||
import IPython.utils as _ipy_utils;\
|
||||
_ipy_utils.terminal.set_term_title('eco_dev Bernina');\
|
||||
from eco.instruments import bernina;\
|
||||
from eco.instruments.bernina import *;\
|
||||
" -i
|
||||
|
||||
9
eco_dev~
Executable file
9
eco_dev~
Executable file
@@ -0,0 +1,9 @@
|
||||
#/bin/bash
|
||||
source anaconda_env
|
||||
export PYTHONPATH=$PYTHONPATH:/sf/bernina/config/src/python/devel
|
||||
ipython --pylab --no-banner -c "\
|
||||
print(' ___ _______\n / -_) __/ _ \ \n Experiment Control \__/\__/\___/ \n\n');\
|
||||
from eco.instruments import bernina;\
|
||||
from eco.instruments.bernina import *;\
|
||||
" -i
|
||||
|
||||
17
eco_old
Executable file
17
eco_old
Executable file
@@ -0,0 +1,17 @@
|
||||
#/bin/bash
|
||||
#source /opt/gfa/python
|
||||
source anaconda_env
|
||||
export PYTHONPATH=$PYTHONPATH:/sf/bernina/config/src/python
|
||||
ipython --profile=operation --pylab --no-banner -c "\
|
||||
print(' ___ _______\n / -_) __/ _ \ \n Experiment Control \__/\__/\___/ \n\n');\
|
||||
import h5py;\
|
||||
h5py.enable_ipython_completer();\
|
||||
import IPython.utils as _ipy_utils;\
|
||||
_ipy_utils.terminal.set_term_title('eco Bernina');\
|
||||
|
||||
from eco_old.instruments import bernina;\
|
||||
from eco_old.instruments.bernina import *;\
|
||||
from escape.parse.swissfel import parseScanEco_v01;\
|
||||
#%config IPCompleter.use_jedi=True;\
|
||||
" -i
|
||||
|
||||
2
google-chrome
Executable file
2
google-chrome
Executable file
@@ -0,0 +1,2 @@
|
||||
#/bin/bash
|
||||
google-chrome --user-data-dir=$HOME/.config/chrome-profiles/$HOSTNAME "$@"
|
||||
2
laseroff
Executable file
2
laseroff
Executable file
@@ -0,0 +1,2 @@
|
||||
#!/bin/bash
|
||||
caput SLAAR21-LTIM01-EVR0:FrontUnivOut3_SOURCE2 "HIGH"
|
||||
2
laseron
Executable file
2
laseron
Executable file
@@ -0,0 +1,2 @@
|
||||
#!/bin/bash
|
||||
caput SLAAR21-LTIM01-EVR0:FrontUnivOut3_SOURCE2 "LOW"
|
||||
3
phonebook
Executable file
3
phonebook
Executable file
@@ -0,0 +1,3 @@
|
||||
#!/bin/bash
|
||||
clear
|
||||
cat /sf/bernina/config/phonelist
|
||||
@@ -2,7 +2,6 @@
|
||||
|
||||
/opt/gfa/pshell/pshell \
|
||||
-jvmarg="-Duser.home=/sf/bernina/data" \
|
||||
-last \
|
||||
-dlaf \
|
||||
-r \
|
||||
-py3 \
|
||||
|
||||
2
rdpWater
Executable file
2
rdpWater
Executable file
@@ -0,0 +1,2 @@
|
||||
#!/bin/bash
|
||||
xfreerdp -u WaterLab --no-nla -d WORKGROUP -g 1500x1000 WaterT450s
|
||||
@@ -1,2 +1,2 @@
|
||||
#!/bin/bash
|
||||
xfreerdp -u $1 --no-nla -d PSICH -g 2000x1000 $2
|
||||
xfreerdp -u $1 --no-nla -d PSICH -g 2560x1600 $2
|
||||
|
||||
7
restart_service
Executable file
7
restart_service
Executable file
@@ -0,0 +1,7 @@
|
||||
#!/bin/bash
|
||||
sudo su - dbe
|
||||
sudo systemctl restart $1.service
|
||||
sleep 5
|
||||
ech "done sleeping"
|
||||
exit
|
||||
|
||||
@@ -3,13 +3,13 @@
|
||||
|
||||
/opt/gfa/pshell/pshell \
|
||||
-jvmarg="-Duser.home=/sf/bernina/data" \
|
||||
-test -dlaf \
|
||||
-dlaf \
|
||||
-home=/sf/bernina/config/pshell_be \
|
||||
-data=/sf/bernina/config/pshell_data \
|
||||
-l -d -k -q -b -e -g -n -buf=10 -poll=250 -clog=SEVERE \
|
||||
-p=SfCamera.java \
|
||||
-p=Inventory.java \
|
||||
-p=CameraCalibrationDialog.java \
|
||||
-p=ScreenPanel2.java \
|
||||
-p=ScreenPanel3.java \
|
||||
-srv_url=sf-daqsync-01:8889 -cam_srv_url=sf-daqsync-01:8888 $@
|
||||
|
||||
|
||||
2
screen_panel_100pulseAvg
Executable file
2
screen_panel_100pulseAvg
Executable file
@@ -0,0 +1,2 @@
|
||||
#/bin/bash
|
||||
/sf/op/bin/screen_panel -integration=100
|
||||
2
screen_panel_10pulseAvg
Executable file
2
screen_panel_10pulseAvg
Executable file
@@ -0,0 +1,2 @@
|
||||
#/bin/bash
|
||||
/sf/op/bin/screen_panel -integration=10
|
||||
13
termAs
Executable file
13
termAs
Executable file
@@ -0,0 +1,13 @@
|
||||
#!/bin/bash
|
||||
#function set-title() {
|
||||
# if [[ -z "$ORIG" ]]; then
|
||||
# ORIG=$PS1
|
||||
# fi
|
||||
# TITLE="\[\e]2;$*\a\]"
|
||||
# PS1=${ORIG}${TITLE}
|
||||
#}
|
||||
#set-title "chrome terminal"
|
||||
|
||||
#gnome-terminal -e "bash - -c 'su - $1;$SHELL'"
|
||||
su - $1 -c "gnome-terminal -x sh -c 'su - $1;$SHELL'"
|
||||
#gnome-terminal -x sh -c "su - $1 -c chrome"
|
||||
@@ -8,4 +8,5 @@
|
||||
#}
|
||||
#set-title "chrome terminal"
|
||||
|
||||
gnome-terminal -e "bash -c 'su $1;$SHELL'"
|
||||
#gnome-terminal -e "bash - -c 'su - $1;$SHELL'"
|
||||
gnome-terminal -x sh -c "su - $1;$SHELL"
|
||||
|
||||
4
useful_commands
Executable file
4
useful_commands
Executable file
@@ -0,0 +1,4 @@
|
||||
#/bin/bash
|
||||
clear
|
||||
cat /sf/bernina/config/help_commands
|
||||
|
||||
Reference in New Issue
Block a user