# Download stable release of xdebug from https://xdebug.org/download.php
wget -c "https://xdebug.org/files/xdebug-2.5.3.tgz"
# Extract archive
tar -xf xdebug-2.5.3.tgz
cd xdebug-2.5.3/
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
<?xml version="1.0" encoding="UTF-8"?> | |
<style-scheme id="darcula" _name="Darcula" version="1.0"> | |
<author>Sash0k</author> | |
<_description>Dark color scheme using IntelliJ IDEA colors</_description> | |
<!-- Scribe Theme Generator 1.3 --> | |
<!-- COLORS --> | |
<color name="comment_color" value="#629755"/> |
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
# Location: /etc/nginx/sites-available/domain.tld.conf | |
server { | |
listen 80; | |
# listen 443 ssl; | |
# include snippets/snakeoil.conf; | |
root /var/www/domain.tld/public; | |
index index.html index.php; |
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 | |
/** | |
* @param string $content | |
* | |
* @return string | |
*/ | |
function purify(string $content) : string | |
{ | |
$config = \HTMLPurifier_Config::createDefault(); | |
$config->set('HTML.AllowedElements', [ |
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 | |
/** | |
* @author Natan Felles <natanfelles@gmail.com> | |
*/ | |
defined('BASEPATH') OR exit('No direct script access allowed'); | |
if ( ! function_exists('add_foreign_key')) | |
{ | |
/** | |
* @param string $table Table name |
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 | |
/** | |
* @author Natan Felles <natanfelles@gmail.com> | |
*/ | |
defined('BASEPATH') or exit('No direct script access allowed'); | |
/** | |
* Class Access | |
*/ | |
class Access extends CI_Controller { |
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 | |
/** | |
* @var \CodeIgniter\Pager\PagerRenderer $pager | |
*/ | |
$pager->setSurroundCount(2); | |
?> | |
<nav aria-label="<?= lang('Pager.pageNavigation') ?>"> | |
<ul class="pagination"> |
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
$ sudo apt update | |
Obter:1 http://deb.debian.org/debian buster InRelease [122 kB] | |
Err:1 http://deb.debian.org/debian buster InRelease | |
As assinaturas a seguir não puderam ser verificadas devido à chave pública não estar disponível: NO_PUBKEY 04EE7237B7D453EC NO_PUBKEY 648ACFD622F3D138 NO_PUBKEY DCC9EFBF77E11517 | |
Lendo listas de pacotes... Pronto | |
W: Erro GPG: http://deb.debian.org/debian buster InRelease: As assinaturas a seguir não puderam ser verificadas devido à chave pública não estar disponível: NO_PUBKEY 04EE7237B7D453EC NO_PUBKEY 648ACFD622F3D138 NO_PUBKEY DCC9EFBF77E11517 | |
E: The repository 'http://deb.debian.org/debian buster InRelease' is not signed. | |
N: Updating from such a repository can't be done securely, and is therefore disabled by default. | |
N: See apt-secure(8) manpage for repository creation and user configuration details. |
NewerOlder