create different ssh key according the article Mac Set-Up Git
$ ssh-keygen -t rsa -C "[email protected]"
create different ssh key according the article Mac Set-Up Git
$ ssh-keygen -t rsa -C "[email protected]"
| <VirtualHost *:80> | |
| ServerAdmin template.email | |
| ServerName template.url | |
| DocumentRoot template.webroot | |
| <Directory /> | |
| Options FollowSymLinks | |
| AllowOverride All | |
| </Directory> | |
| <Directory template.webroot/> |
| // Remove each style one by one | |
| add_filter( 'woocommerce_enqueue_styles', 'jk_dequeue_styles' ); | |
| function jk_dequeue_styles( $enqueue_styles ) { | |
| unset( $enqueue_styles['woocommerce-general'] ); // Remove the gloss | |
| unset( $enqueue_styles['woocommerce-layout'] ); // Remove the layout | |
| unset( $enqueue_styles['woocommerce-smallscreen'] ); // Remove the smallscreen optimisation | |
| return $enqueue_styles; | |
| } | |
| // Or just remove them all in one line |
| function string_to_slug (str) { | |
| str = str.replace(/^\s+|\s+$/g, ''); // trim | |
| str = str.toLowerCase(); | |
| // remove accents, swap ñ for n, etc | |
| var from = "àáäâèéëêìíïîòóöôùúüûñç·/_,:;"; | |
| var to = "aaaaeeeeiiiioooouuuunc------"; | |
| for (var i=0, l=from.length ; i<l ; i++) { | |
| str = str.replace(new RegExp(from.charAt(i), 'g'), to.charAt(i)); | |
| } |
| // Get The Page ID You Need | |
| get_option( 'woocommerce_shop_page_id' ); | |
| get_option( 'woocommerce_cart_page_id' ); | |
| get_option( 'woocommerce_checkout_page_id' ); | |
| get_option( 'woocommerce_pay_page_id' ); | |
| get_option( 'woocommerce_thanks_page_id' ); | |
| get_option( 'woocommerce_myaccount_page_id' ); | |
| get_option( 'woocommerce_edit_address_page_id' ); | |
| get_option( 'woocommerce_view_order_page_id' ); | |
| get_option( 'woocommerce_terms_page_id' ); |
| <?php | |
| // if product is already in global space | |
| global $product; | |
| // or fetch product attributes by ID | |
| if( empty( $product->id ) ){ | |
| $wc_pf = new WC_Product_Factory(); | |
| $product = $wc_pf->get_product($id); | |
| } |
| <?php | |
| function woo_dequeue_booking_styles() { | |
| wp_dequeue_style( 'wc-bookings-styles' ); | |
| wp_deregister_style( 'wc-bookings-styles' ); | |
| } | |
| add_action( 'wp_print_styles', 'woo_dequeue_booking_styles', 100 ); |
| <?php | |
| /** | |
| * Automatically login a single WordPress user upon arrival to a specific page. | |
| * | |
| * Redirect to home page once logged in and prevent viewing of the login page. | |
| * Compatible with WordPress 3.9.1+ | |
| * Updated 2014-07-18 to resolve WP_DEBUG notice: "get_userdatabylogin is deprecated since version 3.3! Use get_user_by('login') instead." | |
| * Updated 2019-07-09 to reformat code, pass 2nd parameter to `do_action()`, and hook into priority 1. | |
| * |
This is a sequel to "Postfix: relay to authenticated SMTP".
I would like to send mail from two different Gmail accounts using Postfix. Here is the relevant section in the Postfix documentation: Configuring Sender-Dependent SASL authentication.
As a concrete example, here's how to set up two Gmail accounts (only relevant sections of the config files are listed below):
/etc/postfix/main.cf:
# sender-dependent sasl authentication
smtp_sender_dependent_authentication = yes
sender_dependent_relayhost_maps = hash:/etc/postfix/sender_relay
| <?php | |
| /** | |
| * SSO "Page" | |
| * | |
| */ | |
| add_action( 'parse_request', 'ac_parse_request' ); | |
| function ac_parse_request() { | |
| // Check for SSO request |