Many recepies for sending data with curl
via POST method didn't work for me. Eg, this was not working for me:
🔴
curl -F ‘data=@path/to/local/file’ UPLOAD_ADDRESS
(as advised for example here)
for f in *.logs; | |
do echo $f; | |
echo "compound,score" > `basename $f .logs`.csv; | |
cat $f | egrep "Molecule:|Grid_Score" | tr -s " " | sed -e ':a;N;$!ba;s/\n Grid_Score: / /g' -e 's/Molecule: //g' | \ | |
tr " " "," >> `basename $f .logs`.csv; | |
done |
conformer_search_type flex | |
write_fragment_libraries no | |
user_specified_anchor no | |
limit_max_anchors no | |
min_anchor_size 5 | |
pruning_use_clustering yes | |
pruning_max_orients 1000 | |
pruning_clustering_cutoff 100 | |
pruning_conformer_score_cutoff 100.0 | |
pruning_conformer_score_scaling_factor 1.0 |
#!/bin/bash | |
export CLASSPATH=/home/username/progs/weka-3-8-2/weka.jar | |
java weka.Run weka.classifiers.meta.GridSearch \ | |
-t train.arff \ | |
-d svm.model \ | |
-c last \ | |
-num-slots 2 \ | |
-sample-size 67 \ |
# install miniconda, then: | |
# create new environment | |
conda create -n docking-rdock | |
# activate it! | |
conda activate docking-rdock | |
# add channels |
#!/bin/bash | |
#see: https://forums.garmin.com/apps-software/mobile-apps-web/f/garmin-connect-web/83432/polar-flow-tcx-export-to-garmin-connect | |
cat polar.tcx | sed -e '/<Creator/,/<\/Creator>/d' -e '/<Author/,/<\/Author>/d' > garmin.tcx |
#!/bin/bash | |
export DISPLAY=:0 | |
kdialog --title "Borg backup done $(date +"%A %x")" --passivepopup "<pre>$(cat /home/user/backup.log)</pre>" 10s |
#!/bin/bash -e | |
# Single time - install packages, clone repos | |
# apt-get install git build-essential python3-dev libglew-dev \ | |
# libpng-dev libfreetype6-dev libxml2-dev \ | |
# libmsgpack-dev python3-pyqt5.qtopengl libglm-dev libnetcdf-dev | |
# git clone --depth=1 https://github.com/schrodinger/pymol-open-source.git | |
# git clone --depth=1 https://github.com/rcsb/mmtf-cpp.git |
#!/bin/bash | |
vpnConnectionName="my vpn connection" | |
if nmcli c show --active | grep -q "$vpnConnectionName"; then | |
echo "$vpnConnectionName connection is up" | |
else | |
echo "$vpnConnectionName connection is down, let's connect" | |
nmcli con up id "$vpnConnectionName" | |
sleep 4s |
Many recepies for sending data with curl
via POST method didn't work for me. Eg, this was not working for me:
🔴
curl -F ‘data=@path/to/local/file’ UPLOAD_ADDRESS
(as advised for example here)
#!/bin/bash | |
cat input.sdf | sed '/M END/,/$$$$/{//!d}' > input-fields-removed.sdf |