// 1. Open inspector with CTRL+SHIFT+I | |
// 2. Select the console tab in the top | |
// 3. Paste the script | |
// 4. Press enter | |
// 5. Hover over your own video, and there should be a video switcher that looks horrible but works. | |
const localVideo = document.getElementById("local-video"); | |
if (localVideo) { | |
// Create a dropdown element for the camera switcher |
stretch/buster/jessie são releases do debian
Bullseye e Bookworm são versões de desenvolvimento, não estáveis
-slim são versões com o mínimo possivel para rodar o que é proposto no Dockerfile
-alpine são versões baseadas no sistema operacional Alpine (se for utilizar algumas compilações que dependem de glibc talvez queira olhar o musl nesse ambiente, pois é a biblioteca usada
FROM php:5.6-apache | |
RUN sed -i -e 's/deb.debian.org/archive.debian.org/g' \ | |
-e 's|security.debian.org|archive.debian.org/|g' \ | |
-e '/stretch-updates/d' /etc/apt/sources.list | |
RUN apt-get update | |
RUN apt-get install --yes --force-yes cron g++ gettext libicu-dev openssl libc-client-dev libkrb5-dev libxml2-dev libfreetype6-dev libgd-dev libmcrypt-dev bzip2 libbz2-dev libtidy-dev libcurl4-openssl-dev libz-dev libmemcached-dev libxslt-dev | |
RUN a2enmod rewrite |
<?php | |
/////////////////////////////////// | |
// // | |
// Using DateTime Object (OOP) // | |
// // | |
/////////////////////////////////// | |
// The original date time string | |
// NOTE: This is currently using the current date and time |
This focuses on generating the certificates for loading local virtual hosts hosted on your computer, for development only.
Do not use self-signed certificates in production ! For online certificates, use Let's Encrypt instead (tutorial).
RUN apt update | |
RUN apt upgrade -y | |
RUN apt install -y apt-utils | |
RUN a2enmod rewrite | |
RUN apt install -y libmcrypt-dev | |
RUN docker-php-ext-install mcrypt | |
RUN apt install -y libicu-dev | |
RUN docker-php-ext-install -j$(nproc) intl | |
RUN apt-get install -y libfreetype6-dev libjpeg62-turbo-dev libpng12-dev | |
RUN docker-php-ext-configure gd --with-freetype-dir=/usr/include/ --with-jpeg-dir=/usr/include/ |
# activating supervisor service | |
systemctl enable supervisor.service | |
# checking if service is active | |
systemctl is-active supervisor.service | |
# checking service status | |
systemctl status supervisor.service | |
# managing service |
Also see: https://gist.github.com/lemiorhan/8912188
Here are the simple steps needed to push your local git repository directly to a remote (e.g. prod) server over ssh. This is based on Digital Ocean's Tutorial.
You are developing in a working-directory on your local machine, let's say on the master
branch. Usually people push code to a remote
server like github.com or gitlab.com and pull or export it to a production server. Or you use GitHub's webhooks to send a POST request to a webserver to take appropriate actions such as cloning/checking out a branch on the remote (prod) server.
Segue a lista de comandos docker e sua utilidade: | |
docker attach – Acessar dentro do container e trabalhar a partir dele. | |
docker build – A partir de instruções de um arquivo Dockerfile eu possa criar uma imagem. | |
docker commit – Cria uma imagem a partir de um container. | |
docker cp – Copia arquivos ou diretórios do container para o host. | |
docker create – Cria um novo container. | |
docker diff – Exibe as alterações feitas no filesystem do container. | |
docker events – Exibe os eventos do container em tempo real. | |
docker exec – Executa uma instrução dentro do container que está rodando sem precisar atachar nele. |