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
Capture and send video | |
gst-launch-1.0 v4l2src device=/dev/video0 \ | |
! decodebin \ | |
! x264enc \ | |
! rtph264pay \ | |
! udpsink port=5000 | |
Show the video | |
gst-launch-1.0 \ |
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
#!/usr/bin/python | |
from mininet.net import Mininet | |
from mininet.node import Controller, RemoteController, OVSController | |
from mininet.node import CPULimitedHost, Host, Node | |
from mininet.node import OVSKernelSwitch, UserSwitch | |
from mininet.cli import CLI | |
from mininet.log import setLogLevel, info | |
from mininet.link import TCLink, Intf, OVSLink | |
from subprocess import call |
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
Pipeline to send video (simulating SRC) get the data from video0 | |
gst-launch-1.0 v4l2src device=/dev/video0 \ | |
! decodebin \ | |
! x264enc \ | |
! rtph264pay \ | |
! udpsink host=localhost port=5000 | |
// if you are running it inside a docker container be aware of the host ip in udpsink | |
gst-launch-1.0 v4l2src device=/dev/video0 \ | |
! decodebin \ |
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
# To run the latexdiff in a Docker environment | |
# 1 - Download the image | |
docker pull iphoneintosh/latex-docker:latest | |
# 2 - Run the latexdiff | |
docker run --rm -v .:/data iphoneintosh/latex-docker:latest latexdiff original.tex rev.tex > diff.tex |
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
gst-launch-1.0 \ | |
videomixer name=m sink_1::xpos=50 sink_1::ypos=50 sink_2::xpos=400 sink_2::ypos=50 \ | |
! x264enc \ | |
! rtph264pay \ | |
! udpsink host=localhost port=5000 \ | |
videotestsrc pattern=white \ | |
! video/x-raw, format=I420, framerate=5/1, width=740, height=480 \ | |
! m. \ | |
videotestsrc pattern=red \ | |
! videobox left=100 \ |
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
# --wrap=0 will convert the base64 texto into only one line | |
curl -X POST -H "Content-Type: application/json" -d '{"image" : "'"$( base64 --wrap=0 ./imgs/knative.png)"'"}' http://127.0.0.1:8080 |
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 collections import OrderedDict | |
msg = "" | |
positions = OrderedDict([ | |
("Start_Bit", 2), | |
("Packet_Length", 1), | |
("Protocol_Number", 1), | |
("Location_Source_Type", 1), | |
("Terminal_ID", 8), |
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
# How to adjust brightness for HD Pro Webcam C920 on ubuntu 20.04 | |
# | |
# Install the v4l2-ctl | |
apt-get install v4l2-ctl | |
# list the decives | |
v4l2-ctl --list-devices | |
### | |
HD Pro Webcam C920 (usb-0000:00:14.0-1.2): |
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
# Aumentar o tamanho do disco | |
virt-filesystems --long -h --all -a olddisk.qcow2 | |
qemu-img create -f qcow2 -o preallocation=metadata newdisk.qcow2 50G | |
# /dev/sda3 é o nome da partição do disco antigo que vai ser alterado | |
virt-resize --expand /dev/sda3 olddisk newdisk.qcow2 | |
# os dados são copiados para o disco novo, mova o disco novo sobre o antigo |
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
@article{mijumbi_network_2016, | |
title = {Network function virtualization: {State}-of-the-art and research challenges}, | |
volume = {18}, | |
issn = {1553877X}, | |
doi = {10.1109/COMST.2015.2477041}, | |
number = {1}, | |
journal = {IEEE Communications Surveys and Tutorials}, | |
author = {Mijumbi, Rashid and Serrat, Joan and Gorricho, Juan Luis and Bouten, Niels and De Turck, Filip and Boutaba, Raouf}, | |
year = {2016}, |
NewerOlder