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 ubuntu | |
RUN set Europe/Berlin timezone | |
RUN ln -sf /usr/share/zoneinfo/Europe/Berlin /etc/localtime | |
RUN apt update && apt install -y openssh-server git vim bash-completion | |
RUN sed -i 's/#PermitRootLogin prohibit-password/PermitRootLogin yes/' /etc/ssh/sshd_config | |
RUN echo "root:Passw0rd" | chpasswd | |
ENTRYPOINT service ssh start && bash -c 'while true; do sleep 30; done;' | |
RUN git config --global init.defaultBranch main && git config --global user.email "[email protected]" && git config --global user.name "Max Mustermann" | |
RUN echo "source /etc/bash_completion" >> /root/.bashrc |
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
<?php | |
function escapetext($text) { | |
return str_replace("\n", "<br>", htmlentities($text)); | |
} | |
function my_shell_exec($cmd, &$stdout=null, &$stderr=null) { | |
$proc = proc_open($cmd,[ | |
1 => ['pipe','w'], | |
2 => ['pipe','w'], |