This file contains 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
from selenium import webdriver | |
from selenium.webdriver.firefox.service import Service | |
from selenium.webdriver.firefox.options import Options | |
from selenium.webdriver.common.by import By | |
from selenium.webdriver.support.wait import WebDriverWait | |
from selenium.webdriver.support import expected_conditions as EC | |
from webdriver_manager.firefox import GeckoDriverManager | |
import time | |
import random |
This file contains 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 | |
# Make sure only root can run our script | |
if [ "$(id -u)" != "0" ]; then | |
echo "Diese Script muss als root ausgeführt werden" 1>&2 | |
exit 1 | |
fi | |
DATUM=`date +%Y%m%d` | |
before=`date +%Y%m%d -d "yesterday"` |
This file contains 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
for f in ./*.json; do | |
echo "file $f" | |
cat "$f" | grep smw_decseparator | |
cat "$f" | grep smw_kiloseparator | |
sed -i '/smw_decseparator/c\"smw_decseparator": ".",' "$f" | |
sed -i '/smw_kiloseparator/c\"smw_kiloseparator": "",' "$f" | |
cat "$f" | grep smw_decseparator | |
cat "$f" | grep smw_kiloseparator | |
echo "-----------" | |
done |
This file contains 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
for f in *.pdf; | |
do | |
echo "filename: $f"; | |
folder="$(echo $f | cut -f1 -d '.')"; | |
echo "creating folder $folder"; | |
mkdir $folder; | |
echo "moving file $f to folder $folder" | |
mv $f $folder; | |
done |
This file contains 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 -e | |
echo extracting the mcrypt archive | |
if ls | grep mcrypt-1.0.2.tgz &> /dev/null; then | |
tar -zxvf ./mcrypt-*.tgz &> /dev/null && cd mcrypt-*/ | |
else | |
echo archive is missing | |
fi | |
if command -v phpize; then | |
echo compiling mcrypt module with phpize | |
phpize &> /dev/null |
This file contains 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
# | |
# The php-mcrypt extension is depricated and therefore was removed from the apt repository. | |
# As of writing this, on php7.3 there is currently no other way to install mcrypt without downgrading the php version | |
# except for compiling it locally. | |
# | |
### | |
# | |
# 1; Install the php-dev version and all the used tools to compile the extension |