Bin e padrões para validação de cartão de crédito.
| Bandeira | Começa com | Máximo de número | Máximo de número cvc | Regex |
|---|---|---|---|---|
| Visa | 4 |
13,16 | 3 | ^4[0-9]{12}(?:[0-9]{3}) |
| Mastercard | 5 |
16 | 3 | ^5[1-5][0-9]{14} |
| Diners | 301,305,36,38 link |
14,16 | 3 | `^3(?:0[0-5] |
| #!/bin/sh | |
| # SPDX-FileCopyrightText: 2017-2024 SanderTheDragon <[email protected]> | |
| # | |
| # SPDX-License-Identifier: MIT | |
| arch=$(dpkg --print-architecture) | |
| echo "Detected architecture: $arch" | |
| case "$arch" in |
| <?php | |
| /** | |
| * Plugin Name: PayPal Sandbox IPN Tester | |
| * Description: Pings the IPN endpoint to see if your server can connect. Just head to <a href="/?ipn-test=1">yoursite.com/?ipn-test=1</a> whilst logged in as admin. | |
| * Version: 1.0.0 | |
| * Author: WooThemes | |
| * Requires at least: 4.1 | |
| * Tested up to: 4.3 | |
| */ | |
| if ( ! defined( 'ABSPATH' ) ) { |
| * { | |
| font-size: 12pt; | |
| font-family: monospace; | |
| font-weight: normal; | |
| font-style: normal; | |
| text-decoration: none; | |
| color: black; | |
| cursor: default; | |
| } |
Bin e padrões para validação de cartão de crédito.
| Bandeira | Começa com | Máximo de número | Máximo de número cvc | Regex |
|---|---|---|---|---|
| Visa | 4 |
13,16 | 3 | ^4[0-9]{12}(?:[0-9]{3}) |
| Mastercard | 5 |
16 | 3 | ^5[1-5][0-9]{14} |
| Diners | 301,305,36,38 link |
14,16 | 3 | `^3(?:0[0-5] |
| // Simulate config options from your production environment by | |
| // customising the .env file in your project's root folder. | |
| require('dotenv')().load(); | |
| // Require keystone and i18n | |
| var keystone = require('keystone'), | |
| i18n= require('i18n'); | |
| // Initialise Keystone with your project's configuration. | |
| // See http://keystonejs.com/guide/config for available options |
| /** | |
| * Use WC 2.0 variable price format, now include sale price strikeout | |
| * | |
| * @param string $price | |
| * @param object $product | |
| * @return string | |
| */ | |
| function wc_wc20_variation_price_format( $price, $product ) { | |
| // Main Price | |
| $prices = array( $product->get_variation_price( 'min', true ), $product->get_variation_price( 'max', true ) ); |
| <?php | |
| /** | |
| * Wraps a message $content in a responsive e-mail template. | |
| * | |
| * Reference: http://zurb.com/playground/projects/responsive-email-templates/basic.html | |
| */ | |
| function post_mail_content( $content ) { | |
| ob_start(); ?><html xmlns="http://www.w3.org/1999/xhtml"><head> | |
| <meta content="width=device-width" name="viewport"> |
| #!/bin/bash | |
| # Script for creating Virtual Servers On Apache | |
| # Check for the correct parameters | |
| if [ $# -eq 0 ]; then | |
| echo 'Você precisa passar o domínio a ser criado como parâmetro' | |
| echo 'Uso: create-site your-domain.com' | |
| exit 0 | |
| fi |
| <?php | |
| /* | |
| Adicionar metabox à páginas específicas | |
| */ | |
| function my_meta_setup_1() { | |
| // criação da metabox | |
| } | |
| function especific_metabox_pages() { | |
| $post_ID = $_GET['post'] ? $_GET['post'] : $_POST['post_ID']; |
| rewrite ^/?pt\-BR/(.*)$ /pt-br/$1 permanent; | |
| rewrite ^/?pt\_BR/(.*)$ /pt-br/$1 permanent; |