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 registry.fedoraproject.org/fedora-minimal:latest | |
RUN microdnf -y install git python3-notebook && microdnf clean all | |
RUN git clone https://github.com/bt0DotNinja/Python101.git | |
EXPOSE 8888 | |
CMD ["jupyter-notebook", "--notebook-dir=/Python101", "--allow-root", "--port=8888", "--no-browser", "--ip=0.0.0.0", "--NotebookApp.token=''"] |
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 | |
dnf upgrade --refresh -y | |
dnf install dnf-plugin-system-upgrade -y | |
dnf system-upgrade download --refresh --releasever=27 -y | |
SCS = $? | |
if [ $SCS -ne 0]; then | |
dnf system-upgrade download --refresh --releasever=27 -y --allowerasing | |
fi | |
echo "Updating..." |
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 | |
echo Starting Packet Tracer 7.1 | |
PTDIR=/opt/pt | |
export LD_LIBRARY_PATH=$PTDIR/lib:/home/soul/.lib64 | |
pushd $PTDIR/bin > /dev/null | |
./PacketTracer7 "$@" > /dev/null 2>&1 | |
popd > /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
#!/usr/bin/env python | |
# Alberto Rodriguez Sanchez (bt0dotninja@fedoraproject.org) | |
import sys | |
import pandas as pd | |
if __name__ == '__main__': | |
assert len(sys.argv) == 3 , "Usage: python tables.py CSVfile OutputHtmlFile" | |
df = pd.read_csv(sys.argv[1]) | |
pd.set_option('max_colwidth', 100000) # quick and dirty fix |
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 | |
yum update | |
yum install -y httpd | |
service httpd start |