public function add_INCI_meta_box( $post )
{
$product = wc_get_product( $post->ID );
$content = $product->get_meta( '_INCI_specs' );
$settings = array(
'tinymce' => array(
'setup' => 'function (ed) {git branch -D nome-branch && git push origin --delete nome-branch| Associated Context | |
|---|---|
| Type | Code Snippet ( .sh ) |
| Associated Tags | Git branching Git push origin Nome-branch management Command line interface Node js frameworks Version control Data processing Remote repository creation Repository deletion |
| 💡 Smart Description | This code snippet updates the "nome-branch" branch in a Git repository and deletes it from its origin. |
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:
git diff master develop:
Get differences between master and develop branches.
ln -s ../../../custom-plugins/* .| Associated Context | |
|---|---|
| Type | Code Snippet ( .sh ) |
| Associated Tags | ln command custom plugins Frameworks SDKs Use cases Web development Front-end programming Custom plugin configuration Configuration management Framework: None symbolic link file linking |
| 💡 Smart Description | Displays custom plugins in a directory. * /../../custom-plugins/ and prints them to the console.Create symbolic links to custom plugins in the current directory from a specified location. |
"start": "webpack-dev-server --open --config ./webpack.dev.js --env writeToDisk",| Associated Context | |
|---|---|
| Type | Code Snippet ( .json ) |
| Associated Tags | package.json GitHub: sidea2 webpack-dev-server open command config file writeToDisk function web development server configuration environment variable |
| Associated Commit Messages | go |
/**
* Synchronizes ACF field groups from JSON files.
*
* This function is hooked to the `admin_init` action and is responsible for
* finding and importing any ACF field groups that have been defined in JSON
* files but have not yet been imported into the database.
*export JAVA_HOME=$(update-alternatives --query javadoc | grep Value: | head -n1 | sed 's/Value: //' | sed 's@bin/javadoc$@@')| Associated Context | |
|---|---|
| Type | Code Snippet ( .sh ) |
| Associated Tags | Java Home Update Alternatives Query Javadoc Grep Value head Command sed Command Framework: None JAVA_HOME update-alternatives javadoc environment variable |
| 📝 Custom Description | I ran this command in my project directory to build and package it:mvn clean javadoc:jar package |
| I do have my JAVA_HOME variable set correctly.Evidently:$ which java/usr/bin/java$ sudo ls -... |