Credit to answer found here http://stackoverflow.com/questions/21095054/ssh-key-still-asking-for-password-and-passphrase
This will ask you for the passphrase, enter it and it won't ask again.
ssh-add ~/.ssh/id_rsa &>/dev/null
| <?php | |
| /* | |
| Plugin Name: wordpress assist clean header | |
| Plugin URI: http://www.wordpressassist.nl/ | |
| Description: Remove shortlink hook | |
| Version: 1.0 | |
| Author: AukeJomm | |
| Author URI: http://www.aukejongbloed.nl | |
| */ | |
Credit to answer found here http://stackoverflow.com/questions/21095054/ssh-key-still-asking-for-password-and-passphrase
This will ask you for the passphrase, enter it and it won't ask again.
ssh-add ~/.ssh/id_rsa &>/dev/null
| // Regex para validação de string no formato CNPJ | |
| export const regexCNPJ = /^\d{2}.\d{3}.\d{3}\/\d{4}-\d{2}$/ | |
| // Método de validação | |
| // Referência: https://pt.wikipedia.org/wiki/Cadastro_Nacional_da_Pessoa_Jur%C3%ADdica | |
| export function validCNPJ(value: string | number | number[] = '') { | |
| if (!value) return false | |
| // Aceita receber o valor como string, número ou array com todos os dígitos | |
| const isString = typeof value === 'string' |
| <?php | |
| // Change available package rates depending on cart total | |
| function shipping_method_on_cart_total( $rates, $package ) { | |
| $cart_total = WC()->cart->total; | |
| $condition_price = 1000.00; | |
| if( $cart_total > $condition_price ) { | |
| unset( $rates['free_shipping'] ); // Remove free shipping | |
| } | |
| var accounts = [ | |
| { name: 'James Brown', msgCount: 123 }, | |
| { name: 'Stevie Wonder', msgCount: 22 }, | |
| { name: 'Sly Stone', msgCount: 16 }, | |
| { name: 'Otis Redding', msgCount: 300 } // Otis has the most messages | |
| ]; | |
| // get sum of msgCount prop across all objects in array | |
| var msgTotal = accounts.reduce(function(prev, cur) { | |
| return prev + cur.msgCount; |
| <?php | |
| /** | |
| * Export Data to CSV file | |
| * Could be used in WordPress plugin or theme | |
| */ | |
| // A sample link to Download CSV, could be placed somewhere in plugin settings page | |
| ?> | |
| <a href="<?php echo admin_url( 'admin.php?page=myplugin-settings-page' ) ?>&action=download_csv&_wpnonce=<?php echo wp_create_nonce( 'download_csv' )?>" class="page-title-action"><?php _e('Export to CSV','my-plugin-slug');?></a> |
| #!/bin/bash | |
| PARAMS=('-m 6 -q 70 -mt -af -progress') | |
| if [ $# -ne 0 ]; then | |
| PARAMS=$@; | |
| fi | |
| cd $(pwd) |
| <?php | |
| /** | |
| * @package Food_example_plugin | |
| * @version 1.0 | |
| */ | |
| /* | |
| Plugin Name: Food example plugin | |
| Plugin URI: http://wordpress.org/extend/plugins/# | |
| Description: This is an example plugin for WPMU DEV readers | |
| Author: Carlo Daniele |
Source: A Plug-in by Igor Escobar on Github.
| /* | |
| ##Device = Desktops | |
| ##Screen = 1281px to higher resolution desktops | |
| */ | |
| @media (min-width: 1281px) { | |
| /* CSS */ | |