This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# create file with text inside your container | |
docker exec your_container bash -c "echo 'yourtext' >> /path/yourfile.tx" |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
remove_action( 'woocommerce_archive_description', 'woocommerce_taxonomy_archive_description', 10, 2 ); | |
// define the woocommerce_archive_description callback | |
function att_action_woocommerce_archive_description( ) { | |
if ( is_product_taxonomy() && 0 === absint( get_query_var( 'paged' ) ) ) { | |
$description = term_description(); | |
$description_array = explode('<!--more-->',$description ); | |
if (count($description_array)==2){ |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
UPDATE `TUbaseDEdatos`.`ps_delivery` SET `price` = (`ps_delivery`.`price` * incremento) WHERE `ps_delivery`.`id_carrier` = IDdelCarrierAcambiar; | |
Se incrementa todas las tarifas de un carrier concreto por un porcentaje dado | |
en donde | |
- TUbaseDEdatos , es el nombre de tu base de datos | |
- incremento es el porcentaje que se ha de ha deincrementar en el formato (100+porcentaje incremento )/100 , ejemplo (100+5)/100 = 1.05 | |
- IDdelCarrierAcambiar = buscar en el front o tabla de carriers el id del carrier que se desea cambiar |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Editar archivo .bashrc en carpeta personal del usuario | |
1) forzar prompt coloreado. buscar y descomentar(quitar #): | |
force_color_prompt=yes | |
2) Incluir antes de unset color_prompt force_color_prompt el siguiente código para el prompt | |
# Add git branch if its present to PS1 | |
parse_git_branch() { | |
git branch 2> /dev/null | sed -e '/^[^*]/d' -e 's/* \(.*\)/(\1)/' | |
} |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
1) Crear un acceso directo vacío en la carpeta que tengais el vagrant deseado | |
2) En la ubicación del elemento incluir: | |
C:\Windows\System32\cmd.exe /k "W: && cd F:\path\completo && vagrant up" | |
- Será necesario incluir llamada a cmd.exe con /k para dejar el cmd abierto | |
- cambiar a la unidad donde esté la máquina vagrant (en mi caso w:) | |
- && | |
- Cambiar al directorio donde está la máquina vagrant (en mi caso F:\path\completo) | |
- && | |
- Hacer vagrant up | |
3) Aceptar y darle un nombre al acceso directo |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
[alias] | |
co = checkout | |
pd = push origin develop | |
st = -p status | |
cm = commit | |
w = whatchanged | |
last = cat-file commit HEAD | |
lg = log --color --graph --pretty=format:'%Cred%h%Creset -%C(yellow)%d%Creset %s %Cgreen(%cr) %C(bold blue)<%an>%Creset' --abbrev-commit | |
lgfile = ! git log --pretty=format: --name-only --since='2 days ago' | sort | uniq | |
ls = show --pretty="format:" --name-only |
NewerOlder