Skip to content

Instantly share code, notes, and snippets.

View pantelis's full-sized avatar
🏠
Working from home

Pantelis Monogioudis pantelis

🏠
Working from home
View GitHub Profile
@pantelis
pantelis / gist:2243fae48bed212333dceb467fa98aa9
Created January 21, 2024 12:02
Dockerfile.gpu - Handson Machine Learning Book - 3rd edition
# This Dockerfile includes sections from tensorflow/tensorflow:latest-gpu's Dockerfile:
# https://github.com/tensorflow/tensorflow/blob/master/tensorflow/tools/dockerfiles/dockerfiles/gpu.Dockerfile
# and sections from continuumio/miniconda3:latest's Dockerfile:
# https://github.com/ContinuumIO/docker-images/blob/master/miniconda3/debian/Dockerfile
# First we need CUDA and everything else needed to support GPUs
###############################################
#### FROM tensorflow/tensorflow:latest-gpu ####
@pantelis
pantelis / optimal_policy.py
Created December 16, 2022 16:27
Starter Code for 4 cell gridworld
# Starter code for small 4 cell grid-world
import numpy as np
# outer dict key is state and inner dict key is action
# transition model P(s'|s,a) represented as a dictionary of dictionaries
P = {
0: {0: [(0.9,0),(0.1,1)], 1: [(0.8,1),(0.1,2),(0.1,0)], 2: [(0.8,2),(0.1,1),(0.1,0)], 3: [(0.9,0),(0.1,2)]},
1: {0: [(0.9,1),(0.1,0)], 1: [(0.9,1),(0.1,3)], 2: [(0.8,3),(0.1,0),(0.1,1)], 3: [(0.8,0),(0.1,1),(0.1,3)]},
2: {0: [(0.8,0),(0.1,2),(0.1,3)], 1: [(0.8,3),(0.1,0),(0.1,2)], 2: [(0.9,2),(0.1,3)], 3: [(0.8,3),(0.1,0),(0.1,2)]},
@pantelis
pantelis / vboxguestadditions_maxos.md
Created February 4, 2018 01:29
VBoxGuestAdditions on MAC

Enabling Clipboard: VirtualBox Manager -> Settings -> General -> Advanced -> Shared Clipboard /Drag’n’Drop: bidirectional

Installing Guests Additions:

Enabling optical drive: VirtualBox Manager -> Settings -> Storage -> Controller Sata -> Adds optical Drive -> Leave Empty

Copy Guest Additions to the available folder on Mac: Finder -> Applications -> VirtualBox right click, Show Package Content -> Contents -> MacOS: copy VBoxGuestAdditions.iso somewhere to the folder

@pantelis
pantelis / coreos-windows-share.sh
Last active November 17, 2019 02:43
Mount Windows share drives on CoreOS
# WARNING - THIS IN NOT a SHELL SCRIPT - JUST a LIST of COMMANDS
# based on https://github.com/coreos/coreos-overlay/issues/595 with links updated
# Build cifs-utils in a container and copy it into /tmp on the host.
$docker run -t -i -v /tmp:/host_tmp fedora /bin/bash
# On the container bash prompt
yum groupinstall -y "Development Tools" "Development Libraries"
yum install -y tar
yum install -y bzip2
curl http://ftp.samba.org/pub/linux-cifs/cifs-utils/cifs-utils-6.3.tar.bz2 | bunzip2 -c - | tar -xvf -