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/zsh | |
# iterate through all files in the current directory | |
for file in *.pdf | |
do | |
# get the filename without the extension | |
filename="${file%.*}" | |
# create a new filename with the extension .txt | |
newfile="output/$filename-s.pdf" | |
# run the command |
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
yes | sudo apt update | |
yes | sudo apt upgrade | |
yes | sudo apt autoremove |
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 | |
# todo add error checking ${}.. | |
cd ~/Downloads | |
sudo apt install git | |
wget -nc https://release.gitkraken.com/linux/gitkraken-amd64.deb | |
wget -nc 'https://code.visualstudio.com/sha/download?build=stable&os=linux-deb-x64' -O code.deb | |
wget https://dbeaver.io/files/dbeaver-ce_latest_amd64.deb -O dbeaver.deb | |
sudo dpkg -i *.deb | |
sudo apt install snapd |
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
# either when comp is turning 1 or failure equals comp1 | |
# turn ob the life eihter when maintenance happened or failure! | |
labeled_features['life_comp1'] = labeled_features.groupby((labeled_features['comp1'] != labeled_features['comp1'].shift(1)).cumsum()).cumcount()+1 | |
labeled_features['life_comp2'] = labeled_features.groupby((labeled_features['comp2'] != labeled_features['comp2'].shift(1)).cumsum()).cumcount()+1 | |
labeled_features['life_comp3'] = labeled_features.groupby((labeled_features['comp3'] != labeled_features['comp3'].shift(1)).cumsum()).cumcount()+1 | |
labeled_features['life_comp4'] = labeled_features.groupby((labeled_features['comp4'] != labeled_features['comp4'].shift(1)).cumsum()).cumcount()+1 | |
#print(labeled_features.groupby((labeled_features['comp1'] != labeled_features['comp1'].shift(1)).cumsum()).tail(1)) | |
#print(labeled_features.groupby((labeled_features['comp1'] != labeled_features['comp1'].shift(1)).cumsum())) |
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 | |
nmcli connection up Hotspot | |
# run with: | |
# crontab -e | |
# insert this line |
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
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
import pandas as pd | |
""" downloads the dataset, so that all matlab files of each class are in their own folder | |
the package cwru is sadly only for python2 | |
12DriveEndFault / 172.mat | |
/ 189.mat | |
... | |
12FanEndFault / 89.mat | |
... | |
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
yes | sudo apt update && sudo apt upgrade | |
pip3 install tensorflow | |
pip3 install torch torchvision | |
git clone git://github.com/jupyter/jupyter-drive.git | |
pip install -e jupyter-drive | |
python -m jupyterdrive |
NewerOlder