- Connect to server
Only first connection to create username and SSH configure:
$ ssh root@domainRecomended (most secure):
| add_filter( 'woocommerce_account_menu_items', 'daico_account_menu_items2' ); | |
| function daico_account_menu_items2( $items ) { | |
| unset( $items['customer-logout'] ); | |
| $items['orders'] = 'Vendas'; | |
| $items['customer-logout'] = 'Sair'; | |
| return $items; | |
| } |
| # This file is for unifying the coding style for different editors and IDEs | |
| # editorconfig.org | |
| root = true | |
| [*] | |
| charset = iso-8859 | |
| end_of_line = lf | |
| insert_final_newline = true | |
| trim_trailing_whitespace = true |
| String.prototype.pad = function (length) { | |
| 'use strict'; | |
| var s = this; | |
| while (s.length < length) { | |
| s = '0' + s; | |
| } | |
| return s; | |
| }; | |
| String.prototype.numbers = function () { | |
| 'use strict'; |
| #!/bin/bash | |
| rand() { | |
| RANGE=$2 | |
| rand=$RANDOM | |
| let "rand %= $RANGE" | |
| } | |
| generate_password() { | |
| chars='abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789' |
| <?php | |
| print_r($_POST); | |
| ?> | |
| <form method="POST" action="testpost.php"> | |
| <input type="hidden" name="prod" value="teste" /> | |
| <button class="btn-orcamento center-block" type="submit">adicionar ao orçamento</button> | |
| </form> |
| <div class="budget"> | |
| <p>Solicite um orçamento</p> | |
| <form class="form-pedido" id="form-pedido-add" method="post" action="<?php echo esc_attr( site_url() ); ?>/orcamento"> | |
| <?php wp_nonce_field( 'ac_nonce_produtos', 'nonce_produtos', true, true ); ?> | |
| <input type="hidden" name="type_page_verify" value="produtos" /> | |
| <input type="hidden" name="prod" value="<?php the_ID(); ?>"/> | |
| <?php | |
| $cores = get_field( 'cores' ); | |
| if ( $cores ) { |
| <?php | |
| /** | |
| * The Template for displaying all single products | |
| * | |
| * @package gallery-thumbs | |
| */ | |
| if ( ! defined( 'ABSPATH' ) ) { | |
| exit; // Exit if accessed directly. | |
| } |
| <?php | |
| declare(strict_types=1); | |
| /** | |
| * Interface to JSON endpoint. | |
| */ | |
| namespace GilbertoTavares; | |
| /** | |
| * Class to GET JSON and print. |
Only first connection to create username and SSH configure:
$ ssh root@domainRecomended (most secure):
| #!/bin/bash | |
| slug() { | |
| slug="$1" | |
| slug=${slug,,} | |
| slug=${slug// /_} | |
| slug=${slug//ó/o} | |
| slug=${slug//ô/o} | |
| slug=${slug//é/e} | |
| slug=${slug//ú/u} |