- Header Kernel - GCC
sudo apt-get install linux-headers
- Pacotes essenciais
| function forceDownload(href) { | |
| var anchor = document.createElement('a'); | |
| anchor.href = href; | |
| anchor.download = href; | |
| document.body.appendChild(anchor); | |
| anchor.click(); | |
| } |
| <?php | |
| /** | |
| * Converts a PNG image to a .GRF file for use with Zebra printers | |
| * | |
| * The input is preferably a 1-bit black/white image but RGB images | |
| * are accepted as well. | |
| * | |
| * This function uses PHP's GD library image functions. | |
| * |
| ## Instalar Laravel 5.7 en Windows Server 2012 R2 Sobre Internet Information Services | |
| # Nos ubicamos en la carpeta de IIS C:\inetpub\wwwroot | |
| # Ejecutamos el siguiente comando en la terminal | |
| composer create-project --prefer-dist laravel/laravel blog "5.7.*" | |
| ## Configurar el Proyecto en IIS |
| <?php | |
| /** | |
| * This is free and unencumbered software released into the public domain. | |
| * | |
| * Anyone is free to copy, modify, publish, use, compile, sell, or | |
| * distribute this software, either in source code form or as a compiled | |
| * binary, for any purpose, commercial or non-commercial, and by any | |
| * means. | |
| * |
This example is part of this article.
This is an example for an HLS delivery with basic security. Nginx compiled with nginx-rtmp-module & secure-link is used as media server. Features:
| #! /bin/bash | |
| # | |
| # Diffusion youtube avec ffmpeg | |
| # Configurer youtube avec une résolution 720p. La vidéo n'est pas scalée. | |
| VBR="2500k" # Bitrate de la vidéo en sortie | |
| FPS="30" # FPS de la vidéo en sortie | |
| QUAL="medium" # Preset de qualité FFMPEG | |
| YOUTUBE_URL="rtmp://a.rtmp.youtube.com/live2" # URL de base RTMP youtube |
| $ ffmpeg -i input.mp4 -vcodec h264 -acodec mp2 output.mp4 |
| .idea | |
| node_modules | |
| atlassian-ide-plugin.xml |
| String.prototype.trim=function(){return this.replace(/^\s+|\s+$/g, '');} | |
| String.prototype.ltrim=function(){return this.replace(/^\s+/,'');}; | |
| String.prototype.rtrim=function(){return this.replace(/\s+$/,'');}; | |
| String.prototype.fulltrim=function(){return this.replace(/(?:(?:^|\n)\s+|\s+(?:$|\n))/g,'').replace(/\s+/g,' ');}; | |
| Date.prototype.MMDDYYYY = function() { | |