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
Send audio data | |
gst-launch-1.0 multifilesrc location=sample.mp3 loop=true \ | |
! mpegaudioparse \ | |
! mpg123audiodec \ | |
! audioconvert \ | |
! audioresample \ | |
! audio/x-raw, rate=16000, channels=1, format=S16LE \ | |
! audiomixer blocksize=320 \ | |
! udpsink host=localhost port=10000 |
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
#!/bin/bash | |
rm /etc/netplan/00-installer-config.yaml | |
echo " | |
network: | |
version: 2 | |
renderer: networkd | |
ethernets: | |
enp0s3: | |
dhcp4: false |
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
:443 { | |
tls internal { | |
on_demand | |
} | |
reverse_proxy localhost:8929 { | |
header_up Host {host} | |
header_up X-Real-IP {remote} | |
header_up X-Forwarded-For {remote} | |
header_up X-Forwarded-Port {server_port} |
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:21.04 | |
LABEL maintainer="Taylor Otwell" | |
ARG WWWGROUP | |
ARG NODE_VERSION=16 | |
WORKDIR /var/www/html | |
ENV DEBIAN_FRONTEND noninteractive |
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
# If you already downloaded the repo, inside de folder run in the folder | |
git config http.sslVerify false | |
# If you will download the repo, checkout the repo using -c http.sslVerify=false like | |
git -c http.sslVerify=false clone repo_url/git |
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 mip import * | |
import random | |
# Constantes | |
RANDOM_SEED = 1 | |
NUM_PRODUTOS = 10 | |
NUM_MOCHILAS = 2 | |
# Variável que armazena os Dados | |
produtos = {} |
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 | |
/** | |
* Sistema_Variavel | |
* | |
* @abstract Prover uma classe que abstraia algumas questões importantes | |
* e perigosas que surgem durante o desenvolvimento de sistemas web. | |
* | |
* A primera questão é sobre variáveis, elas podem ser passadas por POST, GET e | |
* por SESSION. Essa classe irá simplificar o acesso as mesmas através do | |
* método estático get. |
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
#!/bin/bash | |
rm /etc/netplan/00-installer-config.yaml | |
echo " | |
network: | |
version: 2 | |
renderer: networkd | |
ethernets: | |
enp0s3: | |
dhcp4: false |
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
# Verify if the VDI can be resized using the command. | |
VBoxManage showhdinfo Ubuntu 19.04.vdi | |
# The result will be | |
UUID: 5a382024-85c8-4828-ac12-9a4f260ed8be | |
Parent UUID: base | |
State: created | |
Type: normal (base) | |
Location: Ubuntu 19.04.vdi | |
Storage format: VDI |
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=10 sink_1::ypos=10 sink_2::xpos=170 sink_2::ypos=10 \ | |
! x264enc \ | |
! rtph264pay \ | |
! udpsink host=localhost port=5000 \ | |
videotestsrc pattern=white \ | |
! video/x-raw, format=I420, framerate=5/1, width=330, height=170 \ | |
! m. \ | |
udpsrc port=10001 caps = "application/x-rtp, media=(string)video, clock-rate=(int)90000, encoding-name=(string)H264, payload=(int)96" \ | |
! rtph264depay \ |