source: Docker en Raspberry Pi
Check version, release and keyname of OS:
$ cat /etc/debian_version
9.5
$ cat /etc/os-release
ID=osmc
| import os | |
| import pandas as pd | |
| from scipy.misc import imread | |
| import math | |
| import numpy as np | |
| import cv2 | |
| import keras | |
| import seaborn as sns | |
| from keras.layers import Dense, Dropout, Flatten, Input | |
| from keras.layers import Conv2D, MaxPooling2D |
source: Docker en Raspberry Pi
Check version, release and keyname of OS:
$ cat /etc/debian_version
9.5
$ cat /etc/os-release
ID=osmc
Notes for slimming down a fresh installation of Raspbian Stretch Lite. This guide does not strip Raspbian of basic functionality such as Bluetooth and mDNS.
Install a fresh Raspbian Stretch Lite image into the SD card ([source][1]).
$ unzip -p 2018-04-18-raspbian-stretch-lite.zip | dd bs=4M of=/dev/sdX conv=fsync
This guide has moved to a GitHub repository to enable collaboration and community input via pull-requests.
https://github.com/alexellis/k8s-on-raspbian
Alex
| #!/bin/sh | |
| # SPDX-FileCopyrightText: 2017-2024 SanderTheDragon <[email protected]> | |
| # | |
| # SPDX-License-Identifier: MIT | |
| arch=$(dpkg --print-architecture) | |
| echo "Detected architecture: $arch" | |
| case "$arch" in |
| From ruby:2.3.1 | |
| RUN apt-get update | |
| RUN apt-get install build-essential chrpath libssl-dev libxft-dev -y \ | |
| && apt-get install libfreetype6 libfreetype6-dev -y \ | |
| && apt-get install libfontconfig1 libfontconfig1-dev -y | |
| RUN set -xeu \ | |
| \ |
| #!/usr/bin/perl | |
| ;;;;;; | |
| ;;;;;;;;;;; | |
| ;;;;;;;;;;;;;;; | |
| ;;;;;;;;;;;;;;;;; | |
| ;;;;;;;;;;;;;;;;;;; | |
| ;;;;;;;;;;;;;;;;;;;; | |
| ;;;;;;;;;;;;;;;;;;;;; | |
| +$I=sub{+s+^+ ;;;;;;; ;;;;;;;;; | |
| $"x$_[1]+gem;$/x$_# ;;;; ;;;;;;;; |
| Terminal Commands: | |
| One webcam: | |
| ffmpeg -f alsa -ac 2 -i hw:1,0 -f v4l2 -s 1280x720 -r 10 -i /dev/video1 -vcodec libx264 -pix_fmt yuv420p -preset ultrafast -r 25 -g 20 -b:v 2500k -codec:a libmp3lame -ar 44100 -threads 6 -b:a 11025 -bufsize 512k -f flv rtmp://a.rtmp.youtube.com/live2/YOURSTREAMNAMEHERE | |
| Two webcam overlay: | |
| ffmpeg -f alsa -ac 2 -i hw:1,0 -f v4l2 -s 1280x720 -r 10 -i /dev/video1 -f v4l2 -s 320x240 -r 10 -i /dev/video0 -filter_complex "[1:v]setpts=PTS-STARTPTS[bg]; [2:v]setpts=PTS-STARTPTS[fg]; [bg][fg]overlay=shortest=1 [out]" -map "[out]" -map 0:a -vcodec libx264 -pix_fmt yuv420p -preset veryfast -r 25 -g 20 -b:v 2500k -codec:a libmp3lame -ar 44100 -threads 6 -b:a 11025 -bufsize 512k -f flv rtmp://a.rtmp.youtube.com/live2/YOURSTREAMNAMEHERE |
| #!/bin/sh | |
| # Settings for a PHP Project | |
| # Using: | |
| # * PHP Lint | |
| # *- PHP CS | |
| # *- PHP Analyzer | |
| # *- EmptyLines Checker | |
| # *- Scrutinizer | |
| # * PHPCPD |