wget http://pocoproject.org/releases/poco-1.7.3/poco-1.7.3.tar.gz
tar xzf poco-1.7.3.tar.gz
cd poco-1.7.3
./configure --minimal --static --no-samples --no-tests
time make -j4 -s
cd lib/Linux/x86_64/
for f in *.a; do "strip $f"; done
This file contains hidden or 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
wget http://dl-cdn.alpinelinux.org/alpine/v3.7/releases/armhf/alpine-uboot-3.7.0-armhf.tar.gz | |
wget http://dl-cdn.alpinelinux.org/alpine/v3.7/releases/armhf/alpine-minirootfs-3.7.0-armhf.tar.gz | |
qemu-img create -f raw sd.img 512M | |
sudo losetup /dev/loop0 sd.img | |
sudo kpartx -av /dev/loop0 | |
lsblk | |
sudo mkfs.ext4 /dev/mapper/loop0p1 | |
mount -t ext4 /dev/mapper/loop0p1 /mnt |
This file contains hidden or 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
import socket | |
UDP_IP = "::1" # localhost | |
UDP_PORT = 5005 | |
MESSAGE = "Hello, World!" | |
print "UDP target IP:", UDP_IP | |
print "UDP target port:", UDP_PORT | |
print "message:", MESSAGE |
This file contains hidden or 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
esphome: | |
name: test | |
platform: ESP32 | |
board: esp32doit-devkit-v1 | |
wifi: | |
ssid: "My_WiFi_AP" | |
password: "secretPassword123" | |
ap: | |
ssid: "Test Fallback Hotspot" |
This file contains hidden or 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
# mozna neni potreba: sudo apt-get install linux-generic | |
sudo apt-get install v4l2loopback-dkms | |
sudo modprobe v4l2loopback | |
modprobe v4l2loopback | |
ffmpeg -i /home/martin/Downloads/video.mp4 -f v4l2 -vcodec rawvideo /dev/video0 | |
ffmpeg -i rtsp://10.104.103.138/user=admin_password=tlJwpbo6_channel=1_stream=0.sdp -f v4l2 -pix_fmt yuv420p -vcodec rawvideo /dev/video0 |
This file contains hidden or 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
wget http://dl-cdn.alpinelinux.org/alpine/v3.7/releases/armhf/alpine-uboot-3.7.0-armhf.tar.gz | |
tar xzvf alpine-uboot-3.7.0-armhf.tar.gz | |
mkdir fat | |
qemu-system-arm -M virt -m 64 -drive file=fat:fat/ -kernel boot/vmlinuz-hardened -initrd boot/initramfs-hardened -append modules=loop,squashfs,sd-mod,usb-storage |
This file contains hidden or 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
docker run --rm -i -v "$PWD:/work" \ | |
-e OVPN_VER="2.5.3" \ | |
-e OVPN_BIN32="OpenVPN-2.5.3-I601-x86.msi" \ | |
-e OVPN_BIN64="OpenVPN-2.5.3-I601-amd64.msi" \ | |
-e OVPN_CONF="user.ovpn" \ | |
-e OVPN_SITE="vpn.example.net" \ | |
-e OUT_NAME="vpn_rdp_setup" \ | |
-e PASSWORD="asdf" \ | |
amake/innosetup:64bit openvpn_rdp_docker.iss |
This file contains hidden or 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
// g++ -o poco_uri_parser poco_uri_parser.cpp -L/usr/local/lib -lPocoNet -lPocoFoundation | |
// http://pocoproject.org/slides/160-URIandUUID.pdf | |
#include "Poco/URI.h" | |
#include <iostream> | |
using namespace std; | |
int main(int argc, char** argv) | |
{ |
NewerOlder