Edit /etc/rc.local
python /root/program.py &
DISPLAY=:1 chromium-browser --kiosk http://127.0.0.0.1:8000
python /root/program.py &
DISPLAY=:1 chromium-browser --kiosk https://clivern.com
Edit /etc/rc.local
python /root/program.py &
DISPLAY=:1 chromium-browser --kiosk http://127.0.0.0.1:8000
python /root/program.py &
DISPLAY=:1 chromium-browser --kiosk https://clivern.com
HTTP Web Server
const server = require('http')
const SERVER_PORT = process.argv[2] || 8000
server.createServer(function (req, res) {
res.writeHead(200, {'content-type': 'text/plain'});
res.end("Hello, World\n");
}).listen(SERVER_PORT);
#!/bin/bash | |
sudo apt update | |
sudo apt upgrade -y | |
sudo apt install openjdk-8-jdk apt-transport-https -y | |
java -version | |
sudo sh -c 'echo "deb http://www.apache.org/dist/cassandra/debian 40x main" > /etc/apt/sources.list.d/cassandra.list' | |
wget -q -O - https://www.apache.org/dist/cassandra/KEYS | sudo apt-key add - | |
sudo apt update | |
sudo apt install Cassandra |
class Node: | |
def __init__(self, data=None, next=None): | |
self.data = data | |
self.next = next | |
def __repr__(self): | |
return repr(self.data) | |
Python 3.9.7 (default, Oct 12 2021, 22:38:23) | |
[Clang 13.0.0 (clang-1300.0.29.3)] on darwin | |
Type "help", "copyright", "credits" or "license" for more information. | |
>>> | |
>>> x = [1, 2, 3, 4, 5] | |
>>> x.append(6) | |
>>> x | |
[1, 2, 3, 4, 5, 6] | |
>>> x.index(6) | |
5 |
FROM python:3.9.7 | |
MAINTAINER Clivern | |
RUN mkdir -p /etc/muffin | |
VOLUME /etc/muffin | |
CMD ["python"] |
People
:bowtie: |
😄 :smile: |
😆 :laughing: |
---|---|---|
😊 :blush: |
😃 :smiley: |
:relaxed: |
😏 :smirk: |
😍 :heart_eyes: |
😘 :kissing_heart: |
😚 :kissing_closed_eyes: |
😳 :flushed: |
😌 :relieved: |
😆 :satisfied: |
😁 :grin: |
😉 :wink: |
😜 :stuck_out_tongue_winking_eye: |
😝 :stuck_out_tongue_closed_eyes: |
😀 :grinning: |
😗 :kissing: |
😙 :kissing_smiling_eyes: |
😛 :stuck_out_tongue: |