Check this out on Dev.to
- How to handle SSH keys with ec2-github actions https://zellwk.com/blog/github-actions-deploy/
- SSH_PRIVATE_KEY
- HOST_NAME / IP_ADDRESS
Check this out on Dev.to
Charts are from different sources and thus colors are inconsistent, please carefully read the chart's legends.
Like this? Check React Native vs Flutter: https://gist.github.com/tkrotoff/93f5278a4e8df7e5f6928eff98684979
| <?php | |
| /** | |
| * Login Form | |
| * | |
| * This template can be overridden by copying it to yourtheme/woocommerce/myaccount/form-login.php. | |
| * | |
| * HOWEVER, on occasion WooCommerce will need to update template files and you | |
| * (the theme developer) will need to copy the new files to your theme to | |
| * maintain compatibility. We try to do this as little as possible, but it does | |
| * happen. When this occurs the version of the template file will be bumped and |
| <?php | |
| // This code goes in your theme's functions.php | |
| function form_caracteristica( $object_id ) { | |
| WCVendors_Pro_Form_helper::select( array( | |
| 'post_id' => $object_id, | |
| 'id' => 'wcv_custom_product_caracteristicas', | |
| 'class' => 'select2', | |
| 'label' => __('Caracteristicas', 'wcvendors-pro'), | |
| 'show_option_none' => __('Select a caracteristicas', 'wcvendors-pro'), |
| <?php | |
| /** | |
| * Plugin Name: WooPAM: Woo Product Attributes Modifier | |
| * Description: Bulk update 'custom meta product attributes' to 'taxonomy product attributes' in WooCommerce. Supports the GET variables, like: woopam_mode=run&woopam_from_attribute_meta=colour&woopam_to_attribute_tax=pa_colour&woopam_keep_attribute_meta&woopam_posts_per_page=10&woopam_paged=0&woopam_post_type=product&woopam_post_status=any. WARNING: Backup DB first!!! | |
| * Plugin Author: birgire | |
| * Author URI: https://github.com/birgire | |
| * Plugin URI: https://gist.github.com/birgire/0ed300ae4436fcaf508c | |
| * Version: 1.0.0 | |
| * License: GPL2+ | |
| * Text Domain: woopam |
| <?php | |
| /** | |
| * Redirect users to custom URL based on their role after login | |
| * | |
| * @param string $redirect | |
| * @param object $user | |
| * @return string | |
| */ | |
| function wc_custom_user_redirect( $redirect, $user ) { | |
| // Get the first of all the roles assigned to the user |
Magic words:
psql -U postgresSome interesting flags (to see all, use -h or --help depending on your psql version):
-E: will describe the underlaying queries of the \ commands (cool for learning!)-l: psql will list all databases and then exit (useful if the user you connect with doesn't has a default database, like at AWS RDS):q[uit]
| add_filter('woocommerce_billing_fields', 'custom_woocommerce_billing_fields'); | |
| function custom_woocommerce_billing_fields( $fields ) { | |
| $fields['billing_address_1']['class'] = array( 'form-group' ); | |
| $fields['billing_address_1']['input_class'] = array( 'form-control' ); | |
| return $fields; | |
| } |