- XAMPP for Windows: https://www.apachefriends.org/download.html
- Microsoft Visual C++ Redistributable for Visual Studio 2015, 2017 and 2019
If the file C:\xampp\php\ext\php_xdebug.dll
already exists, you can skip the download.
let nome_curso = ($('h1.cor1_color span').text()).replaceAll(':', ''); | |
nome_curso = $.trim(nome_curso); | |
let trilha = document.querySelector("#select2-chosen-5").innerText; | |
nome_curso = `${nome_curso}-${trilha}`; | |
var etapa_itens = []; | |
var data = []; | |
$('li.stepContainer').each(function(i, e){ | |
etapa_itens = []; |
# Split video | |
ffmpeg -i video.mp4 -ss 00:00:10 -to 00:00:20 -c copy video_out.mp4 | |
# Rotate | |
ffmpeg -i video.mp4 -vf "transpose=1" video_out.mp4 | |
# Rotate transpose | |
0 = 90CounterCLockwise and Vertical Flip (default) | |
1 = 90Clockwise | |
2 = 90CounterClockwise |
// Exemplo de como adicona a class CSS active no link que estiver sendo acessado | |
$(document).ready(function() { | |
// Get path | |
let uri = (window.location.pathname).split('/'); | |
// Option 1 | |
$('nav .nav-link').filter(`a[href="/admin/${uri[2]}"], a[href="/${uri[1]}"]`).addClass('active'); | |
// Option 2 |
{ | |
"icones":[ | |
"fa-address-book", | |
"fa-address-book-o", | |
"fa-address-card", | |
"fa-address-card-o", | |
"fa-bandcamp", | |
"fa-bath", | |
"fa-bathtub", | |
"fa-drivers-license", |
fa-address-book | |
fa-address-book-o | |
fa-address-card | |
fa-address-card-o | |
fa-bandcamp | |
fa-bath | |
fa-bathtub | |
fa-drivers-license | |
fa-drivers-license-o | |
fa-eercast |
#Usado em hospedagens sem composer global | |
#!/bin/sh | |
work_tree=/home/my-project | |
GIT_WORK_TREE=$work_tree git checkout -f | |
cd $work_tree | |
php ~/composer install --no-dev --no-scripts --optimize-autoloader | |
<?php | |
/* | |
* Class de Log usando SQLite3 | |
* By Fernando Valler | |
* Obs: definir um nome unico para base | |
* | |
* Exemplos | |
* //insert | |
* Log::add('REGISTRO DE LOG DO SISTEMA '. date("G:i"), 'ADMIN', 1); | |
* echo '<hr>'; |
If the file C:\xampp\php\ext\php_xdebug.dll
already exists, you can skip the download.
#!/bin/sh | |
GIT_WORK_TREE=/path-your-app git checkout -f |
<?php | |
/** | |
* This script performs a full dump of a database query into | |
* CSV format and pipes it directly to the browser. | |
* | |
* - YES, the browser will save the CSV file to disk | |
* - YES, it should support large files without using massive amounts of memory | |
* - YES, it compresses the request using GZIP to reduce download time | |
*/ |