Compare commits

..

8 commits

Author SHA1 Message Date
Jakobus Schürz
e80fd819c4 Merge branch 'master' of git.schuerz.at:jakob/myshellconfig 2024-09-17 08:26:42 +02:00
Jakobus Schürz
30a9e1e783 change deploy-aliases 2024-09-13 16:25:24 +02:00
Jakobus Schürz
4319386d74 add bitwarden-cli alias 2024-09-13 16:24:41 +02:00
Jakobus Schürz
130e92f8c6 add autocompletion for bw
bitwarden cli does not give autocompletion for bash, so add it.

Source is https://github.com/bitwarden/cli/issues/307
2024-09-13 16:24:41 +02:00
Jakobus Schürz
d9f2eec747 aliases aktualisiert 2024-07-23 10:58:18 +02:00
Jakobus Schürz
8f14a90071 fix goarchive 2024-04-17 16:25:41 +02:00
Jakobus Schürz
0367bf7303 fix fixtoken function 2024-04-17 15:42:17 +02:00
Jakobus Schürz
db32880410 fix function to get ips and hostnames from net 2024-03-07 17:14:24 +01:00
2 changed files with 4 additions and 3 deletions

View file

@ -7,7 +7,7 @@ alias apv="ansible-playbook --ask-vault-pass"
alias fuck='sudo $(history -p \!\!)'
alias wosis='which $(history -p \!\!)'
alias fix='reset; stty sane; tput rs1; clear; echo -e "\033c"' # Fix terminal aber binary output
alias fix='reset; stty sane; tput rs1; clear; echo -e "\033c"; printf "\033[3J"' # Fix terminal aber binary output
alias fixbmi='fixtoken; ssh -Oexit svras' # Fix terminal aber binary output
alias fixtoken='sudo systemctl restart pcscd.service' # Fix terminal aber binary output
# Source https://www.digitalocean.com/community/tutorials/how-to-use-bash-history-commands-and-expansions-on-a-linux-vps

View file

@ -1,4 +1,5 @@
alias deploypvp='getatsvc; TARGETDIR=/opt/atlassian/${APP_NAME}/${APP_INST_NAME}/WEB-INF/lib; COMCSV=$(ls -t /root/INSTALL/commons-csv* |head -n1); SETTINGS=$(ls -t /root/INSTALL/at.gv.bmi.atlassian.pvp.settings* |head -n1); PVP=$(ls -t /root/INSTALL/at.gv.bmi.atlassian.pvp.authenticator.*${SVC}* |head -n1); echo "Deploy $SETTINGS $PVP $COMCSV"; systemctl stop ${APP_NAME}.service ;rm ${TARGETDIR}/at.gv.bmi.* ${TARGETDIR}/$(basename $COMCSV); cp ${SETTINGS} ${PVP} ${COMCSV} ${TARGETDIR}/.; systemctl restart ${APP_NAME} --no-block ;tailatpvp'
alias deploypvpandstop='getatsvc; TARGETDIR=/opt/atlassian/${APP_NAME}/${APP_INST_NAME}/WEB-INF/lib; COMCSV=$(ls -t /root/INSTALL/commons-csv* |head -n1); SETTINGS=$(ls -t /root/INSTALL/at.gv.bmi.atlassian.pvp.settings* |head -n1); PVP=$(ls -t /root/INSTALL/at.gv.bmi.atlassian.pvp.authenticator.*${SVC}* |head -n1); echo "Deploy $SETTINGS $PVP $COMCSV"; systemctl stop ${APP_NAME}.service ;rm ${TARGETDIR}/at.gv.bmi.* ${TARGETDIR}/$(basename $COMCSV); cp ${SETTINGS} ${PVP} ${COMCSV} ${TARGETDIR}/.'
#alias deploypvp='getatsvc; TARGETDIR=/opt/atlassian/${APP_NAME}/${APP_INST_NAME}/WEB-INF/lib; COMCSV=$(ls -t /root/INSTALL/commons-csv* |head -n1); SETTINGS=$(ls -t /root/INSTALL/at.gv.bmi.atlassian.pvp.settings* |head -n1); PVP=$(ls -t /root/INSTALL/at.gv.bmi.atlassian.pvp.authenticator.*${SVC}* |head -n1); CHARDET=$(ls -t /root/INSTALL/juniversalchardet*|head -n1); echo "Deploy $SETTINGS $PVP $COMCSV" "$CHARDET"; systemctl stop ${APP_NAME}.service ;"${TARGETDIR}"/at.gv.bmi.* "${TARGETDIR}"/"$(basename $CHARDET)" "${TARGETDIR}"/"$(basename $COMCSV)"; cp "${SETTINGS}" "${PVP}" "${COMCSV}" "${CHARDET}" "${TARGETDIR}"/.; systemctl restart ${APP_NAME} --no-block ;tailatpvp'
#alias deploypvpandstop='getatsvc; TARGETDIR=/opt/atlassian/${APP_NAME}/${APP_INST_NAME}/WEB-INF/lib; COMCSV=$(ls -t /root/INSTALL/commons-csv* |head -n1); SETTINGS=$(ls -t /root/INSTALL/at.gv.bmi.atlassian.pvp.settings* |head -n1); PVP=$(ls -t /root/INSTALL/at.gv.bmi.atlassian.pvp.authenticator.*${SVC}* |head -n1); CHARDET=$(ls -t /root/INSTALL/juniversalchardet*|head -n1); echo "Deploy $SETTINGS $PVP $COMCSV $CHARDET"; systemctl stop ${APP_NAME}.service ;rm "${TARGETDIR}"/at.gv.bmi.* "${TARGETDIR}"/"$(basename $CHARDET)" "${TARGETDIR}"/"$(basename $COMCSV)"; cp "${SETTINGS}" "${PVP}" "${COMCSV}" "${CHARDET}" ${TARGETDIR}/.'
alias deploypvp='getatsvc; TARGETDIR=/opt/atlassian/${APP_NAME}/${APP_INST_NAME}/WEB-INF/lib; COMCSV=$(ls -t /root/INSTALL/commons-csv* |head -n1); SETTINGS=$(ls -t /root/INSTALL/at.gv.bmi.atlassian.pvp.settings* |head -n1); PVP=$(ls -t /root/INSTALL/at.gv.bmi.atlassian.pvp.authenticator.*${SVC}* |head -n1); TIKA_CORE=$(ls -t /root/INSTALL/tika-core*|head -n1); TIKA_PARS=$(ls -t /root/INSTALL/tika-parsers-standard-package*|head -n1); TIKA_PARS_TEXT=$(ls -t /root/INSTALL/tika-parser-text-module*|head -n1); echo "Deploy $SETTINGS $PVP $COMCSV" "$TIKA_CORE" "$TIKA_PARS" "$TIKA_PARS"; systemctl stop ${APP_NAME}.service ;"${TARGETDIR}"/at.gv.bmi.* "${TARGETDIR}"/"$(basename $TIKA_CORE)" "${TARGETDIR}"/"$(basename $TIKA_PARS)" "${TARGETDIR}"/"$(basename $TIKA_PARS_TEXT)" "${TARGETDIR}"/"$(basename $COMCSV)"; cp "${SETTINGS}" "${PVP}" "${COMCSV}" "${TIKA_CORE}" "${TIKA_PARS}" "${TIKA_PARS_TEXT}" "${TARGETDIR}"/.; systemctl restart ${APP_NAME} --no-block ;tailatpvp'
alias getpvpversion='for base in $(find /opt/atlassian -type d -name "WEB-INF"); do echo search in "$base"; find "${base}/lib" -name "*pvp*" -exec basename {} \; ; echo "---";done'