Skip to content

Instantly share code, notes, and snippets.

Avatar

Isaac Campos caco26i

View GitHub Profile
@caco26i
caco26i / create_trellis_project.sh
Last active May 25, 2020
Create a Roots.io project working with Git Subtrees, Trellis, Bedrock, Sage
View create_trellis_project.sh
#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 / bkupscript.sh
Created Feb 25, 2018
Backups with DigitalOcean Spaces
View bkupscript.sh
#!/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."
You can’t perform that action at this time.