Skip to content

Instantly share code, notes, and snippets.

# install xdebug
php -i 1> xdebug.log
xclip -sel clip < xdebug.log
### colar no https://xdebug.org/wizard.php e seguir as instruções
php -v 7.2
sudo apt-get install php7.2-xdebug
edit sudo nano /etc/php/7.2/cli/php.ini
zend_extension = /usr/lib/php/yourfolder/xdebug.so
[XDebug]
xdebug.remote_enable = 1
[
{
"key": "ctrl+s",
"command": "-workbench.action.files.save"
},
{
"key": "ctrl+s",
"command": "workbench.action.files.saveAll"
},
{
sudo wget https://dl.pstmn.io/download/latest/linux64 -O postman.tar.gz && sudo tar -xzf postman.tar.gz -C /opt && sudo rm postman.tar.gz && sudo ln -s /opt/Postman/Postman /usr/bin/postman
cat > ~/.local/share/applications/postman.desktop <<EOL
[Desktop Entry]
Encoding=UTF-8
Name=Postman
Exec=postman
Icon=/opt/Postman/app/resources/app/assets/icon.png
Terminal=false
Type=Application

Run the following command:

xmodmap -e "pointer = 1 25 3 4 5 6 7 8 9"

To persist this behavior, edit nano ~/.Xmodmap and add

pointer = 1 25 3 4 5 6 7 8 9

@jalescardoso
jalescardoso / index.html
Last active September 8, 2017 16:21
Infinite loading to any web page
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="viewport" content="width=device-width, initial-scale=1">
<script src="https://code.jquery.com/jquery-3.2.1.min.js"></script>
</head>
@jalescardoso
jalescardoso / ionic-mask.md
Last active August 25, 2017 20:43
ionic-mask

ionic-mask

use

 <ion-input mask="(**)*****-****" type='tel' formControlName="phoneNumber"></ion-input>
import { Directive, Attribute } from '@angular/core';
import { NgModel } from '@angular/forms';
@Directive({