Skip to content

Instantly share code, notes, and snippets.

View caco26i's full-sized avatar

Isaac Campos caco26i

View GitHub Profile
@caco26i
caco26i / bkupscript.sh
Created February 25, 2018 01:26
Backups with DigitalOcean Spaces
#!/bin/bash
DATETIME=`date +%y%m%d-%H_%M_%S`
SRC=$1
DST=$2
GIVENNAME=$3
showhelp() {
echo "\n\n############################################"
echo "# bkupscript.sh #"
echo "############################################"
echo "\nThis script will backup files/folders into a single compressed file and will store it in the current folder."
@caco26i
caco26i / create_trellis_project.sh
Last active February 5, 2023 04:23
Create a Roots.io project working with Git Subtrees, Trellis, Bedrock, Sage
#change de URL of the repo
repo=<repo_url.git>
tools=(trellis bedrock sage) #tool from roots.io
subtrees=(trellis site site/web/app/themes/sage) #folder structure for the tools
#init repo
git init
git remote add origin ${repo}
touch .gitignore
@caco26i
caco26i / functions.php
Created June 10, 2021 04:26
translate "No products in the cart."
/*
functions.php code
*/
// Your code
function lar_text_strings( $translated_text, $text, $domain ) {
switch ( $translated_text ) {
case "No products in the cart." :
$translated_text = __( "NO HAY PRODUCTOS EN EL CARRITO", "woocommerce" );