Cria uma stream de vídeo no nodejs plano (sem express ou outros módulos)
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
| fastboot oem fb_mode_set | |
| fastboot flash partition gpt.bin | |
| fastboot flash bootloader bootloader.img | |
| fastboot flash logo logo.bin | |
| fastboot flash boot boot.img | |
| fastboot flash recovery recovery.img | |
| fastboot flash dsp adspso.bin | |
| fastboot flash oem oem.img | |
| fastboot flash system system.img_sparsechunk.0 | |
| fastboot flash system system.img_sparsechunk.1 |
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
| #!/bin/bash | |
| fastboot oem fb_mode_set | |
| fastboot flash partition gpt.bin | |
| fastboot flash bootloader bootloader.img | |
| fastboot flash logo logo.bin | |
| fastboot flash boot boot.img | |
| fastboot flash recovery recovery.img | |
| fastboot flash dsp adspso.bin | |
| fastboot flash oem oem.img | |
| fastboot flash system system.img_sparsechunk.0 |
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
| version: '3.1' | |
| services: | |
| humhub: | |
| image: mriedmann/humhub:1.6.2 | |
| links: | |
| - "db:db" | |
| ports: | |
| - "8080:80" | |
| volumes: | |
| - "config:/var/www/localhost/htdocs/protected/config" |
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
| # App port to run on | |
| PORT=3000 | |
| # The name of the site where Kutt is hosted | |
| SITE_NAME=Kutt | |
| # The domain that this website is on | |
| DEFAULT_DOMAIN=localhost:3000 | |
| # Generated link length |
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
| <?php | |
| $hora_fixa = strtotime("13:18"); | |
| $hora = strtotime(date('G:i')); //G 0-23 horas, i minutos | |
| echo $hora .'<br>'; | |
| if($hora == $hora_fixa) { | |
| echo "ok"; | |
| } | |
| else { | |
| echo "passou da hora"; |
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
| /* | |
| ##Device = Desktops | |
| ##Screen = 1281px to higher resolution desktops | |
| */ | |
| @media (min-width: 1281px) { | |
| //CSS | |
| } |
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
| var date="25/09/2019"; | |
| date.split("/"); | |
| var newDate = date[1]+"/"+date[0]+"/"+date[2]; | |
| console.log(new Date(newDate).getTime()) |
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
| @echo off | |
| setlocal EnableDelayedExpansion | |
| title Bat otimizacao do Windows 10 | |
| ver | find "10." > nul | |
| if errorlevel 1 ( | |
| echo Sua versão do Windows nao e o Windows 10.! | |
| TIMEOUT 5 | |
| exit | |
| ) |
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
| #!/bin/bash | |
| #lista a quantidade de registros | |
| #substituir <service-name> | |
| QUANTIDADE="`ls | ps -e -o comm | grep <service-name> | wc -l`" | |
| #se $QUANTIDADE for menor que 1: | |
| if [ $QUANTIDADE -lt 1 ]; | |
| then | |
| #ativa o serviço | |
| service <service-name> start |