Skip to content

Instantly share code, notes, and snippets.

View bt0DotNinja's full-sized avatar

Alberto Rodríguez Sánchez bt0DotNinja

View GitHub Profile
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=''"]
#!/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..."
#!/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
@bt0DotNinja
bt0DotNinja / tables.py
Created January 12, 2017 19:34
a table generator from candidates CSV
#!/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
@bt0DotNinja
bt0DotNinja / testProvider.sh
Created December 30, 2016 21:31
This is template for vagrant remote shell provider
#!/bin/bash
yum update
yum install -y httpd
service httpd start