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
| import com.sun.jersey.core.util.Base64; | |
| import java.io.UnsupportedEncodingException; | |
| import java.security.InvalidAlgorithmParameterException; | |
| import java.security.InvalidKeyException; | |
| import java.security.MessageDigest; | |
| import java.security.NoSuchAlgorithmException; | |
| import java.security.SecureRandom; | |
| import java.util.Arrays; | |
| import java.util.Random; | |
| import javax.crypto.BadPaddingException; |
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
| {"lastUpload":"2021-03-04T12:39:12.100Z","extensionVersion":"v3.4.3"} |
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 | |
| /* vim: set expandtab tabstop=4 shiftwidth=4 softtabstop=4: */ | |
| /** | |
| * Converts to and from JSON format. | |
| * | |
| * JSON (JavaScript Object Notation) is a lightweight data-interchange | |
| * format. It is easy for humans to read and write. It is easy for machines | |
| * to parse and generate. It is based on a subset of the JavaScript | |
| * Programming Language, Standard ECMA-262 3rd Edition - December 1999. |
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
| Para CPF | |
| /^\d{3}\.\d{3}\.\d{3}\-\d{2}$/ | |
| Para CNPJ | |
| /^\d{2}\.\d{3}\.\d{3}\/\d{4}\-\d{2}$/ | |
| Para ambos ao mesmo tempo |
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
| 301 moved permanently (redirect): | |
| <?php | |
| header('HTTP/1.1 301 Moved Permanently'); | |
| header('Location: http://www.example.com'); | |
| die(); | |
| ?> | |
| 302 moved temporarily(redirect): | |
| <?php | |
| header('Location: http://www.example.com'); |
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 $uplImageBtn = $('.pui--ev-upload'), | |
| $uplContainer = $('#uplProfileImg'), | |
| $previewImg = $('.macc--s-pimg img'); | |
| $uplImageBtn.click(function() { | |
| $uplContainer.trigger('click'); | |
| }); | |
| $uplContainer.on('change', function() { | |
| if (!this.files && !this.files[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
| server { | |
| listen 80; | |
| server_name CHANGEME.app; | |
| root /var/www/vhosts/CHANGEME.app/public; | |
| index index.html index.htm index.php; | |
| charset utf-8; | |
| location / { |