start new:
tmux
start new with session name:
tmux new -s myname
| <!DOCTYPE html> | |
| <html> | |
| <head> | |
| <meta http-equiv="content-type" content="text/html; charset=UTF-8"/> | |
| <title>Demo Máscara Telefone</title> | |
| </head> | |
| <body> | |
| Telefone: <input onkeypress="mascaraTelefone(this)"/><br /> | |
| <script> | |
| /* |
| <?php | |
| namespace <VENDOR>\Environment; | |
| use Dotenv\Dotenv; | |
| /** | |
| * Responsável pela manipulação de variáveis de ambiente. | |
| * Tem o pacote 'vlucas/phpdotenv' como dependência. | |
| * @see https://github.com/vlucas/phpdotenv |
| { | |
| "always_show_minimap_viewport": true, | |
| "bold_folder_labels": true, | |
| "color_scheme": "Packages/Material Theme/schemes/Material-Theme.tmTheme", | |
| "font_face": "Envy Code R", | |
| "font_options": | |
| [ | |
| "gray_antialias", | |
| "subpixel_antialias" | |
| ], |
| #!/bin/bash | |
| # | |
| # This script configures WordPress file permissions based on recommendations | |
| # from http://codex.wordpress.org/Hardening_WordPress#File_permissions | |
| # | |
| # Author: Michael Conigliaro <mike [at] conigliaro [dot] org> | |
| # | |
| WP_OWNER=www-data # <-- wordpress owner | |
| WP_GROUP=www-data # <-- wordpress group | |
| WP_ROOT=$1 # <-- wordpress root directory |
| <?php | |
| /* NOTICE | |
| * This script imports SQL commands "as is". | |
| * Double check the SQL commands before using it | |
| * and BACKUP YOUR DATABASE. | |
| * It needs some improvement to use wpdb->prepare. | |
| */ | |
| class WPSQLImporter{ | |
| /** | |
| * Loads an SQL stream into the WordPress database one command at a time. |
| ID,Type,SKU,Name,Published,"Is featured?","Visibility in catalog","Short description",Description,"Date sale price starts","Date sale price ends","Tax status","Tax class","In stock?",Stock,"Backorders allowed?","Sold individually?","Weight (lbs)","Length (in)","Width (in)","Height (in)","Allow customer reviews?","Purchase note","Sale price","Regular price",Categories,Tags,"Shipping class",Images,"Download limit","Download expiry days",Parent,"Grouped products",Upsells,Cross-sells,"External URL","Button text",Position,"Attribute 1 name","Attribute 1 value(s)","Attribute 1 visible","Attribute 1 global","Attribute 2 name","Attribute 2 value(s)","Attribute 2 visible","Attribute 2 global","Meta: _wpcom_is_markdown","Download 1 name","Download 1 URL","Download 2 name","Download 2 URL" | |
| 44,variable,woo-vneck-tee,"V-Neck T-Shirt",1,1,visible,"This is a variable product.","Pellentesque habitant morbi tristique senectus et netus et malesuada fames ac turpis egestas. Vestibulum tortor quam, feugiat vitae, ultricies eget, |
| <?php | |
| // Caggera os campos nas opções de preço do woocommerce. | |
| // https://rudrastyh.com/woocommerce/product-data-metabox.html | |
| // https://stackoverflow.com/questions/43700927/display-and-save-a-custom-field-in-product-variations-options-edit-page | |
| add_action('woocommerce_product_options_pricing', function() { | |
| global $woocommerce, $post; | |
| $price_monthly = get_post_meta( $post->ID, 'price-monthly', true ); | |
| woocommerce_wp_text_input([ | |
| 'id' => 'price-monthly', |