This file contains hidden or 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 | |
# Import von X2-02 | |
# 17APR2015, bilder->images 22FEB2017, delete empty dirs 14APR2020 | |
echo "Importing Photos..." | |
folder="/media/pascal/microSD 2GB/Images" # Bilder | |
echo "change to dir: \"${folder}\"" |
This file contains hidden or 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
# example: Press key combination to quit Kazam screen recorder (adapt command as wanted) | |
while true; do echo 'Hit CTRL+C'; sleep 1; if date +%H%M | grep -q "1430"; then echo "exit" && date && xdotool key Control_L+Super_L+f && break; fi; done |
This file contains hidden or 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
#!/usr/bin/python | |
""" | |
Pascal / 18-APR-2021 | |
graphische Visualisierung der Umsatzanzeige | |
(am Beispiel: Volksbank - Umsatzexport - CSV) | |
""" | |
import csv | |
import numpy as np |
This file contains hidden or 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
import sys | |
import numpy as np | |
# ~from io import StringIO | |
import matplotlib.pyplot as plt | |
import pyperclip | |
from datetime import datetime | |
import matplotlib.dates as mdates | |
from matplotlib.dates import date2num | |
from dateutil.relativedelta import relativedelta |
This file contains hidden or 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
f="filename.ext"; echo "file='$f'"; d=$(stat -c %y "$f" | cut -c-19); echo "modified=$d"; echo -en "\n$d" >> "$f"; touch -d "$d" "$f"; ls -al "$f" | |
Do 15 Apr 2021 19:26:30 CEST |
This file contains hidden or 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
[Desktop Entry] | |
Version=1.0 | |
Type=Application | |
Terminal=true | |
Icon=/usr/share/icons/Mint-X/apps/48/cs-login.png | |
Exec=bash -i -c 'echo "Connecting..." && sleep 1 && echo "Set Networking ON..." && nmcli networking on && sleep 5 && echo "Login RUB" && ( sensible-browser http://login.rub.de & ) && echo "done." && sleep 3 && read -t1 -n 1 -s -r -p "Press any key to continue"' | |
Name=connect | |
Name[de_DE]=RUB-RZ-Login |
This file contains hidden or 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
[Desktop Entry] | |
Version=1.0 | |
Type=Application | |
Terminal=true | |
Icon=/usr/share/icons/Adwaita/scalable/status/network-wireless-hotspot-symbolic.svg | |
Exec=bash -c 'echo "Connecting..." && sleep 3 && echo "Set Networking ON..." && nmcli networking on && sleep 3 && echo "Set WIFI on..." && nmcli radio wifi on && sleep 3 && echo "Set Hotspot UP..." && nmcli connection up "Hotspot" && echo "done." && sleep 3 && read -t1 -n 1 -s -r -p "Press any key to continue"' | |
Name=Hotspot |
This file contains hidden or 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 | |
echo "Started" | |
SCRIPTPATH="$( cd "$(dirname "$0")" >/dev/null 2>&1 ; pwd -P )" | |
echo "SCRIPTPATH = ${SCRIPTPATH}" | |
#~mate-terminal -e "pdflatex Thesis && biber Thesis && pdflatex Thesis" | |
#~gnome-terminal -e 'bash -c "gedit; echo Monkey; read line"' |
This file contains hidden or 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 | |
# or use sh instead of bash? | |
# set to executable flag, chmod +x ! | |
set -eu | |
# on error : do not resume, but cancel , see https://stackoverflow.com/questions/13468481/when-to-use-set-e/13478622 |
This file contains hidden or 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 | |
# Pascal K. | |
# Mi 25 Nov 2020 23:36:54 CET | |
# Do 26 Nov 2020 13:43:43 CET | |
# Mo 18 Dez 2023 11:32:34 CET - use "xdg-open" to open link in browser | |
echo "GEO Exif Coordinate viewer" | |
echo "--------------------------" |