This file contains 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
#!/usr/bin/env bash | |
rm -rf .git | |
git init | |
git add . | |
git commit -m "Initial commit" | |
git remote add origin <git origin url> | |
git push -u --force origin <branch> |
This file contains 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
//First commit any outstanding code changes, and then, run this command: | |
git rm -r --cached . | |
//This removes any changed files from the index(staging area), then just run: | |
git add . | |
//Commit | |
git commit -m "Atualizando .gitignore para..." |
This file contains 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
#!/bin/bash | |
# Default options | |
LOCALE="es_ES" | |
DB_HOST='localhost:3306' | |
printf "Name of the project? eg My Project: " | |
read PROJECT_NAME | |
printf "Slug of the project? eg myproject: " |
This file contains 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
<?php | |
/* | |
Plugin Name: Require Weight field (WooCommerce) | |
Plugin URI: https://charrua.es | |
Description: Make weight field required when adding/editing product. Usefull when using weight shipping. | |
Author: Daniel Pereyra Costas | |
Author URI: https://charrua.es | |
Version: 0.1 | |
*/ |
This file contains 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
[program:app1-laravel-worker] | |
process_name=%(program_name)s_%(process_num)02d | |
command=<your-php-path> <your-artisan-path> queue:work --tries=3 | |
autostart=true | |
autorestart=true | |
numprocs=2 | |
redirect_stderr=true | |
stdout_logfile=<your-logfile-path> | |
[program:app2-laravel-worker] |
This file contains 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
<?php | |
/** | |
* Plugin Name: WooCommerce NIF | |
* Description: Adds NIF fields to WooCommerce | |
* Version: 1.0 | |
* Author: Daniel Pereyra Costas | |
* Author URI: https://charrua.es | |
* License: GPL v2 or later | |
* License URI: https://www.gnu.org/licenses/gpl-2.0.html |