Skip to content

Instantly share code, notes, and snippets.

View FrancoStino's full-sized avatar
🌞

Davide Ladisa FrancoStino

🌞
View GitHub Profile
@FrancoStino
FrancoStino / git-export.md
Created July 29, 2024 14:19 — forked from vanquang9387/git-export.md
git: export diff files between 2 branches/commits

We can get list of changed files between 2 branches/commits by

$ tar --ignore-failed-read -vczf archive.tgz $(git diff --name-only --diff-filter=ACMRT master develop)

Let's see important part:

  1. git diff master develop:
    Get differences between master and develop branches.
@randymxd06
randymxd06 / CREATE_TAG.md
Last active August 1, 2024 16:35
Creating a tag using package.json with Github Actions

Creating a tag using package.json with Github Actions

In the following case I am creating a workflow so that when changes are uploaded to the main branch a tag is created taking into account the version of the package.json

Implementation

1. Create the workflow

In the root folder of the project you must create the .github/workflows folder so that Github Actions can interpret our YAML file and execute the tasks that we tell it.

<?php
/**
* The base configuration for WordPress
*
* The wp-config.php creation script uses this file during the installation.
* You don't have to use the web site, you can copy this file to "wp-config.php"
* and fill in the values.
*
* This file contains the following configurations:
*
@h3ssan
h3ssan / JetBrains trial reset.md
Last active November 20, 2024 09:03
Reset all JetBrains products trial in Linux

In some cases, only these lines will work

for product in IntelliJIdea WebStorm DataGrip PhpStorm CLion PyCharm GoLand RubyMine; do
    rm -rf ~/.config/$product*/eval 2> /dev/null
    rm -rf ~/.config/JetBrains/$product*/eval 2> /dev/null
done

But if not, try these

@neilgee
neilgee / filter-wc-orders-by-gateway.php
Created January 13, 2021 21:55 — forked from bekarice/filter-wc-orders-by-gateway.php
Filters WooCommerce Orders by Payment Gateway Used
<?php
/**
* Plugin Name: Filter WooCommerce Orders by Payment Method
* Plugin URI: http://skyverge.com/
* Description: Filters WooCommerce orders by the payment method used :)
* Author: SkyVerge
* Author URI: http://www.skyverge.com/
* Version: 1.0.0
* Text Domain: wc-filter-orders-by-payment
*
@RichardNesbitt
RichardNesbitt / functions.php
Last active April 23, 2024 09:06
WP Bakery Page Builder - Add URL option to make entire column clickable - Updated 22 June 2023
<?php
/* add this to your theme's functions.php file */
/* Add option for URL to column settings */
vc_add_param("vc_column", array(
"type" => "vc_link",
"class" => "",
"heading" => "Column Link",
@lukecav
lukecav / DNS Prefetch domains
Last active October 9, 2024 00:30
WP Rocket - Advanced Options Prefetch DNS requests examples
//maps.googleapis.com
//maps.gstatic.com
//fonts.googleapis.com
//fonts.gstatic.com
//ajax.googleapis.com
//apis.google.com
//google-analytics.com
//www.google-analytics.com
//ssl.google-analytics.com
//youtube.com
@mahdiyazdani
mahdiyazdani / add-confirm-password-field-into-woocommerce-registration-form.php
Created October 8, 2016 19:26
Add confirm password field into WooCommerce registration form
<?php
/**
* Add the code below to your theme's functions.php file
* to add a confirm password field on the register form under My Accounts.
*/
function woocommerce_registration_errors_validation($reg_errors, $sanitized_user_login, $user_email) {
global $woocommerce;
extract( $_POST );
if ( strcmp( $password, $password2 ) !== 0 ) {
@ollytheninja
ollytheninja / Antimony.css
Last active October 7, 2024 08:52 — forked from lukereative/Antimony.css
Markdown css Just add <link href="style.css" rel="stylesheet"></link> to the start of your markdown document.
* { margin: 0; padding: 0; }
abbr,acronym,blockquote,code,dir,kbd,listing,plaintext,q,samp,tt,var,xmp { hyphens: none; }
html {
padding: 2em;
font: normal 18px/1.25 Source Sans Pro, sans-serif;
color: #000;
hyphens: auto;