Skip to content

Instantly share code, notes, and snippets.

View ptavares's full-sized avatar
🏠
Working from home

Patrick Tavares ptavares

🏠
Working from home
  • Bpifrance
  • France
View GitHub Profile
@ptavares
ptavares / 2repos-sync.sh
Created February 3, 2021 12:50 — forked from yorammi/2repos-sync.sh
Sync 2 remote repositories script - Just define the 3 variables (use export command for that!)
#!/bin/bash
# REPO_NAME=<repo>.git
# ORIGIN_URL=git@<host>:<project>/$REPO_NAME
# REPO1_URL=git@<host>:<project>/$REPO_NAME
rm -rf $REPO_NAME
git clone --bare $ORIGIN_URL
if [ "$?" != "0" ]; then
echo "ERROR: failed clone of $ORIGIN_URL"
@ptavares
ptavares / 0_reuse_code.js
Created November 2, 2016 11:57
Here are some things you can do with Gists in GistBox.
// Use Gists to store code you would like to remember later on
console.log(window); // log the "window" object to the console